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.
- Create pyCryptomusAPI instance
- Access API methods in pythonic notation (e.g. "Creating an invoice" -> create_invoice())
- 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.
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.1.tar.gz
(12.5 kB
view details)
File details
Details for the file pycryptomusapi-0.1.1.tar.gz.
File metadata
- Download URL: pycryptomusapi-0.1.1.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df523b0b1d7757829272bdf4465fb19dd5131e6d131d093cbf5e8e19baf9a222
|
|
| MD5 |
26c2e619a038dad01baebc2da39447eb
|
|
| BLAKE2b-256 |
983edc3b392f1990983e2486031521ba12660a4e82a7335bd324e592a40454d9
|