Sovaria Python SDK
Async Python SDK for the Sovaria gateway.
Install
pip install sovaria-sdk
Local workspace development:
pip install -e apps/sdk/python
Supabase-Style Bootstrap (Portal Config)
from sovaria import create_client
client = create_client(
{
"url": "https://gateway.sovaria.in",
"org_id": "11111111-1111-1111-1111-111111111111",
"project_id": "22222222-2222-2222-2222-222222222222",
"env_id": "33333333-3333-3333-3333-333333333333",
# optional: portal-issued publishable/anon key
"publishable_key": "<token>",
}
)
Or initialize directly from environment variables:
from sovaria import SovariaClient
client = SovariaClient.from_env()
Supported environment variables:
SOVARIA_URLSOVARIA_ORG_IDSOVARIA_PROJECT_IDSOVARIA_ENV_IDSOVARIA_ACCESS_TOKENorSOVARIA_PUBLISHABLE_KEYorSOVARIA_ANON_KEY
Quick Start
import asyncio
from sovaria import SovariaClient
async def main() -> None:
async with SovariaClient.from_env() as sov:
await sov.login("you@example.com", "password")
me = await sov.get_me()
# If your token includes scope claims, get_me() auto-hydrates scope.
# Otherwise, set scope explicitly for SQL/realtime routes:
# sov.set_scope(org_id="...", project_id="...", env_id="...")
health = await sov.get_engines_health()
print(me)
print(health)
# Realtime usage
await sov.stream_subscribe("db.table.users", "py-client-1")
presence = await sov.stream_presence("db.table.users")
print(presence)
asyncio.run(main())
Sync Quick Start
from sovaria import SovariaSyncClient
with SovariaSyncClient.from_env() as sov:
sov.login("you@example.com", "password")
me = sov.get_me()
print(me)
Use SovariaSyncClient for WSGI workers, cron jobs, and scripts where an
explicit async event loop would add unnecessary complexity.
Coverage
- Axis: auth, context, graph
- Atlas-Doc: put/get/delete/scan plain docs
- Atlas-Rel: SQL, table lifecycle, migrations
- Pulse: stream, e2ee key lifecycle, websocket URL helper
- Guard: templates, CRUD, evaluate, rollback, history
- Echo: audit + simulation
- Chrono: commit/timelines/snapshots/converge/variance
- Gateway: engine health
Project Scaffold from sovaria.config.json
You can scaffold a new client project directly from the SDK package.
from sovaria import (
DEFAULT_CONFIG_FILENAME,
create_project_from_config_file,
write_project_config_template,
)
# 1) Write template config JSON
write_project_config_template(DEFAULT_CONFIG_FILENAME, name="my-app")
# 2) Generate project folder structure from config
result = create_project_from_config_file(DEFAULT_CONFIG_FILENAME, target_dir=".")
print(result.project_root)
Generated files include:
<project>/sovaria.config.json<project>/.env.example<project>/sovaria/functions/<project>/sovaria/migrations/<project>/sovaria/tests/
Raw API Escape Hatch
You can call any gateway endpoint directly:
await sov.request("GET", "/api/v1/system/engines/health", requires_auth=False)
Functions + Storage Pass-Through
# Forge deployment status
status = await sov.fn_status("deploy-123")
# Generic Vault path operations
await sov.store_put_json("kv/app/settings", {"theme": "light"})
settings = await sov.store_get("kv/app/settings")
await sov.store_delete("kv/app/settings")
Metadata
Release files for sovaria-sdk 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sovaria_sdk-0.2.0.tar.gz | 52.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sovaria_sdk-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 94.3 kB
Release files / sovaria_sdk-0.2.0.tar.gz
| Download URL | sovaria_sdk-0.2.0.tar.gz |
|---|---|
| Size | 52.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec73114bd7ea51806ace4f1ab65fb24ebda381d2ba7a6bb78c296d71d6ea5573
|
|
BLAKE2b-256 checksum How to use checksums |
f3c35733866ec61793c15eb8f008920bfb60c253b252f315dd21f9dd6cce9a78
|
| 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 / sovaria_sdk-0.2.0-py3-none-any.whl
| Download URL | sovaria_sdk-0.2.0-py3-none-any.whl |
|---|---|
| Size | 41.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
57bf34794819624494bd53718da3b73bcabe10f1ffff4fca308a8ab2c582695f
|
|
BLAKE2b-256 checksum How to use checksums |
cd6846a4a54c549d8e571555336c4f4887343089200e2a236c42d595db242633
|
| 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