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
Release history Release notifications | RSS feed
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.0b3.tar.gz
(22.9 kB
view details)
Built Distribution
File details
Details for the file milkpay_xrocket-1.0.0b3.tar.gz
.
File metadata
- Download URL: milkpay_xrocket-1.0.0b3.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e385aa242faad892300dc34247ac198eb3500aa7b1f70430c4813dfccd25287 |
|
MD5 | 4ccb77cae3fc071a6610abe496005429 |
|
BLAKE2b-256 | 80f55ad7760a13135b2f6631f5834ce19b799a3e27ade7464d9cb7b5a63a98cf |
File details
Details for the file milkpay_xrocket-1.0.0b3-py3-none-any.whl
.
File metadata
- Download URL: milkpay_xrocket-1.0.0b3-py3-none-any.whl
- Upload date:
- Size: 73.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac6bb9a6e15f082c194889183776b690b85066dcfc6226ce419710014020866e |
|
MD5 | 25fb07414edb6e8cadfc9e32f5df3c6b |
|
BLAKE2b-256 | 7c02c906dacf8edb136961113d9ad532a54ccd3d8295421aa68f3641fe5ddca0 |