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

Uploaded Source

Built Distribution

aiocpa-0.1.2-py3-none-any.whl (36.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aiocpa-0.1.2.tar.gz
Algorithm Hash digest
SHA256 59841721ab53e3189a866bb5325d873ff73fe415c4dd5cb803955709bbe11ae5
MD5 1de68d92ca504a206f0c179fbeec4553
BLAKE2b-256 3341363af034884af7ff9f3906790be61e8e0a07c603ac6db58cbd8e22e38696

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for aiocpa-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f0736ba3640fe6e08547e968cc2f9b038e79e005ca74832c80ac128ff98df4c0
MD5 84ff9511814f8722f0b0e17b5f715fe5
BLAKE2b-256 d2ec698a353c5e3ba246f9ef44166525ef9ef3cb3d4091935cc4c192d37497db

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