Package Autopsy
Package Autopsy inspects Python wheels and source distributions without installing them, executing their code, or talking to the network. It reports what a distribution contains, whether its metadata and RECORD hashes are consistent, and what changed between releases.
The PyPI name is lupaxa-package-autopsy. The import path is
lupaxa.package_autopsy. The console script is package-autopsy. lupaxa
is a namespace package.
Inspection is not installation. Matching RECORD hashes prove consistency with this archive, not publisher identity.
Install
pip install lupaxa-package-autopsy
Requires Python 3.11+.
Note:
NO_COLOR, including an empty value, turns colour off.--no-colourdoes the same.
Formats
Both wheels and source distributions are first-class inputs. The tool
never installs them or puts them on sys.path.
| Kind | Extensions | Recognised by |
|---|---|---|
| Wheel | .whl |
ZIP with .dist-info, METADATA, WHEEL, RECORD |
| Source distribution | .tar.gz, .tgz, .zip |
PKG-INFO and/or pyproject.toml |
A tarball or ZIP without that metadata is an ordinary archive, not a
Python package. Misleading extensions are reported. RECORD hash
verification applies to wheels; sdists have no RECORD file.
Quick Start
package-autopsy inspect dist/mypackage-1.0.0-py3-none-any.whl
package-autopsy inspect dist/mypackage-1.0.0.tar.gz
package-autopsy modules dist/mypackage-1.0.0-py3-none-any.whl
package-autopsy validate dist/mypackage-1.0.0.tar.gz
package-autopsy verify dist/mypackage-1.0.0-py3-none-any.whl
package-autopsy audit dist/mypackage-1.0.0-py3-none-any.whl
What it Does
package-autopsy treats distributions as untrusted archives. It reads wheel
and sdist metadata, inventories files, discovers importable modules
(including implicit namespace packages), lists entry points, evaluates
declared dependencies and markers, and checks RECORD hashes. It never imports
packaged modules, never runs setup.py, and never invokes a build backend.
package-autopsy inspect package-1.2.0-py3-none-any.whl --json
package-autopsy contents package.whl --tree --sort size
package-autopsy dependencies package.whl --python-version 3.12 --platform linux
package-autopsy compare package-1.0.0-py3-none-any.whl package-1.1.0-py3-none-any.whl
package-autopsy consistency package-1.0.0.tar.gz package-1.0.0-py3-none-any.whl
package-autopsy check dist/ --config package-autopsy.toml
package-autopsy report package.whl --format html --output package-report.html
Commands
| Command | Description |
|---|---|
inspect |
Overview of identity, files, modules, dependencies, and RECORD status. |
contents |
List packaged files and directories; optional tree, sort, and regex filter. |
modules |
Discover importable packages, modules, and implicit namespaces. |
commands |
List console scripts, GUI scripts, and other entry points. |
dependencies |
Analyse Requires-Dist, extras, and environment markers. |
compatibility |
Check Requires-Python and wheel tags against a target interpreter. |
metadata |
Show core metadata, dynamic fields, and the declared build backend. |
licences |
Inspect licence expressions, legacy License fields, and bundled files. |
binaries |
Identify compiled extensions and bundled native binaries. |
validate |
Check distribution structure and metadata completeness. |
verify |
Recalculate RECORD hashes and check archive integrity. |
compare |
Diff two distributions: files, metadata, and modules. |
consistency |
Compare a wheel against its matching sdist. |
audit |
Detect packaging issues and unexpected files. |
graph |
Show declared dependency relationships. |
report |
Write a detailed report in text, Markdown, HTML, JSON, or CSV. |
check |
Enforce packaging policy from TOML configuration. |
formats |
List supported archive formats and capabilities. |
JSON Output
--json prints a UTF-8 document with schema_version "1.0". Byte counts
are numbers. Unavailable fields are null. Secrets are redacted. Progress
messages are not mixed into machine output.
Configuration
Settings are TOML. CLI options override --config, which overrides
~/.config/package-autopsy/package-autopsy.toml, which overrides built-in
defaults.
[policy]
fail_on = "error"
max_distribution_size = "20MB"
require_licence = true
require_valid_record = true
disallow_secrets = true
[policy.files]
deny = ["*.env", "*.pem", "*.key", "__pycache__/**", ".git/**"]
[policy.dependencies]
allow_direct_urls = false
Exit Codes
| Code | Result |
|---|---|
0 |
Successful completion |
1 |
General operational error |
2 |
Invalid arguments or configuration |
3 |
Invalid distribution |
4 |
Integrity verification failure |
5 |
Packaging policy violation |
6 |
Unsupported format or capability |
7 |
Resource limit exceeded |
8 |
Partial batch failure |
9 |
Incomplete required analysis |
Metadata
Release files for lupaxa-package-autopsy 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lupaxa_package_autopsy-0.1.0.tar.gz | 52.3 kB | With provenance | Details for lupaxa_package_autopsy-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lupaxa_package_autopsy-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for lupaxa_package_autopsy-0.1.0-py3-none-any.whl |
Total release size: 119.2 kB
Release files / lupaxa_package_autopsy-0.1.0.tar.gz
| Download URL | lupaxa_package_autopsy-0.1.0.tar.gz |
|---|---|
| Size | 52.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e58ee5c65c23021c2155cd31d427309cfa86e88d7ff500ecd5279d6eee8ea99
|
|
BLAKE2b-256 checksum How to use checksums |
0eb7c2c0f8f6c073e510f28160c6e53068d86b75bb07d5e4136fe5c40418d34f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 18, 2026.
Transparency logRelease files / lupaxa_package_autopsy-0.1.0-py3-none-any.whl
| Download URL | lupaxa_package_autopsy-0.1.0-py3-none-any.whl |
|---|---|
| Size | 66.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
873d5288b5f0e1c320a361c3ee0ecf9fca30d29ab1110d4e1ef693c8c71e5431
|
|
BLAKE2b-256 checksum How to use checksums |
0e8a8e4dd76582da98bd7836b9f9213c2e3394e062d391ac2fc5df6d16467456
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 18, 2026.
Transparency logSecurity for lupaxa-package-autopsy 0.1.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for lupaxa_package_autopsy-0.1.0.tar.gz
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 Nov 18, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.