Run Python files fast by keeping Python warm in the background. Thin UI wrapper around the pydaemon CLI.
Why
Python cold-start (Django, FastAPI, PyTorch, etc.) can take 1–5 seconds on every run. pydaemon keeps a warm Python interpreter alive on a Unix socket so subsequent runs execute in milliseconds.
Features
▶ Run via daemonCodeLens at the top of every Python fileCmd+Enterruns the current file through the warm daemon- Activity bar sidebar with daemon status, actions, and config
- Status bar indicator shows daemon state at a glance
- Inline timing decoration after each run
- Runs unsaved editor buffers (no need to save first)
Prerequisite: install the CLI
The extension shells out to the pydaemon CLI, so install it first:
pipx install git+https://github.com/yoyo-67/pydaemon.git#subdirectory=packages/python
Verify: pydaemon --help.
Usage
cdinto your Python project- Start a daemon in a terminal:
pydaemon serve - Open a
.pyfile in VS Code and pressCmd+Enter(or click the ▶ CodeLens)
For framework bootstrap (Django django.setup(), FastAPI startup, model loading), add a .pydaemon.json at your project root. See the main README for config options.
Commands
pydaemon: Run File— run the current Python file via the daemon (Cmd+Enter)pydaemon: Start Daemon/Stop Daemon/Restart Daemonpydaemon: Toggle Outputpydaemon: Info— show resolved configpydaemon: Open .pydaemon.jsonpydaemon: Reset Run State
Settings
| Setting | Default | Description |
|---|---|---|
pydaemon.cliPath |
pydaemon |
Path to the pydaemon CLI |
pydaemon.runTimeoutMs |
60000 |
Per-run timeout in ms |
pydaemon.codeLens |
true |
Show the "▶ Run via daemon" CodeLens |
pydaemon.statusBar |
true |
Show daemon state in the status bar |
pydaemon.statusPollMs |
2000 |
Status poll interval in ms |
Links
License
MIT — see LICENSE.