Official Python SDK for the Skailar API
Project description
Skailar SDK for Python
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa26ded32b4f2fbe683add843fee36e33c68741b7738eabf5797d248317ddd4d
|
|
| MD5 |
99986fe8c4bd827d684cc8d614c9a0c3
|
|
| BLAKE2b-256 |
8bb375c0f2a8bdfc2bac1334fbc54e86f90d4b9785ddb729df32a077cb5ee486
|
Provenance
The following attestation bundles were made for skailar_ai-0.0.1.tar.gz:
Publisher:
publish.yml on getskailar/sdk-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
skailar_ai-0.0.1.tar.gz -
Subject digest:
fa26ded32b4f2fbe683add843fee36e33c68741b7738eabf5797d248317ddd4d - Sigstore transparency entry: 1745550331
- Sigstore integration time:
-
Permalink:
getskailar/sdk-python@2500d313cb88b808a2a86d046184299b7b2f1964 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/getskailar
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2500d313cb88b808a2a86d046184299b7b2f1964 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b88cd9c97f43faec107fe6fbcc1085ca31340432d5f8249f3ccdb24bcd3ee782
|
|
| MD5 |
e5579fe245f20f5a606d10b464118694
|
|
| BLAKE2b-256 |
358587086627c87dbe4bca8ce9118caed5c55f7b07a0c810f99fea9373e7e007
|
Provenance
The following attestation bundles were made for skailar_ai-0.0.1-py3-none-any.whl:
Publisher:
publish.yml on getskailar/sdk-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
skailar_ai-0.0.1-py3-none-any.whl -
Subject digest:
b88cd9c97f43faec107fe6fbcc1085ca31340432d5f8249f3ccdb24bcd3ee782 - Sigstore transparency entry: 1745550504
- Sigstore integration time:
-
Permalink:
getskailar/sdk-python@2500d313cb88b808a2a86d046184299b7b2f1964 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/getskailar
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2500d313cb88b808a2a86d046184299b7b2f1964 -
Trigger Event:
push
-
Statement type: