Skip to main content

Vira Python SDK

MIT-licensed client library. The Vira service, application, and backend remain proprietary and are governed separately.

Package name: tryvira-sdk.

Install

python -m pip install tryvira-sdk==0.1.28

For a repository checkout use python -m pip install ./sdks/python. The client is a thin HTTP client of Vira's authority boundary; it does not execute tools locally.

The SDK sends requests to Vira's API. It does not execute tools locally or bypass Vira's scope, policy, evaluation, and release checks. Runtime requests fail closed; observation telemetry can be configured with failure_mode="open" when appropriate.

Pack lifecycle

Use a Pack when related Tasks, Points, Programs, Strategies, signals, and evaluation material must move together. The lifecycle is always explicit:

candidate = vira.import_pack({"manifest": manifest, "objects": objects}, idempotency_key="pack:import:1")
pack_id = candidate.body["pack"]["id"]
vira.install_pack(pack_id, {"brand_name": "Example Brand"})
evaluation = vira.evaluate_pack(pack_id, {"candidateExecutionRequired": True})
if evaluation.body.get("passed") is not True:
    raise RuntimeError("candidate evaluation did not pass")
vira.approve_pack(pack_id)
vira.release_pack(pack_id)

Import and install create or materialize a candidate; they do not authorize runtime execution. Do not submit a client-made passed, score, or fake receipt. Release requires the server-side evaluation receipt bound to the exact Pack digest. See the public Pack guide for the manifest layout, JavaScript and MCP equivalents, upgrade preview, and troubleshooting.

import os
from vira import ViraClient

with ViraClient(
    "http://127.0.0.1:4185",
    api_key=os.environ.get("VIRA_API_KEY"),
) as vira:
    connected = vira.connect_once(
        "my-agent", "custom-agent",
        {"organizationId": "org", "projectId": "project", "environmentId": "local"},
        "custom-python", "1",
        idempotency_key="connect-001",
    )
    system = connected.body["system"]
    connection = connected.body["connection"]
    vira.observe({
        "eventId": "evt-1", "eventType": "model.response",
        "aiSystemId": system["id"], "connectionId": connection["id"],
        "payload": {"message": "A model response was produced."},
    }, idempotency_key="evt-1")
    semantic = vira.resolve_semantic({"input": "answer a customer billing question"})
    print(semantic.body)

Runtime execution requires a released revision, a valid scope and an idempotency key; semantic resolution is not authorization. See the public Vira documentation at https://github.com/hrpering/tryvira for the shared JS/Python lifecycle.

Pack evaluation requires the ID of a persisted server-side PASSED evaluation bound to the exact pack digest. The SDK does not accept client-supplied passed or score as release evidence.

The package metadata is intentionally dependency-free.

Metadata

Release files for tryvira-sdk 0.1.30

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

Source distribution (sdist)

Source distribution for tryvira-sdk 0.1.30
File Size Uploaded Provenance Actions
tryvira_sdk-0.1.30.tar.gz 20.8 kB Without provenance Details for tryvira_sdk-0.1.30.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tryvira-sdk 0.1.30
File Interpreter ABI Platform Actions
tryvira_sdk-0.1.30-py3-none-any.whl Python 3 none any Details for tryvira_sdk-0.1.30-py3-none-any.whl

Total release size: 43.0 kB

Release files / tryvira_sdk-0.1.30.tar.gz

Download URL tryvira_sdk-0.1.30.tar.gz
Size 20.8 kB
Tags Source
SHA-256 checksum
How to use checksums
272f0ca1ac389a8f796501e5436a44508e2ea2d0ccac5f58f6da7243700d08bc
BLAKE2b-256 checksum
How to use checksums
e5911acd98109ff17e2a68a9da7b39e2171fd520573812d7e1594801c6c06c49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.0rc3

Release files / tryvira_sdk-0.1.30-py3-none-any.whl

Download URL tryvira_sdk-0.1.30-py3-none-any.whl
Size 22.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7525f382a849432c4e3a04ea955bd06c76dc61d10fdc3e02bf30898e4e675737
BLAKE2b-256 checksum
How to use checksums
9fdf6543357dc483dd2bdba81e59e7c0486f5cb24f23a82a0454e4759e68d7b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.0rc3

Security for tryvira-sdk 0.1.30

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.30 This release

2 release files No provenance

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