Skip to main content

PyPi Package Version Supported Python versions PyPi downloads

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.

  1. Create pyCryptomusAPI or pyHeleketAPI 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))

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.0.tar.gz (15.8 kB view details)

Uploaded Source

File details

Details for the file pycryptomusapi-1.0.0.tar.gz.

File metadata

  • Download URL: pycryptomusapi-1.0.0.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.0

File hashes

Hashes for pycryptomusapi-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a120481db92d461c024fb7bb7a69925230fff9bb9410b6e516d0d41dee0cf219
MD5 038f9c07ad404e3b21ef720edf897437
BLAKE2b-256 425e06b7fab635449e4d2a3d37ce38b0c5acfb88a673d35b23412bade8f60e2f

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1.0

2 files

1.0.1

2 files

This release

1.0.0 This release

1 file

0.1.1

1 file

0.1.0

1 file

0.0.8

1 file

0.0.7

1 file

0.0.6

1 file

0.0.5

1 file

0.0.4

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page