VS Code Extensions
P

pydaemon

by YohaiIdo

Run Python files via a warm daemon (Django/FastAPI-friendly)

Downloads

23

Rating

— (0)

Version

0.1.0

Last updated

Apr 24, 2026

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 daemon CodeLens at the top of every Python file
  • Cmd+Enter runs 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

  1. cd into your Python project
  2. Start a daemon in a terminal: pydaemon serve
  3. Open a .py file in VS Code and press Cmd+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 Daemon
  • pydaemon: Toggle Output
  • pydaemon: Info — show resolved config
  • pydaemon: Open .pydaemon.json
  • pydaemon: 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

License

MIT — see LICENSE.

Related extensions