Skip to main content

A lightweight CryptoPay SDK

Project description

milkpay is a set of lightweight crypto payment system SDKs.

Installation

pip install -U milkpay-cryptopay

Simple example

import asyncio
import logging
import uuid
from typing import Final

from milkpay.cryptopay import Cryptopay
from milkpay.cryptopay.enums import Asset

API_TOKEN: Final[str] = "API_TOKEN_HERE"


async def main() -> None:
    logging.basicConfig(level=logging.DEBUG)
    async with Cryptopay(
        api_token=API_TOKEN,
        production=False,
        force_detailed_errors=True,
    ) as cryptopay:
        logging.info(
            await cryptopay.transfer(
                user_id=5945468457,
                asset=Asset.USDT,
                amount=1.1,
                spend_id=int(uuid.uuid4()),
            )
        )


if __name__ == "__main__":
    asyncio.run(main())

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_cryptopay-1.1.2.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

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

milkpay_cryptopay-1.1.2-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

Details for the file milkpay_cryptopay-1.1.2.tar.gz.

File metadata

  • Download URL: milkpay_cryptopay-1.1.2.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for milkpay_cryptopay-1.1.2.tar.gz
Algorithm Hash digest
SHA256 f7ed19bc970d40eaf7e289ac50cf30e5885c37357a6bd155bf2ea3d67f26b639
MD5 bb07a3d634c40c5d464a6949e1eba102
BLAKE2b-256 7c6e8bb3add827a9631df98e572ebd35b586b466a69b8ce4a383deec2be6f438

See more details on using hashes here.

Provenance

The following attestation bundles were made for milkpay_cryptopay-1.1.2.tar.gz:

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

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_cryptopay-1.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for milkpay_cryptopay-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1455727e4ff0ccbe19cdfed4100215c62d8748a8ced4d0200ce7c1983fb5d958
MD5 a775a07b0d814ab5f2e0f804216e8536
BLAKE2b-256 5cafca4c808093914828f163e9297d07b3b6d3652c3fdb0257b4f770fe313e37

See more details on using hashes here.

Provenance

The following attestation bundles were made for milkpay_cryptopay-1.1.2-py3-none-any.whl:

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

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