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()
- Webhooks: process_payment_webhook(), process_payout_webhook()
- Other: balance()
Exceptions
Exceptions are raised using pyCryptomusAPIException class.
Metadata
Release files for pyCryptomusAPI 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pycryptomusapi-1.1.0.tar.gz | 18.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pycryptomusapi-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.4 kB
Release files / pycryptomusapi-1.1.0.tar.gz
| Download URL | pycryptomusapi-1.1.0.tar.gz |
|---|---|
| Size | 18.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
914f59292f6706f3504fa1255e72158085d9985d16f8875b69d96d9ce5b3fdf9
|
|
BLAKE2b-256 checksum How to use checksums |
2bbc59e149e3e12baf9c130127e45948d29e9c96d9a5f5b4c3544fb66cc96c87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.0
|
Release files / pycryptomusapi-1.1.0-py3-none-any.whl
| Download URL | pycryptomusapi-1.1.0-py3-none-any.whl |
|---|---|
| Size | 19.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dadc77357d74564b53c700cbef3c248b5afcb22bfa48f48f318aad2995e58872
|
|
BLAKE2b-256 checksum How to use checksums |
4b44ce2d338cb3d5ae37f35d5a46f067a267a079cfd7e0fa22ef22a534ebcce9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.0
|