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

Uploaded Python 3

File details

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

File metadata

  • Download URL: milkpay_xrocket-1.0.0b8.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.0b8.tar.gz
Algorithm Hash digest
SHA256 85cb0894144ed7e6cc49b91f0d53c2a2cf0944e9184a904e595e14773f3a6827
MD5 c3d10cc69f62d484e16a566b3d6b609e
BLAKE2b-256 0b7cf0a7ca88f93882d5b5448e659a988e089674ed0f3b6e68c10c40b7b568a8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for milkpay_xrocket-1.0.0b8-py3-none-any.whl
Algorithm Hash digest
SHA256 693f5eaf90f6f664ac9d29d92355e8ab5905ef5fdc09564b4a278163e77de812
MD5 bfba56bc2ded278dec6eb73fb1ebdb81
BLAKE2b-256 485225648434fb5bce04bd4466567eaf442ee161d62543fbb14a7c49cf2c5947

See more details on using hashes here.

Provenance

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