A lightweight Cryptomus SDK
Project description
milkpay is a set of lightweight crypto payment system SDKs.
Installation
pip install -U milkpay-cryptomus
Simple example
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
milkpay_cryptomus-1.0.tar.gz
(13.4 kB
view hashes)
Built Distribution
Close
Hashes for milkpay_cryptomus-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5b58d48163207c3a76e469c1be864995f01481a991a92045054c5be87b5ae20 |
|
MD5 | 607e5dd0aa04a575729fb1d1ef57e7b5 |
|
BLAKE2b-256 | b9ac5e27ccf7542de47ae1fe0998b41b2820e03a8a7097930774eba8f8bbd30c |