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
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.1.tar.gz
(13.4 kB
view details)
Built Distribution
File details
Details for the file milkpay_cryptomus-1.0.1.tar.gz
.
File metadata
- Download URL: milkpay_cryptomus-1.0.1.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9efee70eb5376bde995bed2f08e1f523cfbd39f33c662cd9d8b9841dbb1e9b38 |
|
MD5 | 1d22f2cf5d95686582e5f9d70dcf0170 |
|
BLAKE2b-256 | 68904cf13fd890cb84b0d789bbac223db7c683f31fae059b2341933f7b3102a4 |
File details
Details for the file milkpay_cryptomus-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: milkpay_cryptomus-1.0.1-py3-none-any.whl
- Upload date:
- Size: 35.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ea62583b8691f3cecc0dae46ae39752649454312aaa18ac3d6355e3a1c6e390 |
|
MD5 | 1a35d5ffbb626b05be035d3c8a305715 |
|
BLAKE2b-256 | d2f6728c377f25a853320981fc1b75b7fff6fb636402ae0fc9ad578bfc1f97a2 |