Skip to content

Releases: OnlistTeam/onlist-python

v0.1.0

20 Jun 09:38

Choose a tag to compare

Onlist Python SDK v0.1.0

Initial release of the official Python SDK for Onlist.

Features

  • Onlist / AsyncOnlist clients — drop-in replacement for openai.OpenAI
  • Marketplace API: query models, providers, and pricing
  • ProviderRouting type for marketplace routing control
  • Error hierarchy: AuthenticationError, RateLimitError, ProviderError, etc.
  • Full type hints with py.typed (PEP 561)
  • 5 ready-to-run examples

Installation

pip install onlist

Quick Start

from onlist import Onlist

client = Onlist(api_key="sk-...")
response = client.chat.completions.create(
    model="anthropic/claude-sonnet-4-6",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)