The official Python SDK for ABOV3 AI - Genesis CodeForger Edition.
Official Website: https://www.abov3.ai ABOV3 Team: https://www.abov3.com
pip install abov3-aifrom abov3 import Abov3Client
# Initialize the client
client = Abov3Client(
api_key="your-api-key",
base_url="https://api.abov3.ai" # Optional, defaults to production
)
# Create a session
session = await client.sessions.create(
model="claude-3-opus",
system_prompt="You are a helpful coding assistant"
)
# Send a message
response = await client.messages.create(
session_id=session.id,
content="Write a Python function to calculate fibonacci numbers"
)
print(response.content)- Migrated from personal repository to official ABOV3AI organization
- Updated all documentation URLs to point to https://www.abov3.ai/docs
- Improved publishing workflow with GitHub Actions
The TUI now includes comprehensive configuration management commands:
- Interactive configuration dialogs with form inputs
- Provider management (add, edit, enable/disable, remove)
- MCP server configuration
- System health checks and validation
- Scrollable configuration viewer
- Real-time configuration updates
- Form-based input for adding providers and MCP servers
- Health diagnostics with
config doctorcommand - Configuration validation with detailed error reporting
- π Full API Coverage - Complete access to all ABOV3 AI capabilities
- π Type Safety - Full type hints and runtime validation with Pydantic
- β‘ Async Support - Built on httpx for high-performance async operations
- π Auto Retry - Automatic retry with exponential backoff
- π Streaming - Support for streaming responses
- π§ Configuration API - Manage ABOV3 configurations programmatically (v0.1.1+)
- π§ͺ Well Tested - Comprehensive test coverage
async with client.messages.stream(
session_id=session.id,
content="Generate a long story"
) as stream:
async for chunk in stream:
print(chunk.content, end="")from abov3.exceptions import Abov3Error, RateLimitError
try:
response = await client.messages.create(...)
except RateLimitError as e:
print(f"Rate limited: {e}")
# Wait and retry
except Abov3Error as e:
print(f"API error: {e}")export ABOV3_API_KEY="your-api-key"
export ABOV3_BASE_URL="https://api.abov3.ai" # Optionalclient = Abov3Client(
api_key="your-api-key",
timeout=30.0, # Request timeout in seconds
max_retries=3, # Maximum retry attempts
proxy="http://proxy.example.com:8080" # Optional proxy
)claude-3-opus- Most capable model for complex tasksclaude-3-sonnet- Balanced performance and speedgpt-4-turbo- OpenAI's most capable modelgpt-3.5-turbo- Fast and cost-effective
# Create a session
session = await client.sessions.create(model="claude-3-opus")
# Get session
session = await client.sessions.get(session_id)
# List sessions
sessions = await client.sessions.list(limit=10)
# Delete session
await client.sessions.delete(session_id)# Send message
message = await client.messages.create(
session_id=session_id,
content="Your message here"
)
# Stream message
async with client.messages.stream(...) as stream:
async for chunk in stream:
process(chunk)# Upload file
file = await client.files.upload(
file_path="./document.pdf",
purpose="analysis"
)
# List files
files = await client.files.list()
# Delete file
await client.files.delete(file_id)# Clone the repository
git clone https://github.com/ABOV3AI/abov3-sdk-python.git
cd abov3-sdk-python
# Install development dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Format code
black src tests
ruff check src tests
# Type checking
mypy src- Documentation: https://www.abov3.ai/docs
- Website: https://www.abov3.ai
- GitHub: https://github.com/ABOV3AI/abov3-sdk-python
- Issues: GitHub Issues
MIT License - see LICENSE file for details.
ABOV3 AI is an advanced code generation framework that revolutionizes how developers interact with AI. Visit abov3.ai to learn more.