taupy new
Create a brand-new TauPy application in seconds.
The command copies a ready-to-run template, asks a few questions (or reads CLI flags), and leaves you with a fully-wired project that already contains:
main.py– Python backend entry-point (widget or socket version depending on chosen template)launcher/– prebuilttaupy.exelauncher andWebView2Loader.dlldist/– minimalclient.jsrequired for Python-only UIvite-react(optional) – Vite + React template when the react frontend is selectedtaupy.toml– project configuration generated from your answers
Usage
Usage: taupy new [OPTIONS] NAME
Scaffold a new TauPy project with recommended structure.
Arguments:
NAME Target directory that will be created.
Options:
-f, --frontend [react|python] Choose UI template (react = Vite + React, python = TauPy widgets). If omitted you will be asked in interactive mode.
--help Show this message and exit.
What happens under the hood
- Copies starter files from TauPy’s internal utils folder.
- Generates taupy.toml using your answers (ports, hot-reload mode, etc.).
- If you chose react, Vite template is copied and ready for
npm install. - Prints quick next steps so you can
cdinto the directory and runtaupy dev.
Exit codes
0– project created successfully1– target directory exists or user aborted