How apw-labs/pyre-ide works
Pyre IDE is a small Tauri/React desktop bridge for Python. Its visible workflow scans for interpreters, lets the user start a Python script, and displays streamed stdout/stderr. The Rust backend also exposes virtual-environment creation, though the sampled UI does not invoke it. The Python engine crate is an external dependency, not present in this tree; its internal behavior is therefore represented only at the API boundary.
Main entry points: lib.rs Command Handlers · App.tsx IDE Screen · main.tsx React Entry · main.rs Rust Entry
Components 10
Desktop UI
- React Entry
src/main.tsx - IDE Screen
src/App.tsx - Test Script
src-tauri/src/test_script.py
Tauri Backend
- Rust Entry
src-tauri/src/main.rs - Command Handlers
src-tauri/src/lib.rs
Python Engine
- Interpreter Scanner
- Process Supervisor
- Venv Manager
Other components
- User
- Python Runtime
Connections 12
- User → IDE Screen: uses
src/App.tsx - React Entry → IDE Screen: renders
src/main.tsx - IDE Screen → Command Handlers: invokes scan
src/App.tsx - Command Handlers → Interpreter Scanner: discovers interpreters
src-tauri/src/lib.rs - IDE Screen → Command Handlers: invokes script
src/App.tsx - IDE Screen → Test Script: selects path
src/App.tsx - Command Handlers → Process Supervisor: spawns process
src-tauri/src/lib.rs - Process Supervisor → Python Runtime: runs script
- Command Handlers → IDE Screen: emits output events
src-tauri/src/lib.rs - IDE Screen → Command Handlers: listens for output
src/App.tsx - Command Handlers → Venv Manager: creates environment
src-tauri/src/lib.rs - Rust Entry → Command Handlers: starts backend
src-tauri/src/main.rs