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

Uploaded Source

Built Distribution

milkpay_cryptomus-1.1.0-py3-none-any.whl (35.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for milkpay_cryptomus-1.1.0.tar.gz
Algorithm Hash digest
SHA256 4607c565f408c949b006e02ad404f75633878c17bdebfb26ced305d1073deb16
MD5 1e3554dad513f7f89e7221ed463f0221
BLAKE2b-256 6e09aab47fa537663fabfd2ecb5577542ee7b91ec866c96bfa83931740a22714

See more details on using hashes here.

Provenance

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

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

Attestations:

File details

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

File metadata

File hashes

Hashes for milkpay_cryptomus-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e0601b38268cb79af9b0fbe73ed2ff6992d27a3bbb42c61c51ab7eb52f39b06d
MD5 8c5922c7284a2ba69c514f3b5ba37efc
BLAKE2b-256 9a4e54e201be3e4ba66bf32b68449781d383af5809396e09e9f5443e086c90e3

See more details on using hashes here.

Provenance

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

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

Attestations:

Supported by

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