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
$ 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
wxc
's resilience against mistakes
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.6 to 3.10 (beta)- from Python 3.10,
wxc
currently has no dependencies outside of the standard library. - 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
File details
Details for the file wxc-6.3.2.tar.gz
.
File metadata
- Download URL: wxc-6.3.2.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9311405c2d7ba29a95d9eaad6c68c1895abc22feb229131cd54611f1cc105e6 |
|
MD5 | e7e2ceff1be03ff8baa2d4f5871ceb95 |
|
BLAKE2b-256 | 18b8c07e34c5e76b561530749d3367f697fef7da6b874b3eb64f1dd5687fbd69 |
File details
Details for the file wxc-6.3.2-py3-none-any.whl
.
File metadata
- Download URL: wxc-6.3.2-py3-none-any.whl
- Upload date:
- Size: 18.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9d05d34691336b3536d8711532218216087629508370a0da6473ce45f24cdbe |
|
MD5 | 30c8f4c2833c4b7bf79e35f7a9098356 |
|
BLAKE2b-256 | 3f741bcc06ff65e1b4ecf589b9d5ce44913d68032ce8915d764e6de60225aed3 |