semvec/pypi-packages huggingface dataset:
redstream 0.1.5
Асинхронный инструментарий для работы с Redis Streams и конфигурациями
License: MIT
Requires Python: >=3.8
Keywords: redis, async, streams, configuration

# RedStream

Асинхронный инструментарий для работы с Redis Streams и конфигурациями.

## Описание

RedStream - это Python библиотека, которая предоставляет удобный интерфейс для работы с Redis Streams. Она разработана для создания масштабируемых микросервисных архитектур с использованием Redis в качестве шины обмена сообщениями.

## Особенности

- Асинхронный API для работы с Redis Streams
- Система роутинга сообщений
- Работа с группами потребителей (Consumer Groups)
- Структуры сообщений с поддержкой типизации
- Отслеживание статусов сообщений в процессе обработки
- Интеграция с aiogram

## Установка

```bash
pip install redstream
```

## Простой пример использования

```python
import asyncio
from redstream import RSMessage, RSMessageStatus, RedisStreamRouter

async def main():
    # Инициализация роутера
    router = RedisStreamRouter(
        redis_url="redis://localhost:6379/0",
        stream_name="my_stream"
    )
    
    # Создание сообщения
    message = RSMessage(
        event_type="message",
        message_type="text",
        action="process",
        chat_id="123456",
        user_id="user123",
        text="Привет, RedStream!"
    )
    
    # Отправка сообщения
    await router.publish_message("my_stream", message)
    
    # Обработка сообщений
    async def message_handler(msg):
        print(f"Получено сообщение: {msg.text}")
        return True
    
    # Регистрация обработчика
    router.register_handler("message", message_handler)
    
    # Запуск обработки сообщений
    await router.start_consuming()

if __name__ == "__main__":
    asyncio.run(main())
```

## Лицензия

MIT

## Автор

Albert Toma (cornil@mail.ru)
kryten-moderator 0.4.0
Kryten moderation service - handles chat moderation and filtering
License: MIT
Requires Python: >=3.10
Keywords: chat, cytube, microservices, moderation, nats

"# Kryten Moderator

Kryten moderation service - handles chat moderation and filtering for CyTube.

## Features

- Real-time chat message monitoring
- User tracking and management
- Event-driven architecture using NATS
- Extensible moderation rules

## Installation

### Prerequisites

- Python 3.10 or higher
- Poetry
- NATS server running
- kryten-py library

### Setup

1. Install dependencies:
```bash
uv sync
```

2. Copy the example configuration:
```bash
cp config.example.json config.json
```

3. Edit `config.json` with your settings:
```json
{
  "nats_url": "nats://localhost:4222",
  "nats_subject_prefix": "kryten",
  "service_name": "moderator"
}
```

## Usage

### Running the Service

Using Poetry:
```bash
uv run kryten-moderator --config config.json
```

Using the startup script (PowerShell):
```powershell
.\start-moderator.ps1
```

Using the startup script (Bash):
```bash
./start-moderator.sh
```

### Command Line Options

- `--config PATH`: Path to configuration file (default: `/etc/kryten/moderator/config.json`)
- `--log-level LEVEL`: Set logging level (DEBUG, INFO, WARNING, ERROR)

## Event Handling

The service currently listens for:

- **chatMsg**: Chat messages from users
- **addUser**: User join events

## Development

### Running Tests

```bash
uv run pytest
```

### Linting

```bash
uv run ruff check .
```

### Formatting

```bash
uv run black .
```

## License

MIT License - see LICENSE file for details
"
ocrbridge-core 3.1.1
Core interfaces and utilities for OCR Bridge engine packages
License: MIT
Requires Python: >=3.10

# OCR Bridge Core

Core interfaces and utilities for OCR Bridge engine packages.

## Overview

`ocrbridge-core` provides the foundational abstract base classes, models, and utilities that all OCR engine packages must implement. This package enables a modular, plugin-based architecture where OCR engines can be dynamically discovered and loaded at runtime.

## Installation

```bash
pip install ocrbridge-core
```

For local development, we recommend using `uv` and the provided `Makefile`.

See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed setup instructions.

```bash
# Quick start (requires uv)
make install
make check
```

## Core Components

### OCREngine Base Class

All OCR engines must inherit from `OCREngine` and implement:

- `process(file_path, params)` - Process a document and return HOCR XML
- `name` property - Engine identifier (e.g., 'tesseract', 'easyocr')
- `supported_formats` property - Set of supported file extensions

### OCREngineParams

Base model for engine-specific parameters using Pydantic validation.

### Exceptions

- `OCRBridgeError` - Base exception
- `OCRProcessingError` - Processing failures
- `UnsupportedFormatError` - Unsupported file format
- `EngineNotAvailableError` - Engine not installed/available
- `InvalidParametersError` - Invalid parameters

### HOCR Utilities

Helper functions for HOCR XML parsing, validation, and conversion:

- `parse_hocr()` - Parse and extract HOCR information
- `validate_hocr()` - Validate HOCR structure
- `extract_bbox()` - Extract bounding box coordinates
- `easyocr_to_hocr()` - Convert EasyOCR results to HOCR format

## Implementing a New Engine

See the engine packages for examples:
- `ocrbridge-tesseract` - Simple reference implementation
- `ocrbridge-easyocr` - Deep learning with GPU support
- `ocrbridge-ocrmac` - Platform-specific (macOS only)