Spatius Python SDK
Python server SDK for creating Spatius avatar sessions.
Installation
pip install spatius
Install the optional Ogg Opus encoder support when you want the SDK to encode raw PCM before sending:
pip install "spatius[opus]"
Telemetry
The SDK exports anonymous OpenTelemetry metrics and traces by default. Configure the process-wide OTLP base endpoint before using a session, or disable export with an empty string:
from spatius import configure_telemetry, shutdown_telemetry
configure_telemetry("https://telemetry.example.com")
# configure_telemetry("") # disable metrics and traces
# Useful for short-lived processes that exit immediately after a session.
shutdown_telemetry()
The first audio message for each request carries W3C trace context to the backend. Later chunks omit it. OTel resources include service.name=spatius-python, sdk.platform=python, app_id, and the resolved region. The server SDK exports metrics and traces only; it does not upload telemetry logs.
Documentation
See the full Python SDK guide at docs.spatius.ai/sdk-reference/python-sdk/python-sdk.
License
MIT
Release files for spatius 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| spatius-1.0.5.tar.gz | 152.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spatius-1.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 184.4 kB
Release files / spatius-1.0.5.tar.gz
| Download URL | spatius-1.0.5.tar.gz |
|---|---|
| Size | 152.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bc9a2d66156e5eec65f45847d4d19be1b0cbc0bbe91011150a58f931ad681500
|
|
BLAKE2b-256 checksum How to use checksums |
3d10d1b4b523c0b20e6bea62c3f8497ea12339bc0532804ffe9d9fba7c1b00e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 16, 2026.
Transparency logRelease files / spatius-1.0.5-py3-none-any.whl
| Download URL | spatius-1.0.5-py3-none-any.whl |
|---|---|
| Size | 31.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
114a19897ed96a6f6a7fac7edece0f204f9fe166776d8ca253119c9bf05c8371
|
|
BLAKE2b-256 checksum How to use checksums |
6ec94b2ba01d29595f9da903519588bfee8f06982bc5836a61bb81646c1998a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 16, 2026.
Transparency log