semvec/pypi-packages huggingface dataset:
openapi-fastapi-client 0.2.1
A tool to autogenerate FastApi Clients from given openapi.yaml.
License: MIT
Requires Python: <4,>=3.9
Keywords: openapi, pydantic, python3

[![Python 3.10](https://img.shields.io/badge/python-3.10-blue.svg)](https://www.python.org/downloads/release/python-3100/)
![Python application](https://github.com/FelixTheC/openapi-fastapi-client/workflows/Python%20application/badge.svg)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)


# Openapi yaml file to FastApi Client
A commandline tool to generate Api `functions` and their required `pydantic Model` Schema from an `openapi.yaml` of version 3

## Installation
```shell
pip install openapi-fastapi-client
```

## Usage
```shell
openapi-fastapi-client ./openapi.yaml ./my-client
```
```shell
openapi-fastapi-client ./openapi.yaml ./my-client --async
```
- this will generate under the folder `my-client` following files
  - `__init__.py` if not exists
  - `api.py` here are all function calls to the external api
  - `schema.py` here are all pydantic Models
  

## Arguments
- `OPENAPI_FILE  [required]`
- `OUTPUT_PATH   [required]`

## Options
- `--sync`  All requests to the client are synchronous.  _default_
- `--async` All requests to the client are asynchronous with __aiohttp__.

## Help
```shell
openapi-fastapi-client --help
```

![](openapi-fastapi-client_long.gif)
Toolify 0.1.0
A library that provide helper function and tools.
License: MIT
Requires Python: >=3.8
Keywords: tools, arabic, bidi, plotting, logging, cuda

# Toolify

A Python library providing utility functions for colored terminal output, Arabic text processing, logging, file handling, plotting, and GPU detection.

## Installation

Install `Toolify` from PyPI:

```bash
pip install toolify
```

### Requirements
- Python >= 3.8
- Dependencies:
  - `python-bidi==0.6.6`
  - `arabic_reshaper==3.0.0`
  - `matplotlib` (for plotting)
  - `torch` (for GPU detection)

## Usage

Import and use the functions from the `test_help.tools` module:

```python
from test_help.tools import print_colored_text, print_arabic_text, print_package_info

# Print colored text
print_colored_text("Hello, World!", color="green", emoji="star")

# Print Arabic text
print_arabic_text("مرحبا بالعالم", color="blue", emoji="heart")

# Print package information
print_package_info()
```

## Functions

| Function | Description |
|----------|-------------|
| `print_colored_text` | Prints text in a specified color with an optional emoji. |
| `print_arabic_text` | Prints Arabic text with proper reshaping and bidirectional display. |
| `setup_logger` | Configures a logger for logging messages to a file. |
| `save_text_list` | Saves a list of text arrays to a file. |
| `save_text` | Saves a single text string to a file. |
| `line_plotter` | Saves a line plot for multiple data lists. |
| `strip_tashkeel` | Removes Arabic diacritics and specific characters from text. |
| `get_available_gpus` | Prints information about available CUDA GPUs. |
| `print_package_info` | Prints information about the package and its functions. |

## Example: Plotting Data

```python
from test_help.tools import line_plotter

data = [[1, 2, 3], [4, 5, 6]]
line_plotter(
    data_list=data,
    save_name="plot.png",
    legend_list=["Line 1", "Line 2"],
    x_label="X Axis",
    y_label="Y Axis",
    title="Sample Plot"
)
```

## Contributing

Contributions are welcome! Please open an issue or submit a pull request on [GitHub](https://github.com/yourusername/test_help).

## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
Selenium-Screenshot 3.0.0
This package is used to Clipped Images of Html Elements of Selenium Webdriver
License: MIT
Requires Python: >=3.6.1

[![forthebadge made-with-python](http://ForTheBadge.com/images/badges/made-with-python.svg)](https://www.python.org/)

**Selenium Screenshot:**

[![Open Source Love svg1](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Downloads](https://static.pepy.tech/personalized-badge/selenium-screenshot?period=total&units=none&left_color=yellowgreen&right_color=blue&left_text=Downloads)](https://pepy.tech/project/selenium-screenshot)
[![Python 3.6](https://img.shields.io/badge/python-3.6-blue.svg)](https://www.python.org/downloads/release/python-360/)
[![PyPI version](https://badge.fury.io/py/Selenium-Screenshot.svg)](https://badge.fury.io/py/Selenium-Screenshot)
![Python package](https://github.com/sam4u3/Selenium_Screenshot/workflows/Python%20package/badge.svg)


The Selenium Screenshot is used to clip Html pages and elements using Selenium.

**Installation:**

`pip install Selenium-Screenshot`

This package supports Python 3.6+ only.

**How to Use:**

**For Full Page Screenshot:**

```python
from selenium import webdriver
from Screenshot import Screenshot

driver = webdriver.Chrome()
driver.get("https://en.wikipedia.org/wiki/Python")

ss = Screenshot(driver)

# Example: hide sticky header + specific table
table_to_hide = driver.find_element("css selector", "#p-search")

ss.capture_full_page(
    output_path="python_wiki.png",
    hide_selectors=[".vector-sticky-header", "#mw-head", table_to_hide]  # mix of CSS + WebElement
)

driver.quit()
```

**For Html Element Clipping:**

````python
from selenium import webdriver
from Screenshot import Screenshot

driver = webdriver.Chrome()
driver.get("https://en.wikipedia.org/wiki/Python")

ss = Screenshot(driver)

# Capture a specific box (e.g., infobox)
content_only = driver.find_element("css selector", "#mw-content-text")
ss.capture_element(content_only, "content_only.png")

driver.quit()

````

**Contact Information:**

[Email:py.wizard.org@gmail.com](mailto::py.wizard.org@gmail.com)

**Donation:**

If you have found my software to be of any use to you, do consider helping me pay my internet bills. This would encourage me to maintain and create more projects.

<a href="https://www.paypal.me/sam4u3" target="_blank"><img src="https://raw.githubusercontent.com/aha999/DonateButtons/master/Paypal.png" alt="Donate via PayPal" title="Donate via PayPal" /></a>
power-nudge 0.2.2
A macOS utility that alerts you via WhatsApp when your battery reaches a defined threshold using Twilio.
License: MIT
Requires Python: <4.0,>=3.12
Keywords: battery, twilio, macos, whatsapp, automation, notification

# ⚡ PowerNudge

<p align="center">
<a href="https://pypi.org/project/power-nudge/" target="_blank">
    <img src="https://img.shields.io/pypi/v/power-nudge?color=%2334D058&label=pypi%20package" alt="Package version">
</a>

<a href="https://pypistats.org/packages/power-nudge" target="_blank">
    <img src="https://img.shields.io/pypi/dm/power-nudge" alt="Downloads">
</a>
</p>

**PowerNudge** is a lightweight macOS utility that monitors your MacBook's battery percentage and sends you a **WhatsApp
alert via Twilio** when it reaches a predefined charging level — so you can unplug and prolong battery health.

Built with automation in mind, it’s perfect for users who want a hands-free way to monitor charging without keeping an
eye on the battery all the time.

## 🚀 Features

* 🔋 Monitors battery percentage using macOS's `pmset` command
* 📤 Sends WhatsApp messages via Twilio when battery thresholds are crossed
* 📶 Automatically enables Wi-Fi if disabled, and checks for internet connectivity
* 🧪 Integrated logging with [Loguru](https://github.com/Delgan/loguru) for easier debugging and monitoring
* ⚙️ Configurable thresholds and message templates via `src/config.py`

## 🛠 Requirements

* Python 3.12+
* macOS (uses `pmset` for battery info)
* Twilio Account with WhatsApp sandbox enabled
* Internet connection to send WhatsApp messages

## 📦 Installation

Install dependencies:

```bash
pip install power_nudge
````

Make sure you have the appropriate values set in `src/config.py` or through environment variables if abstracted.

## 🧠 How It Works

1. Reads your battery percentage using the `pmset` command.
2. Checks if battery is above or below thresholds:
    * Sends *"Please unplug!"* if battery is too high.
    * Sends *"Please plug in!"* if battery is too low.
3. Automatically enables Wi-Fi if off, and waits for connectivity.
4. Uses Twilio to send a WhatsApp alert.
5. All activity is logged using a central `log` object via Loguru.

## 🧪 Usage

```bash
python src/power_nudge/main.py
```

Or schedule it with a **cron job** or **launchd** to run periodically in the background.

## 📝 Logging

PowerNudge uses the [Loguru](https://loguru.readthedocs.io/en/stable/) library for structured, colorful, and level-based
logging (`debug`, `info`, `warning`, `error`).
You can configure your logging output in the `logger.py` file.

## 📬 Example WhatsApp Alerts

> 🔋 *Battery is 90%. Please unplug the charger!*
> 🔌 *Battery is 15%. Please plug in your charger!*

## 🧰 Developer Info

You’ll find helper functions in:

* `src/power_nudge/utils/helper.py` — for battery, Wi-Fi, and internet utilities
* `twilio_helper/main.py` — for sending WhatsApp messages via Twilio API
* `src/power_nudge/utils/logger.py` — for centralized logging setup

## 📄 License

MIT License
xchainpy2-utils 0.0.29
XChainPy 2 Utils
License: MIT
Requires Python: >=3.7
Keywords: Crypto, THORChain, Blockchain, XChain

# XChainPy2 Utilities Package

Utility helpers that are used across different XChainPy2 clients and other packages.

### Modules (in alphabetical order)

- `Asset` - Utilities for handling assets
- `Amount` - Utilities for handling amounts
- `CryptoAmount` is a combination of `Asset` and `Amount`

### Documentation

👉 https://xchainpy2.readthedocs.io/en/latest/packages/xchainpy2_utils.html
git-picker 0.4.1
git picker
License: MIT
Keywords: GitHub

### Install
```shell
pip install git-picker
```

### Usage
```python
import gitpicker.github as git

user = 'JiauZhang'
repo = 'git-picker'
branch = 'main'
files = {
    'dir': [
        'examples',
        'gitpicker',
    ],
    'file': [
        'LICENSE',
        'setup.py',
    ],
}

picker = git.GitHub(user, repo, branch)
picker.pick(files)
```

### Sponsor
<table align="center">
    <thead>
        <tr>
            <th colspan="2">公众号</th>
        </tr>
    </thead>
    <tbody align="center" valign="center">
        <tr>
            <td colspan="2"><img src="https://jiauzhang.github.io/ghstatic/images/ofa_m.png" style="height: 196px" alt="AliPay.png"></td>
        </tr>
    </tbody>
    <thead>
        <tr>
            <th>AliPay</th>
            <th>WeChatPay</th>
        </tr>
    </thead>
    <tbody align="center" valign="center">
        <tr>
            <td><img src="https://jiauzhang.github.io/AliPay.png" style="width: 196px; height: 196px" alt="AliPay.png"></td>
            <td><img src="https://jiauzhang.github.io/WeChatPay.png" style="width: 196px; height: 196px" alt="WeChatPay.png"></td>
        </tr>
    </tbody>
</table>