A CLI facility to inspect Python environments.
Project description
wxc
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
wxcis 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a5089f6d67afe3cefe794890c4e99d56039adfd35ef969f50e8643d722608b1
|
|
| MD5 |
827f9d88ddd1c109b4ee962e3d588383
|
|
| BLAKE2b-256 |
3ac561400f0caa4e16a19abe9101a52fe3ffa14995303f485ad85130c8e531e5
|
Provenance
The following attestation bundles were made for wxc-7.2.0.tar.gz:
Publisher:
cd.yml on neutrinoceros/wxc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wxc-7.2.0.tar.gz -
Subject digest:
7a5089f6d67afe3cefe794890c4e99d56039adfd35ef969f50e8643d722608b1 - Sigstore transparency entry: 255560142
- Sigstore integration time:
-
Permalink:
neutrinoceros/wxc@d59ccffa8c92775043c1ff84a0870af68b46909e -
Branch / Tag:
refs/tags/v7.2.0 - Owner: https://github.com/neutrinoceros
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@d59ccffa8c92775043c1ff84a0870af68b46909e -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ab70f52c5610af4ceb0d197efdb74c63195a2e8ec8df544a233fd8befefc7c2
|
|
| MD5 |
5e0a4dee55744c585afce32506b56fd6
|
|
| BLAKE2b-256 |
625426830ddb83b0f6906c511b24786406e7dd7af1e733241454b563211c0d87
|
Provenance
The following attestation bundles were made for wxc-7.2.0-py3-none-any.whl:
Publisher:
cd.yml on neutrinoceros/wxc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wxc-7.2.0-py3-none-any.whl -
Subject digest:
9ab70f52c5610af4ceb0d197efdb74c63195a2e8ec8df544a233fd8befefc7c2 - Sigstore transparency entry: 255560143
- Sigstore integration time:
-
Permalink:
neutrinoceros/wxc@d59ccffa8c92775043c1ff84a0870af68b46909e -
Branch / Tag:
refs/tags/v7.2.0 - Owner: https://github.com/neutrinoceros
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@d59ccffa8c92775043c1ff84a0870af68b46909e -
Trigger Event:
push
-
Statement type: