Skip to main content

A tool to dive into Python code

Project description

DHV

DHV

GitHub Actions Workflow Status GitHub commits since latest release GitHub Issues or Pull Requests GitHub Release Date PyPI - License PyPI - Python Version PyPI - Version

Introduction

DHV is a terminal-based tool for diving into Python code, giving easy visual access to bytecode disassembly and the abstract syntax tree. If you're curious about what's "under the hood" when it comes to your Python source, this tool should help satisfy some of that curiosity.

DHV in action

[!IMPORTANT]

Python's dis module is a bit of a moving target; because of this and to try and keep the code as clean as possible DHV only works with Python 3.13 or later.

Installing

pipx

The package can be installed using pipx:

$ pipx install dhv

uv

The package can be install using uv:

uv tool install --python 3.13 dhv

Using DHV

Once you've installed DHV using one of the above methods, you can run the application using the dhv command.

The best way to get to know DHV is to read the help screen, once in the main application you can see this by pressing F1.

Getting help

If you need help, or have any ideas, please feel free to raise an issue or start a discussion.

TODO

See the TODO tag in issues to see what I'm planning.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dhv-0.4.1.tar.gz (2.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dhv-0.4.1-py3-none-any.whl (34.4 kB view details)

Uploaded Python 3

File details

Details for the file dhv-0.4.1.tar.gz.

File metadata

  • Download URL: dhv-0.4.1.tar.gz
  • Upload date:
  • Size: 2.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.1

File hashes

Hashes for dhv-0.4.1.tar.gz
Algorithm Hash digest
SHA256 80c9a5b978587e7412176bdcb20a3aae026c37d92b8051b487b674648d63eda2
MD5 8f41497ab59a47a0eb0f341aae9ab830
BLAKE2b-256 11197269af1b0e8f5250291ed99a0394c74e0cf211610122915f2b4847781595

See more details on using hashes here.

File details

Details for the file dhv-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: dhv-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 34.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.1

File hashes

Hashes for dhv-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d36a728dc8a68ebf6c224caf2dfc35155dc6e939c726071bbf0e67d1c151fcca
MD5 4ac8349395a39a8c57b5fc2d8ac196c1
BLAKE2b-256 0ee757687cb5347b759aae01527095fbf5d57030b818a90fbdadf8d73f3f86a0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page