Skip to main content

Python implementation of Cryptomus (https://cryptomus.com) pubilc API

Project description

PyPi Package Version Supported Python versions PyPi downloads

pyCryptomusAPI

Python implementation of Cryptomus public API

This library is developing for my personal needs, so it may not fully implement API. However I will continue to maintain it, so if you need some not implemented methods - just open an issue.

Installation

Installation using pip (a Python package manager):

$ pip install pyCryptomusAPI

Usage

Everything is as simple as the API itself.

  1. Create pyCryptomusAPI instance
  2. Access API methods in pythonic notation (e.g. "Creating an invoice" -> create_invoice())
  3. Most methods return result as correspondent class, so you can access data as fields
from pyCryptomusAPI import pyCryptomusAPI
client = pyCryptomusAPI(
    "xxxx-xxxx-xxxx-xxxx-xxxx",  # Merchand UUID
    payment_api_key="xxxxxxx",   # Payment API key (for payment methods)
    payout_api_key="xxxxxxx")    # Payout API key (for payout methods)
balance = client.balance()
for item in balance.merchant:
    print("Merchant balance: {} {}".format(item.balance, item.currency_code))

You can also check tests.py.

Exceptions

Exceptions are rised using pyCryptomusAPIException class.

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

pyCryptomusAPI-0.1.0.tar.gz (12.9 kB view details)

Uploaded Source

File details

Details for the file pyCryptomusAPI-0.1.0.tar.gz.

File metadata

  • Download URL: pyCryptomusAPI-0.1.0.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.2

File hashes

Hashes for pyCryptomusAPI-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9656a2e9b3eb5a35509ceecfa5568373aaa18baa2c375c6434a22a862739f8cb
MD5 185df4a7cab8ab306c90924cc14216f8
BLAKE2b-256 ebb7de8c5b58d40a918936025a73770930ec3a29775eb75d8f93923421e8492f

See more details on using hashes here.

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