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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for milkpay_xrocket-1.0.0b9.tar.gz
Algorithm Hash digest
SHA256 4075d159cf12e47e1864bf97820f78cafa70c6632b388d1d7ef0399282321b32
MD5 59424bb2e863766dd22f9bb2e6e911e6
BLAKE2b-256 9b787fd757ac6b639dfd1249770e20d2f43bee81685db1a5b4b062abe2723d74

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for milkpay_xrocket-1.0.0b9-py3-none-any.whl
Algorithm Hash digest
SHA256 4fa62b65069856d5e95e6d7360391505b741d2832719f614336ab8cd6ad4e24c
MD5 8620b600fbc616b011721bc997f9d913
BLAKE2b-256 53975690a0899b8a872a6d1bdb1465a0304ceec7a0f9745781cb7c9bea5fae76

See more details on using hashes here.

Provenance

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