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

Uploaded Source

Built Distribution

milkpay_xrocket-1.0.0b2-py3-none-any.whl (72.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for milkpay_xrocket-1.0.0b2.tar.gz
Algorithm Hash digest
SHA256 05d732861b4696322aaff5d2f02040cf9160ee48d920c579ea42b120f66287d5
MD5 5263a388da5c8ff7c0f56d3e1b6ac2b5
BLAKE2b-256 7940b0dd3a093b0a8fd6c14605c807b16a712640d84b079e5ad07bc1a2ff7285

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for milkpay_xrocket-1.0.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 eaf03f4e8b58bb9e26dfa11a48b68d790b15fc796a8fc7b82a93b24b12ffded2
MD5 2f8a03099daed1a7d4f3abaa123ad9b9
BLAKE2b-256 d6c5e4764ce60e9c8e4d985520c01dd4784ce2404ded634fc899e782ac87d1dc

See more details on using hashes here.

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