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.2.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.2.0
File Size Uploaded Provenance Actions
tauri_runtime-0.2.0.tar.gz 59.4 kB Without provenance Details for tauri_runtime-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 111.2 kB

Release files / tauri_runtime-0.2.0.tar.gz

Download URL tauri_runtime-0.2.0.tar.gz
Size 59.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0e23cd36f0540aaf389c7bea5e9d3d1b6de10ba74f56721cfd35c86d809f649c
BLAKE2b-256 checksum
How to use checksums
d5984a3ad5823d733341f25e8085af6ff6038000fe32e8649cfe53600aad087c
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.2.0-py3-none-any.whl

Download URL tauri_runtime-0.2.0-py3-none-any.whl
Size 51.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6503d75b98f52e95a95ca1183cf70df0be0acd1249400bde50db96bd231126c9
BLAKE2b-256 checksum
How to use checksums
025b9e376b10df4b33fbee350324a7576808cd725f7a4feb0addcd259ca943c7
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.2.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