Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Badiboy/pyCryptomusAPI

Repository files navigation

PyPi Package Version Supported Python versions PyPi downloads

pyCryptomusAPI

Python implementation of Cryptomus public API

01.07.2025. This library is alive and up to date. No recent commits means it require no fixes!

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 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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /