Skip to main content

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
  • ๐Ÿ‘ --all mode โ€” opt in to see everything when you actually need it
  • ๐Ÿ’พ Optional file output โ€” save the tree to a .txt file 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nestscan-1.0.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nestscan-1.0.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

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

Hashes for nestscan-1.0.0.tar.gz
Algorithm Hash digest
SHA256 09aae5673ca61e538a1979b057f565cc63a309eb7d448d6702b3c59e9ffcd49e
MD5 49024a62ee7f47fd8a5388e640c0689b
BLAKE2b-256 88793bce04f4e55eca53f1348999c98eaebe086d095d419a5c5b55768cf116c3

See more details on using hashes here.

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

Hashes for nestscan-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b10d66cb722b73974e6a60cbd30535b354e95ad19a9edbaad0b3121ee9d54c28
MD5 a0ba31818530b165a98cdf691d266666
BLAKE2b-256 d7ce8d2f5ca7c81f92e3d55afdaa4fec0c6efbac5a90c638d145b4ecc7104aae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page