A beautifully structured CLI tree viewer with exports
Project description
Arborix
A beautifully structured CLI tree viewer with export capabilities
Overview
Arborix is a minimalist, yet feature-rich command-line utility that renders directory trees in a clean and human-readable format. It leverages UTF-8 icons to intuitively represent various file types and offers multi-format export options for versatile use cases.
Key Features
- 📁 Unicode icons for different file types
- 📄 Export to
.txt,.json, and.html(with embedded CSS) - 🧠 Sorting by name, size, or date
- 🫥 Toggle hidden files
- 🌈 Colored terminal output
- 🔍 Depth limitation for focused navigation
- 📊 Directory statistics on demand
Installation
Choose from the following methods:
From GitHub
pip install git+https://github.com/mallikmusaddiq1/arborix.git
cd arborix
pip install .
From PyPI
pip install arborix
Usage
Launch Arborix from your terminal:
arborix [path] [options]
Command-line Options
-d, --depth <int>: Set tree depth limit (e.g.,--depth 3)--txt <file>: Export tree view to.txt--json <file>: Export tree structure to.json--html <file>: Export to.htmlwith embedded styles--sort <name|size|date>: Sort directory entries (default: name)-H, --hidden: Include hidden files and folders--no-icons: Disable Unicode icons--color: Enable ANSI-colored output--stats: Display summary of files and directories-v, --version: Show tool version and author information
Example Commands
Generate a basic tree with stats and export:
arborix . --depth 2 --txt output.txt --stats
Export to JSON with colored output and hidden files:
arborix . --json structure.json --color --hidden
Generate icon-free HTML output for a directory:
arborix /path/to/dir --html index.html --no-icons
Display version and credits:
arborix --version
File Type Icons
| Icon | Category | File Types |
|---|---|---|
| 📁 | Folder | Directories |
| 📸 | Image | jpg, png, svg, psd |
| 🎵 | Audio | mp3, wav, flac, ogg |
| 🎬 | Video | mp4, mkv, avi, mov |
| 📄 | Text & Code | txt, py, java, html |
| 🗜️ | Archive | zip, rar, tar, 7z |
| ⚙️ | Executable | exe, bin, jar, sh |
| 🔤 | Font | ttf, otf, woff, woff2 |
| 🗄️ | Database | sql, sqlite, db |
| 📊 | Presentation | ppt, pptx, odp |
| 📈 | Spreadsheet | xls, xlsx, ods |
| 📖 | PDF & E-books | pdf, epub, mobi |
| 📐 | CAD & 3D Models | dwg, stl, obj |
| 📦 | Miscellaneous | torrent, tmp, cfg |
| 💾 | Virtual Machines | vmdk, vmx, vdi |
| 🎮 | Game Files | rom, nes, gba |
| 🔬 | Scientific Data | hdf, npy, pdb |
| ✍️ | Markup & Docs | md, tex, adoc |
| 📦 | Other | Unrecognized extensions |
Author
Mallik Mohammed Musaddiq
GitHub: @mallikmusaddiq1
Email: mallikmusaddiq1@gmail.com
License
This project is licensed under the MIT License. Refer to the LICENSE file for full details.
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 arborix-1.0.0.tar.gz.
File metadata
- Download URL: arborix-1.0.0.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
673ba3d0e5d7e483dfa289f42b32397f562309f62cb68b0438afc18aee4d53d0
|
|
| MD5 |
94a932302372f3def49c7c0016bd958e
|
|
| BLAKE2b-256 |
ddc9dad771aea757362a23a2cbd56575033f50d8cdc3c444d5ad265b48b6f6a8
|
File details
Details for the file arborix-1.0.0-py3-none-any.whl.
File metadata
- Download URL: arborix-1.0.0-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93a8123e3d66436fe21ef1b069aa0b95bffdfb7067829e9b62ba2802a27b003f
|
|
| MD5 |
5287919700515c886e07f2b7c0f7c462
|
|
| BLAKE2b-256 |
e647fa73c074ad7296f573091654b42e6b38afe154eb9bf08773819761bce184
|