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.1

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.1
File Size Uploaded Provenance Actions
tauri_runtime-0.1.1.tar.gz 48.1 kB Without provenance Details for tauri_runtime-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 90.4 kB

Release files / tauri_runtime-0.1.1.tar.gz

Download URL tauri_runtime-0.1.1.tar.gz
Size 48.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d022afbf19dad0f999eb370b5e3952d9c454c12b2754d6b5720e79d17fec141c
BLAKE2b-256 checksum
How to use checksums
91ecdedf9df46efb5402181cb4ff9fe4a1353037432fe1f86a1385aa05f9c3e7
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.1-py3-none-any.whl

Download URL tauri_runtime-0.1.1-py3-none-any.whl
Size 42.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8ac5842a8c526c5a95af113c97e98241409afbae9e5fdbe541ae9826c7341ed0
BLAKE2b-256 checksum
How to use checksums
2aaf616858764e46a8f74de4357aa5232402e50c993afca0b9f5588d378a0479
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.1

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