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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiorocket2-2.1.tar.gz (3.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiorocket2-2.1-py3-none-any.whl (42.8 kB view details)

Uploaded Python 3

File details

Details for the file aiorocket2-2.1.tar.gz.

File metadata

  • Download URL: aiorocket2-2.1.tar.gz
  • Upload date:
  • Size: 3.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for aiorocket2-2.1.tar.gz
Algorithm Hash digest
SHA256 be669fbd86bc86d2486d20631a3961962c587f1b73b44a453c75d70c426e1f62
MD5 e2bda8566d45c14945d2a9de61eba430
BLAKE2b-256 23188920465ddf58dcceb134eacc043205cb09acb7ac57db647f50b53fada5c4

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiorocket2-2.1.tar.gz:

Publisher: deploy_pypi.yml on RimMirK/aiorocket2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aiorocket2-2.1-py3-none-any.whl.

File metadata

  • Download URL: aiorocket2-2.1-py3-none-any.whl
  • Upload date:
  • Size: 42.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for aiorocket2-2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9ff7337a00a618606cdb5a9d0b5ae44eb6b14ce79b35954d23924c512a2ddbfe
MD5 bc132709385886853f77a0ed172d9dc4
BLAKE2b-256 ddca1449918d192b5249fb0987627300fb73b964d19f5c9412b4d2e58433317a

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiorocket2-2.1-py3-none-any.whl:

Publisher: deploy_pypi.yml on RimMirK/aiorocket2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page