CryptoPayAPI


NameCryptoPayAPI JSON
Version 1.4.8 PyPI version JSON
download
home_pagehttps://github.com/aweone/CryptoPayAPI
SummarySimple library for https://t.me/CryptoBot
upload_time2024-07-29 18:31:44
maintainerNone
docs_urlNone
authoraweone
requires_pythonNone
licenseMIT License
keywords crypto api pay p2p wrapper async cryptopay cryptopayapi
VCS
bugtrack_url
requirements aiohttp httpx
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # CryptoPayAPI
Simple library for https://t.me/CryptoBot
### Installation
```
$ pip install CryptoPayAPI
```

### Usage
#### Asynchronous
```Python
from CryptoPayAPI.AioCryptoPay import AioCryptoPay
from CryptoPayAPI.types.asset import USDT

import asyncio

async def main():
    # create session
    cryptopay = AioCryptoPay(
        token="token",
        is_test_net=True
    )

    await cryptopay.get_balance()

    invoice = await cryptopay.create_invoice(amount=1, asset=USDT)
    print(invoice.bot_invoice_url)

    await cryptopay.close()

asyncio.run(main())

```

#### Synchronous
```Python
from CryptoPayAPI.CryptoPay import CryptoPay
from CryptoPayAPI.types.asset import BTC

# create session
cryptopay = CryptoPay(
    token="token"
)

cryptopay.get_balance()

invoice = cryptopay.create_invoice(amount=0.3, asset=BTC)
print(invoice.bot_invoice_url)


```

### Docs
The library is fully compatible with the official api - https://help.crypt.bot/crypto-pay-api

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/aweone/CryptoPayAPI",
    "name": "CryptoPayAPI",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "crypto api pay p2p wrapper async cryptopay cryptopayapi",
    "author": "aweone",
    "author_email": "aweonegithub@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/0b/a5/4955a16f0ee35491107cfa91f1e97e7f6355caa4d1ae2faed71c2e3c1fd3/CryptoPayAPI-1.4.8.tar.gz",
    "platform": null,
    "description": "# CryptoPayAPI\nSimple library for https://t.me/CryptoBot\n### Installation\n```\n$ pip install CryptoPayAPI\n```\n\n### Usage\n#### Asynchronous\n```Python\nfrom CryptoPayAPI.AioCryptoPay import AioCryptoPay\nfrom CryptoPayAPI.types.asset import USDT\n\nimport asyncio\n\nasync def main():\n    # create session\n    cryptopay = AioCryptoPay(\n        token=\"token\",\n        is_test_net=True\n    )\n\n    await cryptopay.get_balance()\n\n    invoice = await cryptopay.create_invoice(amount=1, asset=USDT)\n    print(invoice.bot_invoice_url)\n\n    await cryptopay.close()\n\nasyncio.run(main())\n\n```\n\n#### Synchronous\n```Python\nfrom CryptoPayAPI.CryptoPay import CryptoPay\nfrom CryptoPayAPI.types.asset import BTC\n\n# create session\ncryptopay = CryptoPay(\n    token=\"token\"\n)\n\ncryptopay.get_balance()\n\ninvoice = cryptopay.create_invoice(amount=0.3, asset=BTC)\nprint(invoice.bot_invoice_url)\n\n\n```\n\n### Docs\nThe library is fully compatible with the official api - https://help.crypt.bot/crypto-pay-api\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "Simple library for https://t.me/CryptoBot",
    "version": "1.4.8",
    "project_urls": {
        "API Docs": "https://help.crypt.bot/crypto-pay-api",
        "Homepage": "https://github.com/aweone/CryptoPayAPI",
        "Source Code": "https://github.com/aweone/CryptoPayAPI"
    },
    "split_keywords": [
        "crypto",
        "api",
        "pay",
        "p2p",
        "wrapper",
        "async",
        "cryptopay",
        "cryptopayapi"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "92b96f9fa11a9475ced80609f66034b7a4918e3e53cd0301b6be2c2a5c6e0d8f",
                "md5": "ad8a7fe1b918475572ca392c4bc83f16",
                "sha256": "c5d057d73a9a51270b38dac93087a9703f14c6627491e60a6064106acc6268ab"
            },
            "downloads": -1,
            "filename": "CryptoPayAPI-1.4.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ad8a7fe1b918475572ca392c4bc83f16",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 17399,
            "upload_time": "2024-07-29T18:31:42",
            "upload_time_iso_8601": "2024-07-29T18:31:42.430572Z",
            "url": "https://files.pythonhosted.org/packages/92/b9/6f9fa11a9475ced80609f66034b7a4918e3e53cd0301b6be2c2a5c6e0d8f/CryptoPayAPI-1.4.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0ba54955a16f0ee35491107cfa91f1e97e7f6355caa4d1ae2faed71c2e3c1fd3",
                "md5": "1af571831a09364e227276a5e919ac32",
                "sha256": "d15b2c13ea4e4e5e66d81b610521e1cee6d710cc4cb7104f83c0e1981f14f06f"
            },
            "downloads": -1,
            "filename": "CryptoPayAPI-1.4.8.tar.gz",
            "has_sig": false,
            "md5_digest": "1af571831a09364e227276a5e919ac32",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 9888,
            "upload_time": "2024-07-29T18:31:44",
            "upload_time_iso_8601": "2024-07-29T18:31:44.010404Z",
            "url": "https://files.pythonhosted.org/packages/0b/a5/4955a16f0ee35491107cfa91f1e97e7f6355caa4d1ae2faed71c2e3c1fd3/CryptoPayAPI-1.4.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-29 18:31:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "aweone",
    "github_project": "CryptoPayAPI",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "aiohttp",
            "specs": [
                [
                    "~=",
                    "3.8.1"
                ]
            ]
        },
        {
            "name": "httpx",
            "specs": [
                [
                    "~=",
                    "0.23.0"
                ]
            ]
        }
    ],
    "lcname": "cryptopayapi"
}
        
Elapsed time: 0.29155s