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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for milkpay_xrocket-1.0.0b6.tar.gz
Algorithm Hash digest
SHA256 a67f78de4f038dc2a4faf53282fc330680c0c92bfa05d0ef2b00cfe37a667f75
MD5 c74bcd088a27cd9a3111859f5267d976
BLAKE2b-256 7a918f1eb4fc068d723d98f17a1b2506ae2bb89e3711613ca8352311a73f603c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for milkpay_xrocket-1.0.0b6-py3-none-any.whl
Algorithm Hash digest
SHA256 0cfae7d01b6792078b53d12e5e2679d0b989953204b257440e039efd232cd272
MD5 37d023a5971acece0ea43db2cb087673
BLAKE2b-256 de576465f2ffb89b1e7f822df7dea970b5527f112c5f68a46f61a54e1186baf9

See more details on using hashes here.

Provenance

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