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

Uploaded Python 3

File details

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

File metadata

  • Download URL: rexi_py-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 e2f659508d16521361d54c2998647798c4e06c3529b408c6a18e8c169018c705
MD5 dbeda5ff90110241bac2951c17b1dfd3
BLAKE2b-256 229f1f2bc92ec5220aa218947ede618078e8340b9be16270f7aaa91328b2f12f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rexi_py-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0ed4afd50bb4472556172d972a2d5085810da70377b9dcb9b5a16e0769ae2f2a
MD5 c626a60c6068d68585eea2de9e6a2c30
BLAKE2b-256 9d81b2fc8096b25bcf9f1ab828417f1b8c409aeb4205b6615dc502eda24b7259

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