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

Uploaded Source

Built Distribution

milkpay_xrocket-1.0.0b0-py3-none-any.whl (72.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for milkpay_xrocket-1.0.0b0.tar.gz
Algorithm Hash digest
SHA256 0476283670d39698ceab6201b3988978b9db47262672d7a6ce4377f63561324f
MD5 fc59391ddde800e28feb4f5677ed3143
BLAKE2b-256 7f20c6b9ace00cf25a5143be7f7fe54a0554a31d68ed006b7e9fb29567a5f294

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for milkpay_xrocket-1.0.0b0-py3-none-any.whl
Algorithm Hash digest
SHA256 c4d281d12dbb1e57251019d09cef82128029e89b0c541699992080a37afad1b4
MD5 35b208ff2c03fdca3b90ac41b0f6a2c9
BLAKE2b-256 e4493f984ccb639aaaa4f115842ec4f462c136cb568c0f816cff18efce62c8fc

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