Skip to main content

aiorocket2  🚀 aiorocket2 🚀

PyPI Python Version License Documentation Issues StandWithUkraine

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.


#StandWithUkraine

🚀 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

  1. Open the bot @xRocket or @xrocket_testnet_bot for the testnet
  2. Go to: xRocket API -> xRocket Pay → Create App → API token
  3. 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)

Source distribution for aiorocket2 2.1
File Size Uploaded
aiorocket2-2.1.tar.gz 3.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for aiorocket2 2.1
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

2.1 This release

2 release files

2.0.4

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page