An open API service indexing awesome lists of open source software.

https://github.com/py-stollen/milkpay-cryptomus

A lightweight Cryptomus SDK
https://github.com/py-stollen/milkpay-cryptomus

aiohttp asyncio client crypto cryptomus http-client payments stollen wrapper

Last synced: 5 months ago
JSON representation

A lightweight Cryptomus SDK

Awesome Lists containing this project

README

          

#################
milkpay-cryptomus
#################

**milkpay** is a set of lightweight crypto payment system SDKs.

Installation
------------

.. code-block:: bash

pip install -U milkpay-cryptomus

Simple example
--------------

.. code-block:: python

import asyncio
import logging

from milkpay.cryptomus.business import Cryptomus
from milkpay.cryptomus.business.enums import Currency

async def main() -> None:
logging.basicConfig(level=logging.DEBUG)
cryptomus: Cryptomus = Cryptomus()
for rate in await cryptomus.get_exchange_rates(currency=Currency.TON):
logging.info(rate)
await cryptomus.session.close()

if __name__ == "__main__":
asyncio.run(main())

Support
-------
❤️ My TON Address: `UQBTR4X8Cg-qJ3jkMLbuhe7DkqSNAfddNj8kvOHZtLHtR8YQ`