Skip to main content

tauri-runtime

The Python SDK for tauri-plugin-py-runtime: write the backend of a Tauri 2 desktop app in Python.

Python functions become commands your frontend can call, with pydantic validation, streaming channels, events, cancellation and structured errors. The tauri-runtime CLI scaffolds projects and packages your backend with Nuitka into a standalone executable, so end users never need to install Python.

from tauri_runtime import App

app = App()

@app.command
async def greet(name: str) -> str:
    return f"Hello {name}, from Python!"

app.run()
import { pyInvoke } from "tauri-plugin-py-runtime-api";

const message = await pyInvoke<string>("greet", { name: "Tauri" });

Quick start

Create a new Tauri app with a Python backend:

uvx --from tauri-runtime tauri-runtime create my-app --template vue-ts --manager pnpm

Add a Python backend to an existing Tauri project (run next to src-tauri):

uvx --from tauri-runtime tauri-runtime init

Package the backend for release (run in src-python, requires Nuitka and a C compiler):

uv run tauri-runtime build

Features

  • async def and plain def commands, with arguments validated by pydantic
  • Channel[T] streams, raw binary payloads, and events in both directions
  • Timeouts, cancellation and TauriError structured errors
  • startup, ready and shutdown lifecycle hooks
  • Router with prefixes for organizing large backends
  • Standalone packaging with Nuitka via tauri-runtime build

Requires Python 3.11 or newer. Full documentation lives in the project README.

License

Licensed under either of MIT or Apache-2.0 at your option.

Metadata

Release files for tauri-runtime 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 tauri-runtime 0.1.0
File Size Uploaded Provenance Actions
tauri_runtime-0.1.0.tar.gz 44.7 kB Without provenance Details for tauri_runtime-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tauri-runtime 0.1.0
File Interpreter ABI Platform Actions
tauri_runtime-0.1.0-py3-none-any.whl Python 3 none any Details for tauri_runtime-0.1.0-py3-none-any.whl

Total release size: 85.2 kB

Release files / tauri_runtime-0.1.0.tar.gz

Download URL tauri_runtime-0.1.0.tar.gz
Size 44.7 kB
Tags Source
SHA-256 checksum
How to use checksums
11882c93f22f63d433ec00072b7d1892013809b1d144b7ca1e7e46d647671ef4
BLAKE2b-256 checksum
How to use checksums
a012fe3fa0ad7ad05f45740a29658e833c95b134790abe9ee2a19214c5d26b52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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

Download URL tauri_runtime-0.1.0-py3-none-any.whl
Size 40.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4c884759ec07bc8ac3c34e24249bb033a0fd5ce1f4d88b58e643fb5be1b2bbec
BLAKE2b-256 checksum
How to use checksums
dbc708534b53d90744702d8e5fbb1537ab1c295a41b06e904a8af7d01b69aa1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for tauri-runtime 0.1.0

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.

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