Skip to main content

A Python client library for Rexi API

Project description

Rexi Logo

Rexi Python API Client

A powerful, modern Python library for interacting with the Rexi API services

PyPI version Python Versions License Code style: black

Overview

Rexi Python API Client is a comprehensive toolkit for interacting with the Rexi API services, with a focus on Solana blockchain operations. Built with modern Python practices, the library offers a clean, intuitive async interface to access all Rexi API endpoints.

Installation

# Once published to PyPI, you can install with:
# pip install rexi-py

# For now, install directly from the source:
# pip install git+https://github.com/yourusername/rexi-py.git

Features

  • Simple and intuitive async API
  • Complete coverage of Rexi API endpoints
  • Organized into logical modules for different API categories
  • Built-in support for Solana blockchain operations
  • Typed interface with Python type hints
  • WebSocket support for real-time data

Basic Usage

import os
import asyncio
from rexi_py import RexiAPI

async def example():
    # Initialize Rexi API client
    rexi = RexiAPI({
        'api_key': os.environ.get('REXI_API_KEY')
    })
    
    # Get market statistics
    market_stats = await rexi.solana.get_market_stats()
    
    # Monitor wallet activity
    wallet_activity = await rexi.solana.monitor_wallet({
        'address': 'So11111111111111111111111111111111111111112',
        'timeout': 30
    })
    
    # Get token information
    token_info = await rexi.solana.get_token_info({
        'address': 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'
    })
    
    print({
        'market_stats': market_stats,
        'wallet_activity': wallet_activity,
        'token_info': token_info
    })

# Run the async function
asyncio.run(example())

API Reference

For detailed API documentation, please see the documentation directory, which contains comprehensive information about all available endpoints organized by functionality:

RexiAPI

The main client class for interacting with the Rexi API.

rexi = RexiAPI({
    'api_key': 'your_api_key_here'
})

Or use an environment variable:

# Set REXI_API_KEY environment variable
import os
os.environ['REXI_API_KEY'] = 'your_api_key_here'

# Initialize without explicitly providing the key
rexi = RexiAPI()

For complete usage examples, see the example.py file in the project root.

Complete Example

See the example.py file for a complete demonstration of all API endpoints.

License

MIT

Project details


Download files

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

Source Distribution

rexi_py-0.1.5.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

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

rexi_py-0.1.5-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file rexi_py-0.1.5.tar.gz.

File metadata

  • Download URL: rexi_py-0.1.5.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for rexi_py-0.1.5.tar.gz
Algorithm Hash digest
SHA256 41280f3fcc932ced8129f10d287a1d745ff6b461e95f07cd85465b2121c4bb69
MD5 d2fa8a58e35bd9acbd6d9c8ee43edb61
BLAKE2b-256 af9f38c128783bb57daa7b8f0efd1a299f00e3f3fdd7e1d0201b6d76d70e5ce7

See more details on using hashes here.

File details

Details for the file rexi_py-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: rexi_py-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for rexi_py-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 508852b32a785bff8b75ff8051c7a45e7350db76d8b131392caee8810a1ffbac
MD5 9a0e17793d84c5caff461b2bcd6ca032
BLAKE2b-256 88b7edc10e85dddced897f1a15cf0bf9a5820e73212eebafde7f03b50499dc0e

See more details on using hashes here.

Supported by

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