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.3.tar.gz (6.9 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.3-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rexi_py-0.1.3.tar.gz
  • Upload date:
  • Size: 6.9 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.3.tar.gz
Algorithm Hash digest
SHA256 26eaf65ca8fabf19a7005642f18f4e4c96eaae90477c60195714ae947f74bd36
MD5 6018a0614ddb035ad069df3f5cca84eb
BLAKE2b-256 a033e8dfc5e83267f6aa82b4b07ca29a9b47802ece1a71ca4899906c064d9443

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rexi_py-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 6.9 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 33614d550dcbb61d7900c3d6424895b0c0828dcc252b3cf613a3893672b852d8
MD5 abdb203cca41a5caf780312d9d6b4ffc
BLAKE2b-256 66d992f6c881454be8a02f801544e6cc110b7040f3db721f7bd7eec2cc9f74eb

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