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.0.tar.gz (31.2 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.0-py3-none-any.whl (39.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: orca_ai_sdk-0.2.0.tar.gz
  • Upload date:
  • Size: 31.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for orca_ai_sdk-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a50fcb884236d65e124a79661819bb0f13f97a65b5659ecd1c1bf7477a160794
MD5 f709cff322d1d43b67e767d23e440c27
BLAKE2b-256 f4e249885646aad5bb12a93835be122bc8a322106ca31d318964164f42307805

See more details on using hashes here.

File details

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

File metadata

  • Download URL: orca_ai_sdk-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 39.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for orca_ai_sdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4a88b7745703d731ec7d7c8eabf165bd9a5e4c7351da4f9cb06f825788ff20c2
MD5 ae37120e83fc3ab3cdc6fce0ac708efa
BLAKE2b-256 b0d941d7788177d8d0e8a65808ba2b3c4ca2f4a1a89e644bb7dde8bd71301d4b

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