Back-end (Python sidecar)
Overview
- FastAPI server that performs port scanning, process control and Docker integration.
- Launches a native window (PyWebView) in packaged builds and serves static frontend files when available.
Key files
back-end/server.py— main entry pointback-end/requirements.txt— Python dependencies
Install & run (development)
bash
cd back-end
pip install -r requirements.txt
python server.pyEnvironment
- Create a
.envnext toserver.pyto setPORTor other settings.
Dependencies & tools
psutil— process inspection and controldockerSDK — inspect running containers and port mappingspyinstaller— for packaging into single-file executables
Packaging notes
- When packaging, frontend
dist/is bundled into the executable using PyInstaller--add-data. - The repo includes
build_exe.ps1to automate Windows packaging.
Troubleshooting
- If Docker scanning fails, ensure Docker Desktop is running and accessible.
- For permission errors on process control, run with appropriate OS privileges.