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.5.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

aiocpa-0.1.5-py3-none-any.whl (36.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aiocpa-0.1.5.tar.gz
Algorithm Hash digest
SHA256 cd7f4365e30fb09fb0e37465357fc3251124aaa8d5f0ffb2e9f2e6b26d30aead
MD5 aca0ebf4a34ffdfc82b8421d6075b362
BLAKE2b-256 0b6b5719ecedbeb2173075cae5926bd9ddea00f346c4caf76bdae75b0851362f

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for aiocpa-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a7bc19930d2af6ab5934dc2da20f53d356926495bb158da92afebda6d3fca31e
MD5 a3badfcc53b0a1606665754b6bcb894c
BLAKE2b-256 aa2c4e46f722e76d84099840d6138fd0336d7c8cb262a00c690536f686f1321f

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