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.1.5.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.1.5-py3-none-any.whl (35.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for milkpay_cryptomus-1.1.5.tar.gz
Algorithm Hash digest
SHA256 b618f90aafaaec9dfe893e7ec63edcfdd07b15a6818ba4d0e3791fe20b3b8bb7
MD5 1a3251cb8ba259da2df09e461cda930e
BLAKE2b-256 fbfa7f578aa568fc2b493a5483903f2a69a977e1f0d5bf3e7549a2f9b1430203

See more details on using hashes here.

Provenance

The following attestation bundles were made for milkpay_cryptomus-1.1.5.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.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for milkpay_cryptomus-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 03e4017cfb9b23c576c1579c1e20c73e29ed8b1668e2e41ca71e38840a84f969
MD5 0aebb08d74efd5a81895d1898c651aad
BLAKE2b-256 4d111c6dc0b4bfe6965929929b6f409c897af69ea4b0a9bd082eff1319b9f2b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for milkpay_cryptomus-1.1.5-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