snaketrail
Trace the snake 🐍: list transitive local imports (files & namespace packages) and report unused .py files under your project root — without executing your code.
Install
pip install snaketrail
lets say you have a Handler.py thats your main entrypoint to your project, and you want to see which files it uses. but you more importantly want to see which files it DOESNT use and to tell what is deprecated and just test files.
# from your project root
snaketrail Handler.py
snaketrail Handler.py --verbose
snaketrail Handler.py --root /path/to/project
> Unused local Python files:
> - debug.py
> - test.py
now you can safely burn those deprecated files that your main program never touches, or tuck them away into a deprecated/ folder and nobody will ever look at them again.
probably.
Metadata
Release files for snaketrail 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 |
|---|---|---|---|---|
| snaketrail-0.1.0.tar.gz | 4.1 kB | Without provenance | Details for snaketrail-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| snaketrail-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for snaketrail-0.1.0-py3-none-any.whl |
Total release size: 9.3 kB
Release files / snaketrail-0.1.0.tar.gz
| Download URL | snaketrail-0.1.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a2931d24412d823dd53124e01ea2b8534d29b41ef6adad1979a77cbc8881e12
|
|
BLAKE2b-256 checksum How to use checksums |
d7b9c3700e98714116e51918b12d43564aee8d779cef5c902d3cd4217761660a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.0
|
Release files / snaketrail-0.1.0-py3-none-any.whl
| Download URL | snaketrail-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b59b567d8e4f39cb56b4dab5aa4e5719ed19616b1ab9ce8c807121af96d1c6f8
|
|
BLAKE2b-256 checksum How to use checksums |
7e0d7f014759a7d3976cfa97a16443a477251980c93220c8952d54488e5f75ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.0
|
Security for snaketrail 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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.