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

Uploaded Python 3

File details

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

File metadata

  • Download URL: rexi_py-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 0d556d383d79cd98c6dc912c0d5f01abb3076a925216263efd7e01e63aea119d
MD5 193618b6ea401062bf24a79fb1d5dc59
BLAKE2b-256 90161ec735fe6aff4e792cbee945952280aec3c9865537c16d50106a2bca6ec3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rexi_py-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1f56353b38dc62d81735983820f5c1a1d4c44f3a0de3890103c94a6302b38b17
MD5 cd950beda9e25abbf9ffd45b7f632129
BLAKE2b-256 8bcaab45bc278462a0d780190538101fdd973390e947f4448022d18e40bae6aa

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