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

Uploaded Python 3

File details

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

File metadata

  • Download URL: rexi_py-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 f6de85462f34aea21a32cf2d03aa6575afafcfa655656a00fec0a177ebfe4da7
MD5 0827fb81434d04597bb830f96d4af6a5
BLAKE2b-256 e28174976052bc408f58bfbabee27e16191b59634f27aa815c4833082bb137d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rexi_py-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a9a395119edfd7dde09dad3370a80be95884e5e164de82d5d37389fe4bb3f2a4
MD5 f71ef2718f9dae900dc4a5912007bb50
BLAKE2b-256 d74c88bcddc1b09a39109f516cd9a992bc449e72dcec90e71fa4ae43e04f8920

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