pyCryptomusAPI
Python implementation of Cryptomus and Heleket public API
If you found a bug or have a feature request, just create an issue!
Installation
Installation using pip (a Python package manager):
$ pip install pyCryptomusAPI
Usage
Everything is as simple as the API itself.
- Create pyCryptomusAPI or pyHeleketAPI 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))
Available methods include:
- Payments: create_invoice(), create_wallet(), payment_qr_code(), wallet_qr_code(), block_wallet(), block_wallet_refund(), payment_information(), refund(), resend_payment_webhook(), test_payment_webhook(), payment_history(), payment_services(), mark_payment_as_paid()
- Payouts: create_payout(), payout_information(), payout_history(), payout_services(), transfer_to_personal(), transfer_to_business(), test_payout_webhook()
- Recurring payments: create_recurrence(), recurrence_information(), recurrence_history(), cancel_recurrence()
- Other: balance()
Exceptions
Exceptions are raised 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-1.0.1.tar.gz
(15.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pycryptomusapi-1.0.1.tar.gz.
File metadata
- Download URL: pycryptomusapi-1.0.1.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c747f52c9ff108f575a1c66c15cbdd3dcafc534b8982990d7c2894ca9ebc78df
|
|
| MD5 |
dd3405776ddb6867d972fe8e0dfcd526
|
|
| BLAKE2b-256 |
6a4f722da30b4c4fb154fde8a13590f3784dcbf7c262a7ab78072c72f5f9cbd1
|
File details
Details for the file pycryptomusapi-1.0.1-py3-none-any.whl.
File metadata
- Download URL: pycryptomusapi-1.0.1-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
838743021b315075a91df14ec34b6e3e5429d1b093cffdd51996347650a04936
|
|
| MD5 |
e8f6bc9af419efc0b8dd8d1b2abf8643
|
|
| BLAKE2b-256 |
67cbb151eb9653d4f96cf12f62ac5a0226b2c7f05af834fd25240a7cc3038317
|