Skip to main content

TauPy Framework

Project description

TauPy

TauPy

Build desktop apps with Python + Rust, and drop in React/Vite when you want. Fast reloads, native window controls, and a tiny API surface.

Why TauPy

  • Hybrid by design - Python backend + Rust launcher; use Python widgets or a full React front-end.
  • Hot dev loop - edit → window refreshes near-instantly, no page reload dance.
  • Native window API - minimize/maximize/resize/drag, all routed through Python to the launcher.
  • Shipping ready - taupy build bundles your front-end, rebuilds the launcher, and Nuitka-packages the backend.

Code example (Python UI)

from taupy import App, VStack, Text, Button, State
from taupy.events import Click

app = App("Hello TauPy", 800, 500)
msg = State("Hello, TauPy!")

@app.dispatcher.on_click("btn_hello")
async def hello(_: Click):
    msg.set("Button clicked!")

@app.route("/")
def home():
    return VStack(Text(msg), Button("Click me", id="btn_hello"))

if __name__ == "__main__":
    import asyncio
    asyncio.run(app.run(VStack(id="root")))

Install

pip install taupy-framework

Quick start (React front-end)

taupy new [app_name]
cd [app_name]
npm install
taupy dev

Build

taupy build

Pipeline:

  1. Build React/Vite (if present) → target/dist
  2. cargo build --release for the launcher → target/launcher
  3. Nuitka bundle backend → target/app.exe

Performance snapshot (indicative)

Scenario TauPy (Python + Rust) PyQt / PySide Tkinter Electron
Cold start (release build) ~300–600 ms ~900 ms – 1.8 s ~500–900 ms ~1.5 – 3 s
Hot reload (code → UI) ~40–120 ms (WS diff) Full widget refresh Full redraw ~200–500 ms
UI update (state → render) ~10–40 ms QWidget update Full widget update Virtual DOM diff
Bundle size ~6–15 MB + dist 40–80 MB ~2–5 MB 120+ MB
UI stack HTML/CSS (WebView) Native Qt Native Tk Chromium

Measurement conditions

Measurements taken on Windows 11, Ryzen 7 5800X, NVMe SSD.
Release builds, minimal "hello world" applications.
Numbers are indicative and vary by project size and configuration.

TauPy CLI

  • taupy dev - run backend + external front-end (Vite) with hot reload.
  • taupy build - build front-end, launcher, and Nuitka bundle into target/.
  • taupy new <name> - scaffold a new TauPy project.

Dev vs Prod (auto)

  • Dev (--dev): external HTTP (Vite 5173), hot reload.
  • Prod: serves bundled dist/ on 8000. Override with TAUPY_EXTERNAL_HTTP / TAUPY_HTTP_PORT.

Roadmap

  • Cross-platform launcher (Linux/macOS)
  • Native dialogs & notifications
  • Packaging presets (single-file)
  • Built-in icon set & theme presets
  • DevTools/inspector mode
  • Playground in browser

Requirements

  • Windows 64-bit, Python 3.11+
  • Rust toolchain (launcher rebuild)
  • Node.js (for React/Vite, optional)

📜 License
TauPy is released under the MIT License. Free for commercial and personal use.

💬 Contributing
Contributions are welcome!

⭐ Support the Project
If TauPy inspires you - please star the repository. Every ⭐ makes development faster ❤️

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

taupy_framework-0.0.4.tar.gz (2.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

taupy_framework-0.0.4-py3-none-any.whl (2.6 MB view details)

Uploaded Python 3

File details

Details for the file taupy_framework-0.0.4.tar.gz.

File metadata

  • Download URL: taupy_framework-0.0.4.tar.gz
  • Upload date:
  • Size: 2.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.4 Windows/11

File hashes

Hashes for taupy_framework-0.0.4.tar.gz
Algorithm Hash digest
SHA256 79c1f4d4bdbaa03e6ece75c44303ef546fec0541230ec149bb663925a4fc5b80
MD5 0eea19bf9d83777c301017b5384d83c1
BLAKE2b-256 32b78d229d35b1cc8e7d977806526c0a832ff144a6efbd2c8faf006847e61451

See more details on using hashes here.

File details

Details for the file taupy_framework-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: taupy_framework-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 2.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.4 Windows/11

File hashes

Hashes for taupy_framework-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8be1ee6370c1415c7d7e28378ef8ca0dfc8f32b968c9ee0d3f08aa0f1c82169b
MD5 273dcda101cdca24317735d2cd467a04
BLAKE2b-256 70a65fd69e4584eed89692e54f2889e7396dedfae9f5591ca3b10ac690808f4d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page