A dynamic directory tree generator that skips the junk by default.
Project description
๐ฆ nestscan โ Pretty Directory Trees in One Command
"Because sometimes you just need to see what's actually in a folder without losing your mind."
๐ Install
pip install nestscan
โก Usage
Navigate to any folder and run:
nestscan
It prints a clean, readable tree of your current directory โ sorted, structured, and easy on the eyes.
You can also point it anywhere:
nestscan /path/to/my/project
๐ All Options
| Flag | Description |
|---|---|
path |
Target directory to scan (default: current directory) |
-o, --output |
Save the tree to a text file (e.g., -o tree.txt) |
--all |
Include hidden/junk directories like .git, node_modules, venv, etc. |
Examples
# Scan the current directory
nestscan
# Scan a specific path
nestscan /home/user/myproject
# Save output to a file
nestscan -o tree.txt
# Show everything, including hidden and junk folders
nestscan --all
# Combine options
nestscan /home/user/myproject --all -o full_tree.txt
๐ Example Output
Directory Tree for: /home/user/myproject
==================================================
myproject
โโโ src
โ โโโ main.py
โ โโโ utils.py
โ โโโ models
โ โโโ user.py
โ โโโ post.py
โโโ tests
โ โโโ test_main.py
โ โโโ test_utils.py
โโโ README.md
โโโ requirements.txt
Clean. Sorted. Directories first.
โจ What It Does
- ๐ฒ Recursive tree generation โ walks the full directory structure and renders it with proper branch characters
- ๐ Directories first โ folders are always listed before files at every level
- ๐ซ Skips the noise by default โ ignores
venv,.venv,node_modules,__pycache__,.git,build,dist, and other clutter you never want to see - ๐
--allmode โ opt in to see everything when you actually need it - ๐พ Optional file output โ save the tree to a
.txtfile for sharing, documentation, or README pasting - ๐ช Windows compatible โ ANSI colors work there too
๐ Requirements
- Python 3.6+
- No third-party dependencies โ pure stdlib, zero bloat
โ ๏ธ Notes
- Directories you don't have permission to read will show
[Permission Denied]instead of crashing - Output is sorted alphabetically within each level, with directories always above files
๐ค Contributing
Found a bug? Have a wild idea? PRs welcome.
๐ License
Do whatever you want with it. Just stop doing ls -la and squinting at terminal output like it's 1995.
By turnt ducky ๐ฆ โ also check out reqscan for auto-generating requirements.txt.
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 nestscan-1.0.0.tar.gz.
File metadata
- Download URL: nestscan-1.0.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09aae5673ca61e538a1979b057f565cc63a309eb7d448d6702b3c59e9ffcd49e
|
|
| MD5 |
49024a62ee7f47fd8a5388e640c0689b
|
|
| BLAKE2b-256 |
88793bce04f4e55eca53f1348999c98eaebe086d095d419a5c5b55768cf116c3
|
File details
Details for the file nestscan-1.0.0-py3-none-any.whl.
File metadata
- Download URL: nestscan-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b10d66cb722b73974e6a60cbd30535b354e95ad19a9edbaad0b3121ee9d54c28
|
|
| MD5 |
a0ba31818530b165a98cdf691d266666
|
|
| BLAKE2b-256 |
d7ce8d2f5ca7c81f92e3d55afdaa4fec0c6efbac5a90c638d145b4ecc7104aae
|