Description
DHV is a Python code exploration tool for the terminal. You type in, load or edit Python code, and see the resulting abstract syntax tree and bytecode. It is meant for anyone curious about what their Python source code turns into. The app is a text-based program with a command palette and built-in help. Its default keys include F1 for help, F9 to change the app theme, and Ctrl+F9 to change the code editor theme, and the LoadFile command loads a file into the editor. Command-line options include bindings, help, license, theme and version, and the bindings option prints the commands whose keyboard shortcuts can be changed. DHV requires Python 3.13 or later. It can be installed with pipx install dhv, or with uv tool install --python 3.13 dhv. The project is public on GitHub, with discussions and an issue tracker.…
Highlights
- Edit Python code and see its AST and bytecode
- Terminal app with a command palette
- Themes for the app and the code editor
- Customisable keyboard bindings
- Requires Python 3.13 or later
Ratings & Reviews
No ratings yet
Be the first to rate DHV.
People also visit
trailofbits/modern-python
Modern Python tooling with uv, ruff, ty, and pytest best practices
DHV FAQ
What is DHV?
A terminal tool for exploring Python code. You enter or load code and see its abstract syntax tree and bytecode.
How do I install it?
Run pipx install dhv, or uv tool install --python 3.13 dhv. It needs Python 3.13 or later.
Can I change the key bindings?
Yes. The -b or --bindings option prints the commands whose key bindings can be changed, with their defaults.
Is it open source?
The project is public on GitHub. The docs have a License page and link to discussions and issues.
What are the best DHV alternatives?
Popular alternatives to DHV include GitBot and Shortcut Masters. See all DHV alternatives







