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.1.tar.gz (31.6 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.1-py3-none-any.whl (40.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: orca_ai_sdk-0.2.1.tar.gz
  • Upload date:
  • Size: 31.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for orca_ai_sdk-0.2.1.tar.gz
Algorithm Hash digest
SHA256 fadd92dcaadaed4c8aa0ebfe4cd11b8a125439f2010bca804882d8085ebf57c0
MD5 cd6042f030edb5136cc95cd04e4854a0
BLAKE2b-256 254b00ab53cccd258e9a54ba883f8946ef09ce8afeba9aad5c72f3209d98ed15

See more details on using hashes here.

File details

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

File metadata

  • Download URL: orca_ai_sdk-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 40.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for orca_ai_sdk-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0c126d12dfa7848abdc446f150273fae0d2185ba45564f89a58f7a0f143838e8
MD5 9508921ea43f40b3b00daa6aaa46e3bf
BLAKE2b-256 fa95d95bece6f547cf023401e16286961242885a3551975c0b5b5aa337ad5de6

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