Commands, out of the terminal
Briefly

Commands, out of the terminal
"Command Book App is a native macOS app for developers, data scientists, AI enthusiasts and more. This is a tool I've been using lately to help build Talk Python, Python Bytes, Talk Python Training, and many more applications. It's a bit like advanced terminal commands or complex shell aliases, but hosted outside of your terminal. This leaves the terminal there for interactive commands, exploration, short actions."
"The standard library's subprocess module has relied on a busy-loop polling approach since the timeout parameter was added to Popen.wait() in Python 3.3, around 15 years ago The problem with busy-polling CPU wake-ups: even with exponential backoff (starting at 0.1ms, capping at 40ms), the system constantly wakes up to check process status, wasting CPU cycles and draining batteries. Latency: there's always a gap between when a process actually terminates and when you detect it. Scalability: monitoring many processes simultaneously magnifies all of the above."
A native macOS app, Command Book App, provides developers, data scientists, and AI enthusiasts a way to host advanced terminal commands and complex shell aliases outside the terminal while preserving interactive use. The tool manages workflows like tailing logs, running development servers with auto-reload, and launching MongoDB in Docker with exact settings and offers free and paid tiers. A change addresses the subprocess module's long-standing busy-loop polling, which caused CPU wake-ups, latency, and poor scalability; a merged PR replaces busy-polling behavior. Additional items include uvx.sh for installing Python tools and monty, a minimal secure Python interpreter.
Read at Pythonbytes
Unable to calculate read time
[
|
]