Metadata-Version: 2.1
Name: aiocpa
Version: 0.1.3
Summary: sync & async Crypto Pay API client.
Home-page: https://github.com/vovchic17/aiocpa
License: MIT
Keywords: crypto pay,CryptoBot,Crypto Pay API
Author: VoVcHiC
Author-email: tsvetkovvova17@gmail.com
Requires-Python: >=3.10,<4.0
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
Provides-Extra: docs
Requires-Dist: aiohttp (>=3.10.5,<4.0.0)
Requires-Dist: furo (>=2024.8.6,<2025.0.0) ; extra == "docs"
Requires-Dist: matplotlib (>=3.9.2,<4.0.0) ; extra == "docs"
Requires-Dist: pydantic (>=2.8.2,<3.0.0)
Requires-Dist: sphinx-autodoc-typehints (>=2.3.0,<3.0.0) ; extra == "docs"
Requires-Dist: sphinx-copybutton (>=0.5.2,<0.6.0) ; extra == "docs"
Requires-Dist: sphinxext-opengraph (>=0.9.1,<0.10.0) ; extra == "docs"
Project-URL: Documentation, https://aiocpa.readthedocs.io/en/latest/
Project-URL: Repository, https://github.com/vovchic17/aiocpa
Description-Content-Type: text/markdown

# <p align="center">AsyncIOCryptoPayAPI

[![Python](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/vovchic17/static/main/src/badges/python310_311_312.json)](https://www.python.org/)
[![Crypto Pay API](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/vovchic17/static/main/src/badges/cryptopayapi1.4.json)](https://help.crypt.bot/crypto-pay-api)
[![Pydantic v2](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/pydantic/pydantic/main/docs/badge/v2.json)](https://pydantic.dev)
[![Aiohttp](https://img.shields.io/badge/aiohttp-v3.10.5-2c5bb4?logo=aiohttp)](https://docs.aiohttp.org/en/stable/)
[![Code linter: ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/charliermarsh/ruff)
[![Checked with mypy](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/vovchic17/static/main/src/badges/mypy.json)](https://mypy-lang.org/)

**aiocpa** is a syncronous & asynchronous [Crypto Pay API](https://help.crypt.bot/crypto-pay-api) client.

## Documentation
* [English](https://aiocpa.readthedocs.io/en/latest/)

## Quick start
```python
import asyncio

from cryptopay import CryptoPay


async def main() -> None:
    cp = CryptoPay(token="TOKEN")

    app = await cp.get_me()

    print(app.name)  # Your App Name


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

## Synchronous usage
```python
from cryptopay import CryptoPay

cp = CryptoPay("TOKEN")

app = cp.get_me()

print(app.name)  # Your App Name
```

