Trace the snake: list transitive local imports and unused Python files.
Project description
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.
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 snaketrail-0.1.0.tar.gz.
File metadata
- Download URL: snaketrail-0.1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a2931d24412d823dd53124e01ea2b8534d29b41ef6adad1979a77cbc8881e12
|
|
| MD5 |
75cf4a6be14d9226a92031d2178915eb
|
|
| BLAKE2b-256 |
d7b9c3700e98714116e51918b12d43564aee8d779cef5c902d3cd4217761660a
|
File details
Details for the file snaketrail-0.1.0-py3-none-any.whl.
File metadata
- Download URL: snaketrail-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b59b567d8e4f39cb56b4dab5aa4e5719ed19616b1ab9ce8c807121af96d1c6f8
|
|
| MD5 |
f807943027dd7496ff815a98029d9159
|
|
| BLAKE2b-256 |
7e0d7f014759a7d3976cfa97a16443a477251980c93220c8952d54488e5f75ad
|