Skip to main content

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

orca_ai_sdk-0.2.2.tar.gz (34.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

orca_ai_sdk-0.2.2-py3-none-any.whl (43.7 kB view details)

Uploaded Python 3

File details

Details for the file orca_ai_sdk-0.2.2.tar.gz.

File metadata

  • Download URL: orca_ai_sdk-0.2.2.tar.gz
  • Upload date:
  • Size: 34.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.4

File hashes

Hashes for orca_ai_sdk-0.2.2.tar.gz
Algorithm Hash digest
SHA256 61056fb4064a344dcc74fd36263b2afdc0be82224337df4dff04bc35ae8d0f46
MD5 0a499f98cd1cd73f932b1d34e7341e18
BLAKE2b-256 037381aa1fa61edfb46e853c1ed60a0976267a30dd03815925d144c7242dc8e7

See more details on using hashes here.

File details

Details for the file orca_ai_sdk-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for orca_ai_sdk-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 19fea4892e486af2020a2edd0e7f976823f9c91cf00c83672f0066ca3fcdf6ed
MD5 7fb4495ebde8df646269109caa6e5e91
BLAKE2b-256 99f44926a5e3b31bd40b3d57e4c774d67c521c61d201e525f2dacffdda8b6036

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