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

Uploaded Python 3

File details

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

File metadata

  • Download URL: milkpay_xrocket-1.0.0b10.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.0b10.tar.gz
Algorithm Hash digest
SHA256 10732605acb539854079f5fd8634d743bccd16d9961561d3edeab514a57b176c
MD5 864cf0916b863973171067119985d7e5
BLAKE2b-256 82152e879c398821b83463f3875327117e58f10aa6f0372bf6c4e07953223e02

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for milkpay_xrocket-1.0.0b10-py3-none-any.whl
Algorithm Hash digest
SHA256 178ca1ea6569d71ab13263bcf48741880840aed8d0069db02ce75a5054814770
MD5 be5ff7b0301c73761f20de0b59d8a9c7
BLAKE2b-256 56d8a26bba85df76b609365e7a974d715b2efe0455993ba9adc3ce54182da368

See more details on using hashes here.

Provenance

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