Skip to main content

Vienna OS Python SDK

Official Python SDK for Vienna OS — the governance control plane for AI agents.

PyPI version License: BSL-1.1 Python

Installation

pip install vienna-sdk

Quick Start

from vienna_sdk import ViennaClient

client = ViennaClient(api_key="vos_your_key")

# Submit an intent
result = client.submit_intent(
    action="deploy_code",
    params={"service": "api-gateway", "version": "2.3.1"},
    objective="Deploy API v2.3.1 to production"
)

if result.status.value == "approved":
    # Execute with warrant
    deploy_service("api-gateway", "2.3.1")
    client.report_execution(result.warrant_id, success=True)

elif result.status.value == "pending":
    # T2/T3 — wait for human approval
    print(f"Approval required: https://console.regulator.ai/approvals/{result.intent_id}")
    approved = client.wait_for_approval(result.intent_id)
    if approved.status.value == "approved":
        deploy_service("api-gateway", "2.3.1")
        client.report_execution(approved.warrant_id, success=True)

Framework Adapters

from vienna_sdk import create_langchain_adapter, create_crewai_adapter

# LangChain
vienna = create_langchain_adapter(api_key="vos_your_key", agent_id="my-agent")

# CrewAI
vienna = create_crewai_adapter(api_key="vos_your_key", agent_id="my-crew")

# AutoGen
from vienna_sdk import create_autogen_adapter
vienna = create_autogen_adapter(api_key="vos_your_key")

# OpenClaw
from vienna_sdk import create_openclaw_adapter
vienna = create_openclaw_adapter(api_key="vos_your_key")

Risk Tiers

Tier Risk Approval Max TTL
T0 Informational Auto 60 min
T1 Low Policy auto 30 min
T2 Medium 1 human 15 min
T3 High 2+ humans 5 min

Zero Dependencies

This SDK uses only Python standard library (urllib, json, hashlib). No external dependencies required.

Documentation

License

BSL-1.1

Metadata

Release files for vienna-sdk 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vienna-sdk 0.1.0
File Size Uploaded
vienna_sdk-0.1.0.tar.gz 8.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vienna-sdk 0.1.0
File Interpreter ABI Platform
vienna_sdk-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.9 kB

Release files / vienna_sdk-0.1.0.tar.gz

Download URL vienna_sdk-0.1.0.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
55ac233f7d3a469065a191c14ab82f30a405e58f58af730a840396c0901c41d3
BLAKE2b-256 checksum
How to use checksums
27ca661ea3caadb1dce4542a1244446cb6154b1fd689761827e5dacde55e427c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / vienna_sdk-0.1.0-py3-none-any.whl

Download URL vienna_sdk-0.1.0-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f14b84aa8579d45e6bd6b99b28e7f1cc69bbf098cc793f4c656154c74eb8b30
BLAKE2b-256 checksum
How to use checksums
764e7a0478178b65dcbadf749a9b375b52299a3e0f382e32f54dd16c039e32b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page