Command Line Interface
Pytron-kit includes a comprehensive CLI to manage the entire application lifecycle, from project initialization to production packaging.
Configuration (settings.json)
Configure every aspect of your application from a single source of truth.
{
"title": "My App",
"version": "1.0.0",
"author": "Your Name",
"description": "A brief description of your app",
"copyright": "Copyright © 2026 Your Name",
"pytron_version": "1.0.6",
"dimensions": [800, 600],
"min_size": null,
"max_size": null,
"resizable": true,
"frameless": false,
"fullscreen": false,
"always_on_top": false,
"transparent": false,
"background_color": "#ffffff",
"start_maximized": false,
"start_hidden": false,
"default_context_menu": false,
"url": "./dist",
"icon": "pytron.ico",
"engine": "native",
"single_instance": true,
"close_to_tray": false,
"debug": false,
"frontend_framework": "react",
"frontend_provider": "npm",
"dev_port": null,
"plugins_dir": null,
"plugins": [],
"crystal_mode": false,
"virtual_entry_point": false,
"splash_image": null,
"force-package": [],
"include_patterns": [],
"exclude_patterns": [],
"macos_plist": {},
"signing": {}
}- engine: Choose the rendering engine:
native(WebView2/WebKit) orchrome(Electron). - crystal_mode: Enable "Crystal Audit" High-Security Runtime surveillance.
- virtual_entry_point: Enable the synthesized entry point strategy for enhanced obfuscation.
- frontend_provider: Choose your default JS package manager:
npm,yarn,pnpm, orbun. - single_instance: Ensure only one instance of your app can run at a time.
- force-package: Ensure complex modules (like LLM libraries) are correctly bundled.
Commands
Initialize
Scaffold a new project with your preferred frontend framework.
pytron init <project_name> --template <framework>Supported templates: react, vue, svelte, next, solid, and more.
Install & Uninstall
Manage Python dependencies in your project's virtual environment.
# Install from requirements.json
pytron install
# Install specific package
pytron install numpy
# Proxy any npm command to the frontend directory
pytron frontend install
pytron frontend run dev
# Use a different provider (yarn, pnpm, bun)
pytron frontend --provider yarn add lucide-react
pytron frontend --provider bun run dev
pytron frontend --provider pnpm build
# Uninstall package
pytron uninstall numpyEnvironment & Diagnostics
Check your system for dependencies or show information about the current environment.
# Run system diagnostic
pytron doctor
# Show environment info
pytron info
# List installed packages
pytron showRun
Start the application. Use --dev for hot-reloading.
# Run with hot reload
pytron run --dev
# Run specific script
pytron run my_app.pyPackaging
Create a standalone executable or installer. Use --secure for Agentic Shield or --nuitka for machine-code compilation.
# Create standard executable
pytron package
# Pack with Agentic Shield (Encrypted)
pytron package --secure
# Compile with Nuitka (Machine Code)
pytron package --nuitka
# Create Professional Installer
pytron package --installerAndroid (Experimental)
Initialize and build for Android devices. This command syncs your Python logic and frontend into a pre-configured Android project template.
# Initialize Android project
pytron android init
# Sync frontend & python files into android folder
pytron android sync
# Build & Run on connected device
pytron android build
pytron android run
# Reset to initial state
pytron android reset