Skip to main content

A CLI facility to inspect Python environments.

Project description

wxc

PyPI PyPI

codecov pre-commit.ci status Code style: black

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 tested on macOS, Linux, and partially on Windows, from Python 3.7 to 3.10
  • 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-6.5.5.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

wxc-6.5.5-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wxc-6.5.5.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for wxc-6.5.5.tar.gz
Algorithm Hash digest
SHA256 1826c568a9c81bfcb016deaa07046f2a1ce89058ed254acb3f472979c44e833a
MD5 51f828674295a3600cc03542d3ea6833
BLAKE2b-256 5d4d4d9354ee03d27ae6f842956a6ac3bee2193613bca8feaff5a5f705af925a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wxc-6.5.5-py3-none-any.whl
  • Upload date:
  • Size: 20.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for wxc-6.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ae69e77017f80468139ea32a7c56674a726b46a8bf3533f4322cf4689f835696
MD5 c959caf67635970abcd8e01843e28de1
BLAKE2b-256 ee98c5084b2240e3fbc2439d8b2760560f7eeefeaccf80d55c08014826130f21

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