Official Python SDK for ABOV3 AI - Advanced Code Generation Framework
Project description
ABOV3 AI Python SDK
The official Python SDK for ABOV3 AI - the advanced code generation and AI development framework.
Installation
pip install abov3-ai
Quick Start
from 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)
Features
- 🚀 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
- 🧪 Well Tested - Comprehensive test coverage
Streaming Responses
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="")
Error Handling
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}")
Configuration
Environment Variables
export ABOV3_API_KEY="your-api-key"
export ABOV3_BASE_URL="https://api.abov3.ai" # Optional
Code Configuration
client = 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
)
Available Models
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
API Reference
Sessions
# 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)
Messages
# 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)
Files
# 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)
Development
Setup Development Environment
# Clone the repository
git clone https://github.com/fajardofahad/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
Support
- Documentation: https://docs.abov3.ai
- Website: https://www.abov3.ai
- GitHub: https://github.com/fajardofahad/abov3-sdk-python
- Issues: GitHub Issues
License
MIT License - see LICENSE file for details.
About ABOV3
ABOV3 AI is an advanced code generation framework that revolutionizes how developers interact with AI. Visit abov3.ai to learn more.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file abov3_ai-0.1.0.tar.gz.
File metadata
- Download URL: abov3_ai-0.1.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
056d225b11753f2c26b1d9636bea728985c4a62f7cf8109b853dd05258afba6e
|
|
| MD5 |
929bc5287ca0d20468289b41cab87800
|
|
| BLAKE2b-256 |
234af3c30a7bd50557049a8ebfc26d176d0dcee20f9bea459363ab73ae511692
|
File details
Details for the file abov3_ai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: abov3_ai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20a1bce32f794bd8c0bd26fe2a55b45db5e8a2255150d7dc3b0401f7509a046e
|
|
| MD5 |
9b69897317bf89316bfe5a6ef82e356d
|
|
| BLAKE2b-256 |
ab11302d29aec6ae15ee9ef5c6d39b5b22b54031ae143f723af8b4ebf9b4a567
|