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.0b5.tar.gz (22.9 kB view details)

Uploaded Source

Built Distribution

milkpay_xrocket-1.0.0b5-py3-none-any.whl (73.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for milkpay_xrocket-1.0.0b5.tar.gz
Algorithm Hash digest
SHA256 f735fc9e7e76e38deb19a677b998197b74105028de7c39de446250fea817e40a
MD5 0bc8ee68d508543531abcea5e861d912
BLAKE2b-256 f66ff25dd6235b3de04a2fbe9f6233503f103de038a7b287989722683233ee66

See more details on using hashes here.

Provenance

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

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

Attestations:

File details

Details for the file milkpay_xrocket-1.0.0b5-py3-none-any.whl.

File metadata

File hashes

Hashes for milkpay_xrocket-1.0.0b5-py3-none-any.whl
Algorithm Hash digest
SHA256 0d6aeccebc04f1884838c87b1c56894f5012f2cb736567d99261b996b772d60e
MD5 a17907edfbe3542e02e561f15eb2f4c4
BLAKE2b-256 c2775051263e0fbca98aff6b8bc44003ed1685ccb9b6772eb98080f494965607

See more details on using hashes here.

Provenance

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

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

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page