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

Uploaded Python 3

File details

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

File metadata

  • Download URL: milkpay_xrocket-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 d73232b9c435e99977cc24d5c969ba1aadb4a2e68825c7919f7ac26711312b8a
MD5 b505cc5d3a4eefcdcac3a9e18f96cc22
BLAKE2b-256 03f85c4dfbda46b37f9239fbb64997d4dc70af8c09b8451916265706ffaaad37

See more details on using hashes here.

Provenance

The following attestation bundles were made for milkpay_xrocket-1.0.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for milkpay_xrocket-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ff05695b594f5645f09729e33321aeef3802f25b142d3279f0216746c85136da
MD5 5e3c4a35a423f2cf3fd3c732e42e2bda
BLAKE2b-256 208832fd1d59bc7caa5d9d9539d3e0266d358b709e6174b5035c16be7318c87f

See more details on using hashes here.

Provenance

The following attestation bundles were made for milkpay_xrocket-1.0.1-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