๐ŸŒณ ntree

A modern, feature-rich replacement for the classic Linux tree command โ€” written in Python.

๐ŸŽจ Colorful. ๐Ÿ” Filterable. ๐Ÿ—‚๏ธ Metadata-rich. ๐Ÿง  Smartly structured.

๐Ÿš€ Features

๐Ÿ“ฆ Installation

Install it via pip from PyPI:

pip install ntree

๐Ÿ› ๏ธ Usage

ntree [OPTIONS]

๐Ÿ”ง Options

Option Description
--depth N Limit traversal to N levels deep
--show-hidden Include hidden files and folders
-e Show only files with a specific extension (e.g. py, txt)
-o Output the tree to a specified file
--ztoa List entries in reverse (Z โ†’ A)
--meta Show metadata: size, owner, last modified

๐Ÿ“‚ Example

ntree ~/projects/myapp --depth 2 --meta --show-hidden -e py -o tree.txt

This will:

๐Ÿ“ธ Screenshot

๐Ÿ“ myapp/ โ”œโ”€โ”€ ๐Ÿ“ src/ โ”‚ โ”œโ”€โ”€ ๐Ÿ“„ main.py (3.1 KB) โ”‚ โ””โ”€โ”€ ๐Ÿ“„ utils.py (1.2 KB) โ”œโ”€โ”€ ๐Ÿ“„ README.md (800 B) โ””โ”€โ”€ ๐Ÿ“ .git/

๐Ÿค Contributing

Pull requests and suggestions are welcome! If youโ€™d like to contribute, please fork the repository and use a feature branch. Thanks for making it better. ๐Ÿ’š

๐Ÿ“œ License

MIT License. See LICENSE file for full text.

๐Ÿง  Author

Built with โค๏ธ by Vijay Satheesh

โญ Star This Repo

If you like this project, give it a โญ โ€” it helps more people discover it!