The AI SDK, by TreeSoft
Project description
Orca SDK
The Orca SDK
A provider-agnostic Python library for unified AI model interactions.
Read the LICENSE file for full terms and conditions.
Orca is a unified SDK for interacting with multiple AI providers through a single, consistent interface. It truly transforms the way developers work with AI by making it intuitive, efficient, and provider-agnostic.
Core Features
- Unified Interface — Single API for OpenAI, Anthropic, Google Gemini, and OpenRouter
- Sync + Async — Full support for both synchronous and asynchronous operations
- Streaming — Real-time streaming responses with iterator interface
- Dynamic Registry — Automatic model discovery with parallel provider fetching
- Typed Exceptions — Precise error handling with provider context
- Structured Responses — Normalized responses across all providers
Quick Start
1. Installation
# Install with pip
pip install orca-ai-sdk
# Or with uv
uv pip install orca-ai-sdk
2. Basic Usage
from orca import Orca
# Initialize with providers
client = Orca(
providers=["openai", "anthropic"],
api_keys={
"openai": "sk-...",
"anthropic": "sk-ant-..."
}
)
# Chat completion
response = client.chat(
model="gpt-5",
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.text)
# Streaming
for chunk in client.chat(model="claude-opus-4.5", messages=messages, stream=True):
print(chunk.delta_text, end="", flush=True)
# Embeddings
embedding = client.embed(model="text-embedding-3-small", input="Hello world")
print(f"Dimensions: {embedding.dimensions}")
Supported Providers
| Provider | Chat | Embeddings | Images | Streaming |
|---|---|---|---|---|
| OpenAI | ✅ | ✅ | ✅ | ✅ |
| Anthropic | ✅ | ❌ | ❌ | ✅ |
| Gemini | ✅ | ✅ | ❌ | ✅ |
| OpenRouter | ✅ | ❌ | ❌ | ✅ |
Repository Structure
orca/
├── orca/
│ ├── core/ # Core client & registry
│ ├── providers/ # Provider implementations
│ └── utils/ # Types & formatters
├── tests/ # Test suite
├── pyproject.toml # Package configuration
└── README.md # This file
Team
- Alexutzu — Developer
License
Copyright © TreeSoft 2025. Released under the MIT License.
See LICENSE for full terms and conditions.
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
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 orca_ai_sdk-0.2.3.tar.gz.
File metadata
- Download URL: orca_ai_sdk-0.2.3.tar.gz
- Upload date:
- Size: 35.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
026da84050a3dcc80855b2e666e1ec3138b81c20d16cf462bf3efb156c0e042b
|
|
| MD5 |
78432b134cd638461539273167af77b7
|
|
| BLAKE2b-256 |
e0443384f5665c0dd9e1b57bd582b26aabbf1f46c4c43afb20dec3a4e7b76d58
|
File details
Details for the file orca_ai_sdk-0.2.3-py3-none-any.whl.
File metadata
- Download URL: orca_ai_sdk-0.2.3-py3-none-any.whl
- Upload date:
- Size: 43.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba7eeabdc83c027bd0ce195a4fe622d8a0943a646d602220cfb474ed96b226e5
|
|
| MD5 |
6cf08f9daf15a2c74b2b1cee334ce31a
|
|
| BLAKE2b-256 |
77b35669908db32a6e3b2b6199c722adefa820ee3b7213a3d644d4617dfb49f0
|