semvec/pypi-packages huggingface dataset:
keyfork 2.3.58
Fork of pyrogram. Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots
Requires Python: ~=3.9
Keywords: telegram chat messenger mtproto api client library python

<p align="center">
    <a href="https://github.com/Mayuri-Chan/pyrofok">
        <img src="https://docs.pyrogram.org/_static/pyrogram.png" alt="Pyrofork" width="128">
    </a>
    <br>
    <b>Telegram MTProto API Framework for Python</b>
    <br>

## Pyrofork

> Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots

``` python
from pyrogram import Client, filters

app = Client("my_account")


@app.on_message(filters.private)
async def hello(client, message):
    await message.reply("Hello from Pyrofork!")


app.run()
```

### Key Features

- **Ready**: Install Pyrofork with pip and start building your applications right away.
- **Easy**: Makes the Telegram API simple and intuitive, while still allowing advanced usages.
- **Elegant**: Low-level details are abstracted and re-presented in a more convenient way.
- **Fast**: Boosted up by [TgCrypto](https://github.com/pyrogram/tgcrypto), a high-performance cryptography library written in C.  
- **Type-hinted**: Types and methods are all type-hinted, enabling excellent editor support.
- **Async**: Fully asynchronous (also usable synchronously if wanted, for convenience).
- **Powerful**: Full access to Telegram's API to execute any official client action and more.
python-relations 0.1.0.post1
A Python library for managing model relationships
Requires Python: >=3.8

# Python Relations Package

[简体中文](README.zh-cn.md)

![GitHub License](https://img.shields.io/github/license/vistart/relations)
![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/vistart/relations/total)

A flexible, type-safe relationship management system for Python models built on top of Pydantic [[source](https://github.com/pydantic/pydantic)|[PyPI](https://pypi.org/project/pydantic/)].
Provides ORM-style relationships with caching support and strict type checking through Pydantic's validation system.

## Features

- Built on Pydantic for robust data validation and serialization
- Type-safe relationship declarations with full type hints support
- Configurable caching with TTL support
- Support for common relationship types (BelongsTo, HasOne, HasMany)
- Flexible query and loading interfaces
- Automatic relationship validation
- Forward reference support for circular dependencies

## Requirements

- Python >= 3.8
- pydantic >= 2.0

### Development Requirements

- pytest >= 7.0 (for testing)
- coverage >= 7.0 (for test coverage)

## Quick Start

```python
from typing import ClassVar
from pydantic import BaseModel
from relations import RelationManagementMixin, HasMany, BelongsTo

class Department(RelationManagementMixin, BaseModel):
    id: int
    name: str
    employees: ClassVar[HasMany["Employee"]] = HasMany(
        foreign_key="department_id",
        inverse_of="department"
    )

class Employee(RelationManagementMixin, BaseModel):
    id: int
    name: str
    department_id: int
    department: ClassVar[BelongsTo["Department"]] = BelongsTo(
        foreign_key="department_id",
        inverse_of="employees"
    )
```

## Documentation

Detailed documentation is available in the following sections:

- [Getting Started](docs/en-us/getting-started.md)
- [Core Concepts](docs/en-us/core-concepts.md)
- [Relationship Types](docs/en-us/relationship-types.md)
- [Caching](docs/en-us/caching.md)
- [Custom Loaders](docs/en-us/custom-loaders.md)
- [Advanced Usage](docs/en-us/advanced-usage.md)

## License

[MIT License](LICENSE)