Skip to main content

A CLI facility to inspect Python environments.

Project description

wxc

PyPI

pre-commit.ci status 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

$ 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.1.2.tar.gz (23.3 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: wxc-7.1.2.tar.gz
  • Upload date:
  • Size: 23.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for wxc-7.1.2.tar.gz
Algorithm Hash digest
SHA256 76f7115a96ff758c2b404a616c3d2cf99a3258d1c6e73cc31b89f923030dfada
MD5 a3fe0cc5c33a662b2fd0ba92dccf1b47
BLAKE2b-256 29a56cfb75754a7534cf3d2f810fc673d346983122ce81cc38d54cfaa6496d0c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wxc-7.1.2-py3-none-any.whl
  • Upload date:
  • Size: 20.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for wxc-7.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 aadc6aa3ba9eeac76ff70af24bb4966419c50f957e46c4833ec987bb55cb084b
MD5 8bddb7b0aab9a1d322f23dba7a45f8c7
BLAKE2b-256 06a1e0430781da6677e20c5b7445e9e976062f21dac31b3662f38f0e65512941

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