Metadata-Version: 2.4
Name: async-crypto-pay-api
Version: 1.0.1
Summary: Async crypto pay api wrapper for t.me/cryptobot
Project-URL: repository, https://codeberg.org/igorechek06/async_crypto_pay_api
Project-URL: documentation, https://help.send.tg/en/articles/10279948-crypto-pay-api
Author-email: Tolmachev Igor <me@igorek.dev>
Maintainer-email: Tolmachev Igor <me@igorek.dev>
License-Expression: LGPL-3.0-only
License-File: LICENSE
Keywords: api,async,crypto,crypto pay api,cryptobot
Classifier: Framework :: AsyncIO
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Classifier: Programming Language :: Python
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: Programming Language :: Python :: 3.15
Classifier: Typing :: Typed
Requires-Python: >=3.10
Requires-Dist: aiohttp>=3.12.14
Requires-Dist: pydantic>=2.11.7
Description-Content-Type: text/markdown

# async-crypto-pay-api

![PyPI version](https://img.shields.io/pypi/v/async-crypto-pay-api)
![Python versions](https://img.shields.io/pypi/pyversions/async-crypto-pay-api)
![License](https://img.shields.io/pypi/l/async-crypto-pay-api)

Async Crypto Pay API wrapper for [Telegram Crypto Bot](https://t.me/cryptobot) written in Python 3.10+.

## Requirements
- Python 3.10 or higher
- Valid Crypto Bot API token ([get one here](https://t.me/CryptoBot?start=pay))

## Installation
```bash
pip install async-crypto-pay-api
```

## Example
```python
from asyncio import run
from async_crypto_pay_api import CryptoPayApi
from async_crypto_pay_api.models import CurrencyType, FiatAsset

crypto = CryptoPayApi("{token}")

async def main() -> None:
    # Context manager handles connection lifecycle
    async with crypto:
        app_info = await crypto.get_me()
        print(app_info.model_dump_json(indent=4))

        # Create payment invoice
        invoice = await crypto.create_invoice(
            currency_type=CurrencyType.FIAT,
            fiat=FiatAsset.USD,
            amount=100,
        )
        print(f"Invoice URL: {invoice.bot_invoice_url}")

run(main())
```

## License
This project is licensed under the GNU Lesser General Public License v3.0 only.
See [LICENSE](LICENSE) for details.


## Contributing
Contributions are welcome! Please open an issue or submit a PR for:
- Bug fixes
- New features
- Documentation improvements
