Skip to main content

Official Python SDK for the Skailar API

Project description

Skailar SDK for Python

PyPI version

The Skailar SDK for Python provides access to the Skailar API — an OpenAI-compatible, multi-provider LLM gateway — from Python applications.

Installation

uv add skailar-ai
# or: pip install skailar-ai

The distribution is named skailar-ai on PyPI; the import is skailar.

Getting started

import os
from skailar import Skailar

client = Skailar(
    api_key=os.environ.get("SKAILAR_API_KEY"),  # This is the default and can be omitted
)

completion = client.chat.completions.create(
    model="claude-sonnet-4-6",
    messages=[
        {
            "role": "user",
            "content": "Hello, Skailar",
        }
    ],
)
print(completion.choices[0].message.content)

Streaming

with client.chat.completions.create(
    model="claude-sonnet-4-6",
    messages=[{"role": "user", "content": "Count to ten."}],
    stream=True,
) as stream:
    for chunk in stream:
        print(chunk.choices[0].delta.content or "", end="", flush=True)

An async client (AsyncSkailar) with an identical surface is also available.

Requirements

Python 3.10+

License

This project is licensed under the MIT License. See the LICENSE file for details.

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

skailar_ai-0.0.1.tar.gz (60.1 kB view details)

Uploaded Source

Built Distribution

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

skailar_ai-0.0.1-py3-none-any.whl (33.1 kB view details)

Uploaded Python 3

File details

Details for the file skailar_ai-0.0.1.tar.gz.

File metadata

  • Download URL: skailar_ai-0.0.1.tar.gz
  • Upload date:
  • Size: 60.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for skailar_ai-0.0.1.tar.gz
Algorithm Hash digest
SHA256 fa26ded32b4f2fbe683add843fee36e33c68741b7738eabf5797d248317ddd4d
MD5 99986fe8c4bd827d684cc8d614c9a0c3
BLAKE2b-256 8bb375c0f2a8bdfc2bac1334fbc54e86f90d4b9785ddb729df32a077cb5ee486

See more details on using hashes here.

Provenance

The following attestation bundles were made for skailar_ai-0.0.1.tar.gz:

Publisher: publish.yml on getskailar/sdk-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file skailar_ai-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: skailar_ai-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 33.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for skailar_ai-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b88cd9c97f43faec107fe6fbcc1085ca31340432d5f8249f3ccdb24bcd3ee782
MD5 e5579fe245f20f5a606d10b464118694
BLAKE2b-256 358587086627c87dbe4bca8ce9118caed5c55f7b07a0c810f99fea9373e7e007

See more details on using hashes here.

Provenance

The following attestation bundles were made for skailar_ai-0.0.1-py3-none-any.whl:

Publisher: publish.yml on getskailar/sdk-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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