Skip to main content

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.

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)

Source distribution for snaketrail 0.1.0
File Size Uploaded
snaketrail-0.1.0.tar.gz 4.1 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

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