aiorocket2 is an asynchronous Python client for the xRocket Pay API, providing full access to all methods and parameters of the payment system.
All types, enums, and data structures are mirrored as closely as possible to the original API.
🚀 Features
- Complete wrapper for all xRocket API methods
- Asynchronous access via
asyncio - Full typing support and enums
- Direct parameter mapping from API
- Production-ready and test-friendly
📦 Installation
pip install aiorocket2
Requires Python 3.7+
🔑 Getting an API Key
- Open the bot @xRocket or @xrocket_testnet_bot for the testnet
- Go to: xRocket API -> xRocket Pay → Create App → API token
- Copy the token and use it in your code
⚡ Quick Start
import asyncio
from aiorocket2 import xRocketClient
async def main():
client = xRocketClient(api_key="YOUR_API_KEY")
# Get application info
info = await client.get_info()
print(info)
# Example: create a invoice
invoice = await client.create_invoice(
amount=10, # 10 USDT to pay
min_payment=0, # For single payment pass 0
num_payments=1, # For single payment pass 1
currency="USDT",
description="Buy some products",
hidden_message="Thanks for payment!", # this will appear to the payer after payment
comments_enabled=True
)
print(invoice.link)
asyncio.run(main())
All library methods mirror the xRocket API exactly, including types, required and optional parameters.
📚 Documentation
Full documentation is available online: aiorocket2 Docs Includes:
- Description of all API methods
- Usage examples
- List of all enums and data structures
Build the docs locally
python -m pip install -e .[docs]
python -m sphinx -b html docs docs/_build/html
python -m http.server 8000 --directory docs/_build/html
👨💻 Authors
📝 License
This project is licensed under GNU GPLv3. Full license text
Metadata
Release files for aiorocket2 2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aiorocket2-2.1.tar.gz | 3.6 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aiorocket2-2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.6 MB
Release files / aiorocket2-2.1.tar.gz
| Download URL | aiorocket2-2.1.tar.gz |
|---|---|
| Size | 3.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be669fbd86bc86d2486d20631a3961962c587f1b73b44a453c75d70c426e1f62
|
|
BLAKE2b-256 checksum How to use checksums |
23188920465ddf58dcceb134eacc043205cb09acb7ac57db647f50b53fada5c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 8, 2026.
Transparency logRelease files / aiorocket2-2.1-py3-none-any.whl
| Download URL | aiorocket2-2.1-py3-none-any.whl |
|---|---|
| Size | 42.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9ff7337a00a618606cdb5a9d0b5ae44eb6b14ce79b35954d23924c512a2ddbfe
|
|
BLAKE2b-256 checksum How to use checksums |
ddca1449918d192b5249fb0987627300fb73b964d19f5c9412b4d2e58433317a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 8, 2026.
Transparency log