Skip to main content

A CLI facility to inspect Python environments.

Project description

wxc

PyPI uv

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

$ python -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.2.0.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

wxc-7.2.0-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wxc-7.2.0.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for wxc-7.2.0.tar.gz
Algorithm Hash digest
SHA256 7a5089f6d67afe3cefe794890c4e99d56039adfd35ef969f50e8643d722608b1
MD5 827f9d88ddd1c109b4ee962e3d588383
BLAKE2b-256 3ac561400f0caa4e16a19abe9101a52fe3ffa14995303f485ad85130c8e531e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for wxc-7.2.0.tar.gz:

Publisher: cd.yml on neutrinoceros/wxc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: wxc-7.2.0-py3-none-any.whl
  • Upload date:
  • Size: 18.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for wxc-7.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ab70f52c5610af4ceb0d197efdb74c63195a2e8ec8df544a233fd8befefc7c2
MD5 5e0a4dee55744c585afce32506b56fd6
BLAKE2b-256 625426830ddb83b0f6906c511b24786406e7dd7af1e733241454b563211c0d87

See more details on using hashes here.

Provenance

The following attestation bundles were made for wxc-7.2.0-py3-none-any.whl:

Publisher: cd.yml on neutrinoceros/wxc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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