Skip to main content

A lightweight xRocket API Python SDK

Project description

milkpay is a set of lightweight crypto payment system SDKs. ⚠️ This SDK still in beta! ⚠️

Installation

pip install -U milkpay-xrocket

Simple example

import asyncio
import logging
from typing import Final

from milkpay.xrocket.pay import PayXRocket


PAY_KEY: Final[str] = "YOUR_PAY_KEY_HERE"


async def main() -> None:
    logging.basicConfig(level=logging.DEBUG)
    xrocket: PayXRocket = PayXRocket(pay_key=PAY_KEY)
    try:
        for invoice in await xrocket.get_invoices():
            logging.info("Invoice #%d created at %s", invoice.id, invoice.created)
    finally:
        await xrocket.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_xrocket-1.0.0.tar.gz (22.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_xrocket-1.0.0-py3-none-any.whl (73.6 kB view details)

Uploaded Python 3

File details

Details for the file milkpay_xrocket-1.0.0.tar.gz.

File metadata

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

File hashes

Hashes for milkpay_xrocket-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c6d8e79b85f78206a9d64a00906494df02d567d64bcfeef3e13512ea464d3585
MD5 fb74763c9aad0b8509b318bce87a51b6
BLAKE2b-256 bf12d570944a4135682e2cc768166859a45ab780cc1d4e60398ce55ff0bd8763

See more details on using hashes here.

Provenance

The following attestation bundles were made for milkpay_xrocket-1.0.0.tar.gz:

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

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_xrocket-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for milkpay_xrocket-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 018dbed7aba2d2c83ee6b34ccc928156ed1b33d8d1efb5c93182199bfbc8da3e
MD5 b0d67893d42be750181405277ceb5184
BLAKE2b-256 1b6b3e834ee5d4df9c8809413ba9655794f356361d210d3039b896daa74e55b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for milkpay_xrocket-1.0.0-py3-none-any.whl:

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

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