Skip to main content

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.

Release files for wxc 7.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wxc 7.2.0
File Size Uploaded
wxc-7.2.0.tar.gz 18.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wxc 7.2.0
File Interpreter ABI Platform
wxc-7.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 36.9 kB

Release files / wxc-7.2.0.tar.gz

Download URL wxc-7.2.0.tar.gz
Size 18.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7a5089f6d67afe3cefe794890c4e99d56039adfd35ef969f50e8643d722608b1
BLAKE2b-256 checksum
How to use checksums
3ac561400f0caa4e16a19abe9101a52fe3ffa14995303f485ad85130c8e531e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 29, 2025.

Transparency log

Release files / wxc-7.2.0-py3-none-any.whl

Download URL wxc-7.2.0-py3-none-any.whl
Size 18.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9ab70f52c5610af4ceb0d197efdb74c63195a2e8ec8df544a233fd8befefc7c2
BLAKE2b-256 checksum
How to use checksums
625426830ddb83b0f6906c511b24786406e7dd7af1e733241454b563211c0d87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 29, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

7.2.0 This release

2 release files

7.1.2

2 release files

7.1.1

2 release files

7.1.0

2 release files

7.0.0

2 release files

6.6.0

2 release files

6.5.5

2 release files

6.5.4

2 release files

6.5.3

2 release files

6.5.2

2 release files

6.5.1

2 release files

6.5.0

2 release files

6.4.0

2 release files

6.3.2

2 release files

6.3.1

2 release files

6.3.0

2 release files

6.2.10

2 release files

6.2.9

2 release files

6.2.8

2 release files

6.2.7

2 release files

6.2.6

2 release files

6.2.5

2 release files

6.2.4

2 release files

6.2.3

2 release files

6.2.2

2 release files

6.2.1

2 release files

6.2.0

2 release files

6.1.2

2 release files

6.1.1

2 release files

6.1.0

2 release files

6.0.4

2 release files

6.0.3

2 release files

6.0.2

2 release files

6.0.1

2 release files

6.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page