semvec/pypi-packages huggingface dataset:
kaftar 0.2.2
a simple sdk to send notifications on queue for celery tasks
Requires Python: >=3.8

# Kaftar SDK

## Usage

Package installation

``` bash
pip install kaftar
```

Usage:

``` python
import uuid
import time
from kaftar import Notification

message_uuid = uuid.uuid4()
group_uuid = uuid.uuid4()
broker_url = "BROKER_URL_HERE"

app = Notification('app_name', broker_url)
app.send_notification(
    {
        'subject': 'Notification title goes here',
        'content': 'Notification body goes here'
    },
    [
        {
            'receiver': "076f08cc-4122-400a-bffa-2a0157ba57eb",  # can be email or phone number
            'message_uuid': str(message_uuid),  # Optional (task will generate an id if not provided here)
            'uuid': "076f08cc-4122-400a-bffa-2a0157ba57eb"
        }
    ],
    int(time.time()),
    group_uuid=group_uuid # Optional
)
# Delete single notification
app.delete_notification(message_uuid)

# Delete group of notifications
app.delete_group_notification(group_uuid)
```
flask-blueprints 0.0.6
Import and register all Flask Blueprints (including nested) from a package directory.
Requires Python: >=3.7

# Flask Blueprint Autoimporter

**`flask-blueprints`** will import and register all nested Flask Blueprints under a given package directory.

## Synopsis

Register all Flask Blueprints (including nested) from a package directory.

## Usage

Create an empty package `app.blueprints` and register your blueprints:

```python
from flask import Flask
from flask_blueprints import register_blueprints


app = Flask(__name__)
register_blueprints(app, 'app.blueprints')
```

Blueprints can now be placed under this package, as such:

```
.
└── app
    ├── blueprints
    │   ├── account
    │   │   ├── account.py
    │   │   ├── contact
    │   │   │   ├── contact.py
    │   │   │   └── __init__.py
    │   │   └── __init__.py
    │   ├── api
    │   │   ├── account
    │   │   │   ├── account.py
    │   │   │   ├── contact
    │   │   │   │   ├── contact.py
    │   │   │   │   └── __init__.py
    │   │   │   └── __init__.py
    │   │   ├── __init__.py
    │   │   └── user
    │   │       ├── __init__.py
    │   │       └── tribute.py
    │   ├── __init__.py
    │   └── project
    │       ├── documents.py
    │       ├── __init__.py
    │       ├── project.py
    │       └── search.py
    └── __init__.py
```


Blueprint `__init__.py` files should look something like the following:

```python
from flask import Blueprint


bp = Blueprint('project', __name__)
from . import documents
from . import project
from . import search
```

(Note that the top-level `app/blueprints/__init__.py` is not a blueprint
package, and therefore should not have a blueprint defined.)

The blueprint files themselves can then define the routes. For example:

```python
from flask import redirect, url_for
from . import bp

@bp.post('/project/<int:project_id>/store')
def store(project_id):
	# ...
	return redirect(url_for('project.show', project_id=project_id))
```

If the blueprint variable is not `bp`, then this can be customised:

```python
register_blueprints(app, 'app.blueprints', bp='bp')
```


## Further Reading

 * [`importlib` — The implementation of `import`](https://docs.python.org/3/library/importlib.html)
 * [`pkgutil` — Package extension utility](https://docs.python.org/3/library/pkgutil.html)
 * [Modular Applications with Blueprints](https://flask.palletsprojects.com/en/2.3.x/blueprints/)
psyqlepg 0.4.1
Simple SQL library for psycopg3.
Requires Python: >=3.7

# Query Manager for Psycopg

Utility functions for making [SQL](https://www.iso.org/standard/63555.html) queries for [PostgreSQL](https://www.postgresql.org/) with [Python](https://www.python.org/doc/) and [Psycopg 3](https://www.psycopg.org/psycopg3/docs/).

Under development. The API is currently undocumented.

## Development

 * [Packaging](https://packaging.python.org/en/latest/tutorials/packaging-projects/)
rustbag 0.1.3
ROSBag Reader focused on cloud storage access, written in Rust.
Requires Python: >=3.8

# RustBag
[![Documentation](https://img.shields.io/badge/docs-passing-green)](https://balbok0.github.io/rustbag/)
[![PyPI](https://img.shields.io/pypi/dm/rustbag?color=00ADD4)](https://pypi.org/project/rustbag/)
[![License](https://img.shields.io/github/license/balbok0/rustbag)](./LICENSE)

RustBag is a yet another ROSBag reader. It's main feature is the ability to read directly from an Object Storage, like AWS S3.
Additionally, it is *fast*, with speeds somewhere in between [rosbags](https://ternaris.gitlab.io/rosbags/) and [embag](https://github.com/embarktrucks/embag).
It is also written in Rust.

## Using RustBag
Please visit [docs website](https://balbok0.github.io/rustbag) for installation, examples and usage orientated documentation.

## Development
You will need at least [rustup](https://rustup.rs/) installed. [Miniforge](https://github.com/conda-forge/miniforge?tab=readme-ov-file#download) is also highly recommended if you are planning on testing from python side.

To contribute, please create a fork and submit an MR to the repo. Note that all contributions will be under [MIT License](./LICENSE).
aio-1c-connect 0.0.3
This is a library for creating bots in the 1C-Connect environment
Requires Python: >=3.8
Keywords: 1C-Connect

# aio-connect

**aio-connect** — пакет предназначенный для создания ботов в среде 1С-Коннект.

За основу для написания пакета была заимствована библиотека [aiogram](https://github.com/aiogram/aiogram).

## Установка
Установить с помощью pip:
```python
pip install aio-1c-connect
```

## Использование
Пример реализации бота с использованием данного пакета: [aio-connect-simple-bot](https://github.com/LilKirill00/aio-connect-simple-bot) 

Пример создания бота:
```python
import sys
import logging

from aiohttp import web

from config_reader import config
from aio_connect.types import HookType
from aio_connect import Bot, Dispatcher, Router, types, F
from aio_connect.webhook.aiohttp_server import SimpleRequestHandler, setup_application

SERVER_API = config.SERVER_API

# host
BASE_WEBHOOK_URL = config.BASE_WEBHOOK_URL
WEBHOOK_PATH = config.WEBHOOK_PATH

# listen
WEB_SERVER_HOST = config.WEB_SERVER_HOST
WEB_SERVER_PORT = config.WEB_SERVER_PORT

# line
LINE_ID = config.LINE_ID

bot = Bot(
    api_login=config.API_LOGIN.get_secret_value(),
    api_password=config.API_PASSSWORD.get_secret_value(),
    line_id=LINE_ID,
    base=SERVER_API
)


async def on_startup() -> None:
    await bot.set_hook(type=HookType.BOT, id=LINE_ID, url=BASE_WEBHOOK_URL + WEBHOOK_PATH + LINE_ID)


router = Router()


@router.line(F.text)
async def text_handler(line: types.TypeLine) -> None:
    if line.user_id == line.author_id:
        await bot.send_message_line(line_id=line.line_id, user_id=line.user_id, text=line.text)


def main() -> None:
    dp = Dispatcher()
    dp.include_router(router)

    dp.startup.register(on_startup)

    app = web.Application()

    webhook_requests_handler = SimpleRequestHandler(
        dispatcher=dp,
        bot=bot,
    )
    # Register webhook handler on application
    webhook_requests_handler.register(app, path=WEBHOOK_PATH + LINE_ID)

    # Mount dispatcher startup and shutdown hooks to aiohttp application
    setup_application(app, dp, bot=bot)

    # And finally start webserver
    web.run_app(app, host=WEB_SERVER_HOST, port=WEB_SERVER_PORT)


if __name__ == "__main__":
    logging.basicConfig(level=logging.INFO, stream=sys.stdout)
    main()
```

## Документация
Написание пакета основывалось на: [Документации для разработчиков](https://1c-connect.atlassian.net/wiki/spaces/PUBLIC/pages/975568915/4.).

## Лицензия
Пакет распространяется под лицензией MIT. Подробности можно узнать в файле
[LICENSE](https://github.com/LilKirill00/aio-connect/blob/main/LICENSE).
Flask-More 0.2.2
Modernized Flask API builder with schema validator and OpenAPI
Requires Python: >=3.8
Keywords: api,flask,openapi,plugin,validator

# Flask-More

![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/ischaojie/flask-more/ci.yml?branch=main&style=flat-square)
[![codecov](https://codecov.io/gh/ischaojie/flask-more/branch/main/graph/badge.svg?token=FPBE0LGDCO)](https://codecov.io/gh/ischaojie/flask-more)
[![PyPI](https://img.shields.io/pypi/v/flask-more?style=flat-square)](https://pypi.org/project/Flask-More/)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/flask-more?style=flat-square)
![GitHub](https://img.shields.io/github/license/ischaojie/flask-more?style=flat-square)

Modernized Flask API builder with schema validator and OpenAPI.


> **Warning**
>
> Currently, `Flask-More` is still under active development(before v1.0.0).
>
> Be careful to use it in production.

Flask-More is kind of like the famous library [FastAPI](https://github.com/tiangolo/fastapi), bringing part of its brilliant features to your Flask application, you can see a lot of similarities between the two.

For example, it uses [Pydantic](https://github.com/samuelcolvin/pydantic) for request and response validation,
it will auto-generate `OpenAPI` API docs and so on.

## Feature

-   Intuitive and easy to use.
-   Request/Response validation based on type hinting(by Pydantic).
-   Auto-generated `OpenAPI` docs(both swagger and redoc).
-   Designed for API development.

## Quick start

```bash
python -m pip install flask-more
```

You can view and run the code in the [example](https://github.com/ischaojie/flask-more/tree/main/example) file.
Then open [http://127.0.0.1:5000/docs](http://127.0.0.1:5000/docs) you will see the API docs like this:

![docs](https://img.chaojie.fun/flask-lan-docs.png)

## License

This project is licensed under the terms of the MIT license.
mitta_mistralai 0.1.3b2
Fork of MistralAI client library with httpx allowed to be 0.27.0+. Will track with official Mistral release until this is addressed in the main package.
Requires Python: >=3.9,<4.0

# Mistral Python Client

## Mitta Build
**NOTE**: This fork will track with Mistral's client library until that library is updated with a newer dependency for httpx. This library allows httpx version >= 0.27.0. No other changes, other than import names, have been made to this library. This library has been tested for embeddings and chat completions.

The source code is located [here](https://github.com/MittaAI/client-python). This is NOT a client library for [Mitta](https://mitta.ai).


## Carry On
This client is inspired from [cohere-python](https://github.com/cohere-ai/cohere-python)

You can use the Mistral Python client to interact with the Mistral AI API.

## Installing

```bash
pip install mitta_mistralai
```

### From Source

This client uses `poetry` as a dependency and virtual environment manager.

You can install poetry with

```bash
pip install poetry
```

`poetry` will set up a virtual environment and install dependencies with the following command:

```bash
poetry install
```

## Run examples

You can run the examples in the `examples/` directory using `poetry run` or by entering the virtual environment using `poetry shell`.

### API Key Setup

Running the examples requires a Mistral AI API key.

1. Get your own Mistral API Key: <https://docs.mistral.ai/#api-access>
2. Set your Mistral API Key as an environment variable. You only need to do this once.

```bash
# set Mistral API Key (using zsh for example)
$ echo 'export MISTRAL_API_KEY=[your_key_here]' >> ~/.zshenv

# reload the environment (or just quit and open a new terminal)
$ source ~/.zshenv
```

### Using poetry run

```bash
cd examples
poetry run python chat_no_streaming.py
```

### Using poetry shell

```bash
poetry shell
cd examples

>> python chat_no_streaming.py
```
excel2x 0.0.6
A excel convert package
Requires Python: >=3.8

# excel2x

## 转换 Config 配置工具 excel2x

`Python3` 库 `excel2x`。只需要用工具生成自己项目的配置文件，就可以按照配置文件导`Excel`表了。现在支持 `lua`、`json` 格式，后面后继续扩展 `csv`、`xml` 等格式。

支持生成数据格式 `Schema`，现在支持 `Lua Schema`、`JSON Schema`, 后面会支持 `TypeScript interface`、`Java Class` 和 `C# Class`。

---

## 安装

```bash
pip install excel2x
```

## 使用方式

### 查看帮助

```bash
python3 -m excel2x -h
# or
excel2x-cli -h
```

### 创建项目配置

```bash
python3 -m excel2x --config project_path/config.json --name project_name --create
# or
excel2x-cli --config project_path/config.json --name project_name --create
```

### 命令行转换 Excel

#### 按 config.json 配置转换

```bash
python3 -m excel2x --config project_path/config.json
# or
excel2x-cli --config project_path/config.json
```

#### 转换单个文件

```bash
excel2x-cli -i xxx/xxx.xlsx -o project_path/xxx.json -f json
```

### 在 `Python` 脚本中使用

```python
#!/usr/bin/env python3
# -*- coding: utf-8 -*

from excel2x import convert_config
from excel2x import convert_one

if __name__ == "__main__":
    # 项目配置路径
    proj_config_path = "project_path/config.json"
    convert_config(proj_config_path)

    # 单个文件转换
    convert_one("xxx/xxx.xlsx", "project_path/xxx.json", "json")

```
dvtagcc 0.6.41
A tool for tagging your doujin voice library.
Requires Python: >=3.9

# DVTAG

A tool for tagging your doujin voice library.

## Installation

*Require Python>=3.9*

```bash
pip install dvtagcc
```

## Usage

```
$ dvtag -h
usage: dvtag [-h] [-w2f] [-w2m] dirpath

Doujin Voice Tagging Tool (tagging in place)

positional arguments:
  dirpath     a required directory path

options:
  -h, --help  show this help message and exit
  -w2f        transcode all wav files to flac [LOSELESS] (default: False)
  -w2m        transcode all wav files to mp3 (default: False)
```

You must ensure that every doujin voice folder name contains a specific id format(in dlsite) - like `RJ123123`, `rj123123 xxx`, `xxxx RJ123123`

```
├── EXcute
│   ├── RJ321580
│   └── RJ328009
│
├── Kaleidoscope
│   └── RJ329141
│
├── PINK PUNK PRO
│   └── RJ321217
│
├── plug in.XX
│   ├── [RJ310972][XXXxx][plug in.XX]
│   └── RJ341111
│
├── ReApple
│   ├── [RJ263247]
│   └── RJ301616
```

Then tagging with command `dvtag`:

```bash
dvtagcc /path/to/your/library
```

If you have `wav` audio files and you want to convert these all to `flac`/`mp3`, run with option `-w2f`/`-w2m`. For example

```bash
dvtagcc -w2f /path/to/your/library
```