Metadata-Version: 2.4
Name: api-telegraph
Version: 1.0.7
Summary: Python SDK for Telegraph (telegra.ph) API with sync and async support
Author-email: Game Hipe <alikegorplay@gmail.com>
Maintainer-email: Game Hipe <alikegorplay@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/game-hipe/telegraph-api
Project-URL: Repository, https://github.com/game-hipe/telegraph-api
Project-URL: Documentation, https://github.com/game-hipe/telegraph-api#readme
Project-URL: Issues, https://github.com/game-hipe/telegraph-api/issues
Keywords: telegraph,api,client,sdk,async,sync,web scraping,html parser
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: httpx>=0.25.0
Requires-Dist: pydantic>=2.0
Requires-Dist: beautifulsoup4>=4.12.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: pytest-asyncio; extra == "dev"
Requires-Dist: mypy; extra == "dev"
Requires-Dist: ruff; extra == "dev"
Requires-Dist: types-beautifulsoup4; extra == "dev"
Dynamic: license-file

# TelegrapAPI - Асинхронная и синхронная версия
В чём суть проекта? Да в мире существуют 100-1000 API под Telegraph, но я просто захотел, почему бы и нет?

## Features (Особенности)
1. Синхронный и Асинхронный режим.
2. Поддержка Pydantic.
3. Более приятный DX, работа как с ORM

## How to Download (Как скачать?)
```bash
pip install api-telegraph # Вуаля!
```

## Example (Примеры)
```python
from telegraph_api import Telegraph

with Telegraph() as client:
    account = client.create_account( # Создали аккаунт!
        short_name="GH",
        author_name="GameHipe",
        author_url="https://github.com/game-hipe",
    )

    page = account.create_page(
        title = "Hello World! Start Game!",
        html = "<p>Hello, world!</p>"
    )

    print(page)
```

## AsyncExample (Примеры)
```python
import asyncio

from telegraph_api import AsyncTelegraph

async def main():
    async with AsyncTelegraph() as client:
        account = await client.create_account( # Создали аккаунт!
            short_name="GH",
            author_name="GameHipe",
            author_url="https://github.com/game-hipe",
        )

        await account.create_page(
            title = "Hello World! Start Game!",
            html = "<p>Hello, world!</p>"
        )
        
asyncio.run(main())
```

Всё идеальное в простом!
