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

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

Built distribution (wheel)

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

Total release size: 89.2 kB

Release files / tauri_runtime-0.1.2.tar.gz

Download URL tauri_runtime-0.1.2.tar.gz
Size 47.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5bd3c04053bacab867531755146c6fddcde1b6e7b890d416f59c6bc704eb8b09
BLAKE2b-256 checksum
How to use checksums
6ff7d1139f8d12f038dfdd706d38dcc98f85bc8effbc49b400ead297a938149f
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.2-py3-none-any.whl

Download URL tauri_runtime-0.1.2-py3-none-any.whl
Size 41.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0a288a07a38efa8d267401b58e68bbe097799c20aac8e08ee37e84434875f7e8
BLAKE2b-256 checksum
How to use checksums
adac577912eed1787006ac03c0f7751fdd9ea669a34ef40fca34e5a6d9472bdb
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.2

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