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
Built Distribution
File details
Details for the file milkpay_xrocket-1.0.0b5.tar.gz
.
File metadata
- Download URL: milkpay_xrocket-1.0.0b5.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 | f735fc9e7e76e38deb19a677b998197b74105028de7c39de446250fea817e40a |
|
MD5 | 0bc8ee68d508543531abcea5e861d912 |
|
BLAKE2b-256 | f66ff25dd6235b3de04a2fbe9f6233503f103de038a7b287989722683233ee66 |
Provenance
The following attestation bundles were made for milkpay_xrocket-1.0.0b5.tar.gz
:
Publisher:
pypi-release.yml
on py-stollen/milkpay-xrocket
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
milkpay_xrocket-1.0.0b5.tar.gz
- Subject digest:
f735fc9e7e76e38deb19a677b998197b74105028de7c39de446250fea817e40a
- Sigstore transparency entry: 147577440
- Sigstore integration time:
- Predicate type:
File details
Details for the file milkpay_xrocket-1.0.0b5-py3-none-any.whl
.
File metadata
- Download URL: milkpay_xrocket-1.0.0b5-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 | 0d6aeccebc04f1884838c87b1c56894f5012f2cb736567d99261b996b772d60e |
|
MD5 | a17907edfbe3542e02e561f15eb2f4c4 |
|
BLAKE2b-256 | c2775051263e0fbca98aff6b8bc44003ed1685ccb9b6772eb98080f494965607 |
Provenance
The following attestation bundles were made for milkpay_xrocket-1.0.0b5-py3-none-any.whl
:
Publisher:
pypi-release.yml
on py-stollen/milkpay-xrocket
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
milkpay_xrocket-1.0.0b5-py3-none-any.whl
- Subject digest:
0d6aeccebc04f1884838c87b1c56894f5012f2cb736567d99261b996b772d60e
- Sigstore transparency entry: 147577441
- Sigstore integration time:
- Predicate type: