Skip to main content

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())

Metadata

Release files for milkpay.cryptopay 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for milkpay.cryptopay 1.1.2
File Size Uploaded
milkpay_cryptopay-1.1.2.tar.gz 9.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for milkpay.cryptopay 1.1.2
File Interpreter ABI Platform
milkpay_cryptopay-1.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 29.6 kB

Release files / milkpay_cryptopay-1.1.2.tar.gz

Download URL milkpay_cryptopay-1.1.2.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f7ed19bc970d40eaf7e289ac50cf30e5885c37357a6bd155bf2ea3d67f26b639
BLAKE2b-256 checksum
How to use checksums
7c6e8bb3add827a9631df98e572ebd35b586b466a69b8ce4a383deec2be6f438
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 9, 2025.

Transparency log

Release files / milkpay_cryptopay-1.1.2-py3-none-any.whl

Download URL milkpay_cryptopay-1.1.2-py3-none-any.whl
Size 19.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1455727e4ff0ccbe19cdfed4100215c62d8748a8ced4d0200ce7c1983fb5d958
BLAKE2b-256 checksum
How to use checksums
5cafca4c808093914828f163e9297d07b3b6d3652c3fdb0257b4f770fe313e37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 9, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page