Skip to content

stata-cli v0.5.0 — Multi-Session Daemon

Choose a tag to compare

@ashuiGordon ashuiGordon released this 19 May 04:16
· 9 commits to main since this release

stata-cli v0.5.0

Run multiple Stata sessions in parallel — like opening multiple Stata windows, each with independent data, estimates, and macros.

New: --session global option

# Start parallel sessions
stata-cli --session proj_a daemon start
stata-cli --session proj_b daemon start

# Each session has its own state
stata-cli --session proj_a run "use project_a.dta, clear"
stata-cli --session proj_b run "use project_b.dta, clear"

# Route any command to a specific session
stata-cli --session proj_a run "regress price mpg weight"
stata-cli --session proj_b return e

Daemon management

stata-cli daemon status          # list all running sessions
stata-cli daemon stop --all      # stop all sessions at once

Backwards compatible

No --session = session "default" — everything works exactly as before.

Install / Upgrade

pip install --upgrade stata-cli

Full Changelog: v0.4.2...v0.5.0