Skip to main content

A tool to inspect disassembled Python code on the command line.

Project description

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!

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

dis_cli-0.3.0.tar.gz (8.3 kB view hashes)

Uploaded Source

Built Distribution

dis_cli-0.3.0-py2.py3-none-any.whl (8.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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