Skip to main content

A CLI facility to inspect Python environments.

Project description

wxc

PyPI PyPI

pre-commit.ci status Code style: black Ruff

wxc (pronounced "which") allows you to inspect source code in your Python environment from the command line. It is based on the inspect module from the standard library.

Installation

$ python3 -m pip install wxc

Usage

Get the version number of a package in your current environment

Locate the file from which a Python package is imported

Locate a specific method's source code

View the source code of function directly from the terminal stdout

wxc tries to be helpful when you mistype

For more, run

$ wxc --help

Known limitations

wxc is not currently able to retrieve the source of compiled code binded into Python. It should however correctly point to the compiled file that an object is imported from.

wxc should never be installed in isolation (for instance via pipx) since it would completely defeat its purpose.

Notes

  • wxc is fully tested on macOS, Linux, and partially on Windows
  • this project was formerly named "whych" and renamed to avoid confusion with the pypi-available package of the same name.

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

wxc-7.1.0.tar.gz (23.1 kB view details)

Uploaded Source

Built Distribution

wxc-7.1.0-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file wxc-7.1.0.tar.gz.

File metadata

  • Download URL: wxc-7.1.0.tar.gz
  • Upload date:
  • Size: 23.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for wxc-7.1.0.tar.gz
Algorithm Hash digest
SHA256 30634580ba61856c0fd1fee356416fc83a6c34946aba1354609fe7229916aa23
MD5 17649382b1a2afe451763766f9eea1d6
BLAKE2b-256 101c65712b160111398c3729b8e4f7a87a041770ce160f917a5ed16914e4f807

See more details on using hashes here.

File details

Details for the file wxc-7.1.0-py3-none-any.whl.

File metadata

  • Download URL: wxc-7.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for wxc-7.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d15b8b3c23d36ec6cdfbf768f99621a3a63e7dbb5d4c560ce179a53407e9e97
MD5 cf2b65c6ae5d81beec1b32ccce1ec42c
BLAKE2b-256 0b3ded75541b766a0b7ecac781b5bfcb0c6549617469bf682fe6a9ae23d59c36

See more details on using hashes here.

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