Skip to main content
Loss of provenance

A previous release had provenance metadata, but this release does not. View details.

Vifu Python SDK

The Python SDK embeds the Vifu Runtime, Agent Gateway, and local Server. Python functions can become local Agent providers. Vifu("name") creates or reopens one real App in the personal Server and records its project binding in .vifu/app.json.

Create an environment and install Vifu:

python3 -m venv .venv
. .venv/bin/activate
python -m pip install vifu

The wheel contains the generated UniFFI binding, native Rust library, and the same complete Vifu binary distributed in Vifu releases. That binary includes the Server, Dashboard, TUI, Gateway, SQLite storage, and Runtime APIs. The Python API calls the Runtime in the application process. It reuses a running local Server or starts the bundled binary in Server-only mode.

The public API provides:

  • Vifu for App identity, Agent registration, local Server connection, invocation, tracing, and remote calls.
  • VifuRuntime for persistent Runtime state, Agent registration, invocation, snapshots, and pending traces.
  • AgentTrace for activity, output deltas, and typed provider stages.
  • VifuGateway for explicit remote enrollment and advanced Gateway control.
  • VifuServer for advanced control of the bundled Vifu Server process.
  • VifuServerConfig for typed local Server startup configuration from Python.
  • AppProvider and Vifu.provider() for declaring reusable App-private Providers and binding them to Agent roles.
  • LocalWhisper, LocalLlama, and OpenAICompatible for code-configured speech and language-model Providers.
  • Vifu.run() for the same registered Agent App lifecycle locally and on a compatible managed host.

Call app.run() after registering Agents to serve Endpoint invocations until the local process stops. An App may instead pass a local entrypoint such as app.run(local_main). Vifu calls that entrypoint for direct local execution. A compatible managed host uses the registered Endpoints from the same script, does not enter the local interaction loop, and stops after its assigned invocation completes. Managed lifecycle details are not part of application input or output.

Framework integrations can be registered as normal Agent handlers. An integration may declare vifu_name, vifu_capability, vifu_metadata, vifu_instructions, and related defaults on the handler object. It may also implement vifu_bind(...) and vifu_run() when it owns one foreground runtime such as a voice session. Vifu.run() binds and starts that lifecycle, so the application entrypoint remains only Agent registration:

app.agent("voice", voice_agent)
app.agent("assistant", assistant_agent)
app.run()

Keep an Agent's implementation separate from the Provider it uses:

from vifu import LocalLlama, Vifu

app = Vifu("support-call")
reasoning = app.provider(
    "reasoning",
    LocalLlama(model="qwen2.5-3b-instruct-q4_k_m.gguf"),
)
app.agent(
    "reply-agent",
    reply_agent,
    implementation="strands-agents",
    providers={"reasoning": reasoning},
)

The App reports the Provider as an App-private resource. Vifu creates an Agent Profile only for reply-agent; it does not turn reasoning into another Agent.

Install the optional Strands integration, then select an OpenAI-compatible Provider directly in Python, including hosted and loopback model servers:

python -m pip install "vifu[strands]"
from vifu.integrations.strands import openai_compatible_model

model = openai_compatible_model(
    request,
    url="http://127.0.0.1:11434/v1/chat/completions",
    model="qwen2.5:7b",
)

The API key remains process configuration and is never included in Agent metadata. strands_model(...) remains available when an App intentionally uses a versioned Vifu Agent Profile.

Start with the Python tutorial. Runnable framework integrations are available for Google ADK and Foundry Local.

Metadata

Release files for vifu 0.1.8

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

Loss of provenance

These files do not have provenance metadata, despite files in a prior release including this data.

We recommend further investigation before installing these files. View details.

Built distributions (wheels)

Table of built distributions (wheels) for vifu 0.1.8
File Actions
vifu-0.1.8-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for vifu-0.1.8-py3-none-win_amd64.whl
vifu-0.1.8-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for vifu-0.1.8-py3-none-manylinux_2_28_x86_64.whl
vifu-0.1.8-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details for vifu-0.1.8-py3-none-manylinux_2_28_aarch64.whl
vifu-0.1.8-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for vifu-0.1.8-py3-none-macosx_11_0_arm64.whl
vifu-0.1.8-py3-none-macosx_10_15_x86_64.whl Python 3 none macOS 10.15+ x86-64 Details for vifu-0.1.8-py3-none-macosx_10_15_x86_64.whl

Total release size: 110.2 MB

Release files / vifu-0.1.8-py3-none-win_amd64.whl

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL vifu-0.1.8-py3-none-win_amd64.whl
Size 20.2 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
ea0f941759f5f951d99dfff7a52fa9e2307936b160d354ba0d56c18f91b46007
BLAKE2b-256 checksum
How to use checksums
53a580f29466728058c64099dc6ec78edd793592d84f25cacb74e844cc571860
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.10

Release files / vifu-0.1.8-py3-none-manylinux_2_28_x86_64.whl

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL vifu-0.1.8-py3-none-manylinux_2_28_x86_64.whl
Size 23.5 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
313a4ec14708a888c9f85f683055689ed1e347297e9a0fdb56bbb15d8be19471
BLAKE2b-256 checksum
How to use checksums
0a20cb86522a32ddd19eed4b61ef4f7652f788a8da01c90560e219c8f0614b51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.10

Release files / vifu-0.1.8-py3-none-manylinux_2_28_aarch64.whl

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL vifu-0.1.8-py3-none-manylinux_2_28_aarch64.whl
Size 22.8 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
059998135c37a62847295a2cd76c4e154bdc8fadd52029dd449e81d1d8eb4a80
BLAKE2b-256 checksum
How to use checksums
3e31b5dc22e76ccd761c4ca985b1f82660cf01ba1051ca7fe79244e97ef6f4ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.10

Release files / vifu-0.1.8-py3-none-macosx_11_0_arm64.whl

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL vifu-0.1.8-py3-none-macosx_11_0_arm64.whl
Size 21.2 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c58c8a23d5ffd533d9f055f4f4baecf13c68c16724fc22fca9570071cf9fa6b6
BLAKE2b-256 checksum
How to use checksums
8933a00829257225e0367ad5b86cec768e7aeddd146866df9b6c16aafcb5ef96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.10

Release files / vifu-0.1.8-py3-none-macosx_10_15_x86_64.whl

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL vifu-0.1.8-py3-none-macosx_10_15_x86_64.whl
Size 22.4 MB
Tags Python 3 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
e566e3dafcaed61b7328e7ee37f34acc437cdc1ebdf2c3ea85664f58e65110bd
BLAKE2b-256 checksum
How to use checksums
0fe1949ee5efe4fd8e8f00feacb452927bf43785cd5466daf5eb025f73b7bae7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.10

Security for vifu 0.1.8

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.

Loss of provenance

A previous release of these files had provenance metadata, but this release does not.

While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.

Release comparison

  • Removed 0.1.7 5 files With provenance
  • Added 0.1.8 5 files Without provenance

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.

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