Skip to main content

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

milkpay_cryptomus-1.2.0-py3-none-any.whl (35.5 kB view details)

Uploaded Python 3

File details

Details for the file milkpay_cryptomus-1.2.0.tar.gz.

File metadata

  • Download URL: milkpay_cryptomus-1.2.0.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for milkpay_cryptomus-1.2.0.tar.gz
Algorithm Hash digest
SHA256 a9513e1ede17c1448d77c8673f6ee8a2c87e11f965481023435e2d0de3d969f7
MD5 0ae50554eadfea481a5a9ab85294adba
BLAKE2b-256 d3fc75dd3650949a5bde1bb35a7491ae23f22b7a77080c52b97af4bd19ec9039

See more details on using hashes here.

Provenance

The following attestation bundles were made for milkpay_cryptomus-1.2.0.tar.gz:

Publisher: pypi-release.yml on py-stollen/milkpay-cryptomus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file milkpay_cryptomus-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for milkpay_cryptomus-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 399adca6052182e01ebf1fde276c2d0fd0e75dac1b1aeb07b5c9897e97a0327e
MD5 94542e46ed15a082148eb9b9fe207594
BLAKE2b-256 a53198d799e4e2aec83bb4525753fccaa24ba2ca9aa32bae55ebdbe284ec9d33

See more details on using hashes here.

Provenance

The following attestation bundles were made for milkpay_cryptomus-1.2.0-py3-none-any.whl:

Publisher: pypi-release.yml on py-stollen/milkpay-cryptomus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page