Skip to content
This repository has been archived by the owner on Oct 7, 2023. It is now read-only.

Latest commit

 

History

History
36 lines (26 loc) · 1.16 KB

README.md

File metadata and controls

36 lines (26 loc) · 1.16 KB

dis-cli

PyPI

pre-commit.ci status codecov

dis-cli is a command line tool for displaying Python source and bytecode.

dis.dis

Installation

dis-cli can be installed from PyPI. To install via pip, run

$ pip install dis-cli

Usage

dis-cli provides a command line program, dis, which takes a "import-like" path to a function to display information about. For example, if you have a package a, with a submodule b, containing a function c, you could run dis on it like this:

$ dis a.b.c

Just like you could import c in a script:

import a.b.c

dis takes a few other options. Try running dis --help to see what's available!