Skip to main content

sync & async Crypto Pay API client.

Project description

AsyncIOCryptoPayAPI

Python Crypto Pay API Pydantic v2 Aiohttp Code linter: ruff Checked with mypy

aiocpa is a syncronous & asynchronous Crypto Pay API client.

Documentation

Quick start

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

from cryptopay import CryptoPay

cp = CryptoPay("TOKEN")

app = cp.get_me()

print(app.name)  # Your App Name

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiocpa-0.1.4.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

aiocpa-0.1.4-py3-none-any.whl (36.5 kB view details)

Uploaded Python 3

File details

Details for the file aiocpa-0.1.4.tar.gz.

File metadata

  • Download URL: aiocpa-0.1.4.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.5 Windows/11

File hashes

Hashes for aiocpa-0.1.4.tar.gz
Algorithm Hash digest
SHA256 2e38fa6552f316ca7f25a41583c0cea33f7d08dc11649ea64a4bfe2b0c84d6c1
MD5 1d2a71ff39c6feb50ae8433296c6c36e
BLAKE2b-256 3f358493a346e8088347c61f3b79d5ec746435a04106c8527f16b489585bf061

See more details on using hashes here.

Provenance

File details

Details for the file aiocpa-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: aiocpa-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 36.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.5 Windows/11

File hashes

Hashes for aiocpa-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 756b666040f516e7e65b37abcfc5b533e3f379ae5774d70414f6341e55fc5943
MD5 bf8d8b2aa4e248948b599bc2bade139f
BLAKE2b-256 6ff56469cbb14dcc375c44f644c8dbe16aefe40e227e658b2dff7b5554b51a00

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page