semvec/pypi-packages huggingface dataset:
blablabla-api 0.0.4
SDK for Blablabla API
Requires Python: >=3.6

# Blablabla Python SDK

### Example

```python
from blablabla_api import Client

client = Client("<your_public_key>", "<your_private_key>")
result = client.advanced_account.get_advanced_balances()
print(result)  # {"success": True, "response": {...}}
```

### Tests

```shell
pip install -r requirements.txt
python -m pytest tests/*
```
SimpleAUG 0.0.4
A simpler imgaug tool
Requires Python: >=3.8

# SimpleAUG
SimpleAUG是一个更加简单易用的图像识别数据集增强库，它二次封装于Imgaug库，并正在快速地迭代中！
## 使用示例

    pip install SimpleAUG

数据增强的具体配置可以到[overview_of_augmenters.html](https://imgaug.readthedocs.io/en/latest/source/overview_of_augmenters.html)查阅

    from imgaug import augmenters as iaa
    from simpleaug import aug
    
    # 输入VOC数据集的路径
    XML_DIR = "/demo/VOC_MASK/Annotations/"
    IMG_DIR = "/demo/VOC_MASK/JPEGImages/"
    
    # 数据增强后的存储路径
    AUG_XML_DIR = "/demo/VOC_MASK_AUG/Annotations/"  # 存储增强后的XML文件夹路径
    AUG_IMG_DIR = "/demo/VOC_MASK_AUG/JPEGImages/"  # 存储增强后的影像文件夹路径
    
    # 数据增强配置
    AUGCONF = [
        # iaa.Invert(0.5),
        iaa.Fliplr(0.5),
        iaa.Multiply((1.2, 1.5)),  # change brightness, doesn't affect BBs
        iaa.GaussianBlur(sigma=(0, 3.0)),  # iaa.GaussianBlur(0.5),
        iaa.Affine(
            translate_px={"x": 15, "y": 15},
            scale=(0.8, 0.95),
        ),  # translate by 40/60px on x/y axis, and scale to 50-70%, affects BBs
        iaa.Sometimes(
            0.5,
            iaa.GaussianBlur(sigma=2.0),
            iaa.Sequential([iaa.Affine(rotate=45), iaa.Sharpen(alpha=1.0)])
        )
    ]

    #       输入地址            输出地址              增强次数 数据增强配置
    aug.aug(IMG_DIR, XML_DIR, AUG_XML_DIR, AUG_IMG_DIR, 2, AUGCONF)
bddjango 3.0.9
常用的django开发工具
Requires Python: >=3.6


bddjango
========

wiki文档
--------


* `wiki文档地址_内网 <https://www.bodexiong.vip/mkdocs>`_
* `wiki文档地址_外网 <https://wiki-bddjango.readthedocs.io>`_

安装
----

.. code-block::

   pip install bddjango
hsr-pic-parcer 1.0.3
parser to get images from hsr mana
Requires Python: >=3.7
Keywords: python parse hsr

# hsr_pic_parser

## Introduction

This is a Python library for getting pictures of characters, light cones, relics and planetaries with names from [starrail.mana](https://starrail.mana.wiki/).


## Installation

```python
pip install hsr-pic-parcer
```

## Available functionality

```python
get_char_pic(name) # returns binary picture of the character and full name of the character
get_char_icon_pic(name) # returns binary icon picture of the character and full name of the character
get_cone_pic(number) # returns binary picture of the light cone and full name of the light cone
get_cone_icon_pic(number) # returns binary icon picture of the light cone and full name of the light cone
get_relic_icon_pic(number) # returns binary icon picture of the relic or planetary and full name of the relic or planetary
get_character_prydwen(name) # returns binary picture of the character from prydwen
```

## Examples

You can get picture of character using the following code:

```python
from hsr_pic_parser import get_char_pic

picture, name = get_char_pic('argenti')
```
The name of the character should be identical to the one used on [starrail.mana](https://starrail.mana.wiki/).

You can get picture and the name of the light cone:

```python
from hsr_pic_parser import get_cone_pic

picture, name = get_cone_pic(20000)
```
The code of the light cone should be equivalent to the one used on [starrail.mana](https://starrail.mana.wiki/).

```python
from hsr_pic_parser import get_relic_icon_pic

picture, name = get_relic_icon_pic(101)

def save_image_as_png(image_data, output_file_path):
    with open(output_file_path, "wb") as png_file:
        png_file.write(image_data)

save_image_as_png(picture, f"${name}.png")
```

You can get the name and the picture of the charater from prydwen [prydwen.gg](https://www.prydwen.gg/star-rail/characters/) by URL.

```python
from hsr_pic_parser import get_character_prydwen

picture, name = get_character_prydwen('argenti')
```
preallocate-cuda-memory 1.0.0
preallocate CUDA memory for pytorch
Requires Python: >=3.10

# Preallocate CUDA memory for pytorch

This is a code that helps preallocate memory for PyTorch, used for competing for computational resources with others.

You can use the following command directly on the command line:

```bash
python -m preallocate_cuda_memory
```

Or you can use in python file:

```python
import preallocate_cuda_memory as pc

mc = pc.MemoryController(0)  # 0 is the GPU index
mc.occupy_all_available_memory()
mc.free_memory()
```

If you find any issues, please feel free to contact the author by raising an issue on GitHub.
krules-companion-sync 0.2.0
KRules Comapnion channels/triggers creation or updates from a yaml file
Requires Python: <4.0,>=3.10

# Firestore Trigger

Firestore Trigger is a CLI tool designed to automate the creation and updating of channels and triggers in Firestore based on configurations defined in a YAML file.


### Installation

1. Clone the repository:

```bash
git clone https://github.com/airspot-dev/cm-sync.git
cd cm-sync
```

2. Activate the Poetry shell:

```bash
poetry shell
```

3. Install dependencies using Poetry:

```bash
poetry install
```

## Usage

The tool provides commands for syncing channels and triggers with Firestore database.

### To Update:

- Using standard input (stdin)/pipe to pass the YAML content directly:

```bash
cat path/to/your/trigger.yaml | cm-sync
```

- Using a file path to specify the YAML file:

```bash
cm-sync -f path/to/your/trigger.yaml
```