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.1.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.1-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chiefpay-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 103b8619a828493fd87564cbedcc3e0a490f944c554be403acc415f21968146c
MD5 033d39693f15008e698dc146c253ecb6
BLAKE2b-256 17572fb4657017901e13ab3a305a3511234fde3a2f9fa8a4573971626ef3daaf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chiefpay-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5199eb08fc95b5fb00e5e431e118540bb1691d7a1394adf7d7151d4b911f9529
MD5 6223063765f3d2e150f855808cd9455a
BLAKE2b-256 6b34d07e96b7ba2ebe0fee8e71ae10482024eabc03d1235206ea8e5df9838d7f

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