Skip to main content

PyTuri

Build cross-platform desktop applications using Python for both backend logic and UI generation.

Installation

pip install pyturi

Or with uv:

uv add pyturi

Features

  • Python UI DSL: Write UI in Python, generates HTML/CSS/JS
  • Cross-platform: Windows, Linux, macOS
  • Compatible with C libraries: Works alongside numpy, pandas, etc.
  • Reactive state: Built-in state management
  • Type-safe commands: Python ↔ Frontend communication
  • Fast: Powered by Rust and Tauri

Quick Start

from pyturi import App
from pyturi.ui import Div, H1, Button, Style

app = App(name="My App")

@app.ui
def create_ui():
    return Div(
        children=[
            H1("Hello, PyTuri!"),
            Button("Click Me", onclick=handle_click),
        ],
        style=Style(padding="20px"),
    )

@app.command()
def handle_click():
    return {"message": "Button clicked!"}

if __name__ == "__main__":
    app.run()

Use with Data Science Libraries

PyTuri works seamlessly with numpy, pandas, and other C extension libraries:

from pyturi import App
import numpy as np
import pandas as pd

app = App(name="Data App")

@app.command()
def process_data(values: list):
    arr = np.array(values)
    df = pd.DataFrame({"values": arr})
    return df.describe().to_dict()

app.run()

Documentation

See the examples directory for more examples.

License

MIT OR Apache-2.0

Metadata

Release files for pyturi 0.1.0

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

Built distributions (wheels)

Table of built distributions (wheels) for pyturi 0.1.0
File Interpreter ABI Platform Actions
pyturi-0.1.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for pyturi-0.1.0-cp311-cp311-win_amd64.whl
pyturi-0.1.0-cp311-cp311-macosx_10_12_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.12+ x86-64 Details for pyturi-0.1.0-cp311-cp311-macosx_10_12_x86_64.whl

Total release size: 9.4 MB

Release files / pyturi-0.1.0-cp311-cp311-win_amd64.whl

Download URL pyturi-0.1.0-cp311-cp311-win_amd64.whl
Size 4.4 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
24cf484f182e129065a6de0b1fdcaccddc0f3762e7ca2c324fdb61ee9726eec2
BLAKE2b-256 checksum
How to use checksums
4e50a365af6afd98e200571526a36f03669cdf544c99ab62ec67ec146fa70044
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / pyturi-0.1.0-cp311-cp311-macosx_10_12_x86_64.whl

Download URL pyturi-0.1.0-cp311-cp311-macosx_10_12_x86_64.whl
Size 5.0 MB
Tags CPython 3.11 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
8027f96c235fc155edbf8ddc6957eb9bab03a18f2e74c19dcb923d90ebb64b40
BLAKE2b-256 checksum
How to use checksums
c766ca25ddcdd180f162801612ef08e5a01d7e35dae57d70c710bb923d285a96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for pyturi 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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