Skip to main content

ChiefPay Python SDK

Project description

ChiefPay SDK

This is the official Python SDK for interacting with the ChiefPay payment system.

Installation

pip install chiefpay

Usage

Synchronous Client

from chiefpay import Client

client = Client(api_key="your_api_key")
rates = client.get_rates()
print("Exchange rates:", rates)

Asynchronous Client

import asyncio
from chiefpay import AsyncClient

async def main():
    client = AsyncClient(api_key="your_api_key")
    rates = await client.get_rates()
    print("Exchange rates:", rates)

asyncio.run(main())

WebSocket Client

from chiefpay import SocketClient

def on_notification(data):
    print("New notification:", data)

with SocketClient(api_key="your_api_key") as client:
    client.set_on_notification(on_notification)
    input("Press Enter to exit...")

Examples

For comprehensive examples, including advanced use cases, check out the examples directory

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

chiefpay-1.0.2.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chiefpay-1.0.2-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file chiefpay-1.0.2.tar.gz.

File metadata

  • Download URL: chiefpay-1.0.2.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for chiefpay-1.0.2.tar.gz
Algorithm Hash digest
SHA256 ebd9de6293fb553d15b557f387b9a6b257b5081304a538e7caaee060d1d342b6
MD5 c1ec5e821b59378329e6c0a2993d6a42
BLAKE2b-256 f09a3592be3a5eee411847c256bd2b5ed7848a62df0cae74efe9781ac1f7aebd

See more details on using hashes here.

File details

Details for the file chiefpay-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: chiefpay-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for chiefpay-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 23f4ec26feb8fa52a01f9170a40ae31f271c0074f15829742a5e8b7b048bd3ad
MD5 c898a2f39905dc442694061edfe27947
BLAKE2b-256 36dccafdd2a157613dd02bda8313a2e791fdcc6c4ccf76e4c3bd91b1f625452f

See more details on using hashes here.

Supported by

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