async-crypto-pay-api


Nameasync-crypto-pay-api JSON
Version 1.2.0 PyPI version JSON
download
home_pageNone
SummaryAsync crypto pay api wrapper for t.me/cryptobot
upload_time2025-07-18 06:35:09
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseNone
keywords api async crypto crypto pay api cryptobot
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "async-crypto-pay-api",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "Tolmachev Igor <me@igorek.dev>",
    "keywords": "api, async, crypto, crypto pay api, cryptobot",
    "author": null,
    "author_email": "Tolmachev Igor <me@igorek.dev>",
    "download_url": "https://files.pythonhosted.org/packages/c1/87/ba746305abe3869837c3779fcd524316de8489f0ea33333c55ef4790c1f1/async_crypto_pay_api-1.2.0.tar.gz",
    "platform": null,
    "description": "# async-crypto-pay-api\n\n![PyPI version](https://img.shields.io/pypi/v/async-crypto-pay-api)\n![Python versions](https://img.shields.io/pypi/pyversions/async-crypto-pay-api)\n![License](https://img.shields.io/pypi/l/async-crypto-pay-api)\n\nAsync Crypto Pay API wrapper for [Telegram Crypto Bot](https://t.me/cryptobot) written in Python 3.10+.\n\n## Requirements\n- Python 3.10 or higher\n- Valid Crypto Bot API token ([get one here](https://t.me/CryptoBot?start=pay))\n\n## Installation\n```bash\npip install async-crypto-pay-api\n```\n\n## Example\n```python\nfrom asyncio import run\nfrom async_crypto_pay_api import CryptoPayApi\nfrom async_crypto_pay_api.models import CurrencyType, FiatAsset\n\ncrypto = CryptoPayApi(\"{token}\")\n\nasync def main() -> None:\n    # Context manager handles connection lifecycle\n    async with crypto:\n        app_info = await crypto.get_me()\n        print(app_info.model_dump_json(indent=4))\n\n        # Create payment invoice\n        invoice = await crypto.create_invoice(\n            currency_type=CurrencyType.FIAT,\n            fiat=FiatAsset.USD,\n            amount=100,\n        )\n        print(f\"Invoice URL: {invoice.bot_invoice_url}\")\n\nrun(main())\n```\n\n## License\nThis project is licensed under the GNU Lesser General Public License v3.0 only.\nSee [LICENSE](LICENSE) for details.\n\n\n## Contributing\nContributions are welcome! Please open an issue or submit a PR for:\n- Bug fixes\n- New features\n- Documentation improvements\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Async crypto pay api wrapper for t.me/cryptobot",
    "version": "1.2.0",
    "project_urls": {
        "documentation": "https://help.send.tg/en/articles/10279948-crypto-pay-api",
        "repository": "https://codeberg.org/igorechek06/async_crypto_pay_api"
    },
    "split_keywords": [
        "api",
        " async",
        " crypto",
        " crypto pay api",
        " cryptobot"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "e4df802f99868cc82908758d3888a0e5b477c4f62cef1acbfb09517a267b0b4b",
                "md5": "c7276dc22b5f3080bd9a8f9957f2e799",
                "sha256": "39e436bce29f291c07955b9878272b008ffab11761fce4fbc09de0aece7e6dab"
            },
            "downloads": -1,
            "filename": "async_crypto_pay_api-1.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c7276dc22b5f3080bd9a8f9957f2e799",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 13602,
            "upload_time": "2025-07-18T06:35:08",
            "upload_time_iso_8601": "2025-07-18T06:35:08.094613Z",
            "url": "https://files.pythonhosted.org/packages/e4/df/802f99868cc82908758d3888a0e5b477c4f62cef1acbfb09517a267b0b4b/async_crypto_pay_api-1.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "c187ba746305abe3869837c3779fcd524316de8489f0ea33333c55ef4790c1f1",
                "md5": "c2dc5a4f5d62ac066ea52e3583600deb",
                "sha256": "f43730462bcae012c7f1b1d9dde8d0f5ec79eb3dce31e75bf457b2bc69dc114f"
            },
            "downloads": -1,
            "filename": "async_crypto_pay_api-1.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "c2dc5a4f5d62ac066ea52e3583600deb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 60982,
            "upload_time": "2025-07-18T06:35:09",
            "upload_time_iso_8601": "2025-07-18T06:35:09.423011Z",
            "url": "https://files.pythonhosted.org/packages/c1/87/ba746305abe3869837c3779fcd524316de8489f0ea33333c55ef4790c1f1/async_crypto_pay_api-1.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-18 06:35:09",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": true,
    "codeberg_user": "igorechek06",
    "codeberg_project": "async_crypto_pay_api",
    "lcname": "async-crypto-pay-api"
}
        
Elapsed time: 2.57624s