A Python implementation of the tree command for Windows
Project description
tree-py
A Python implementation of the tree command, designed for Windows but compatible with other platforms. It provides a feature-rich command-line utility to recursively list directories in a tree-like format.
Installation
uv tool install tree-py-shiso
Usage
tree-py [options] [directory]
Common Options
| Flag | Description |
|---|---|
-L <level> |
Max display depth of the directory tree. |
-d |
List directories only. |
-a |
All files are listed (including hidden files). |
-f |
Print the full path prefix for each file. |
-i |
Makes tree not print the indentation lines. |
-h |
Print the size in a human readable way. |
-p |
Print the file type and permissions. |
-C |
Turn colorization on always. |
-I <pattern> |
Do not list files that match the given pattern. |
-P <pattern> |
List only those files that match the pattern. |
--prune |
Prune empty directories from the output. |
--dirsfirst |
List directories before files. |
Examples
Project Overview:
tree-py -L 2 -I "node_modules|__pycache__" --dirsfirst
Find specific files:
tree-py -P "*.json" --prune
Flat list with full paths:
tree-py -i -f
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 tree_py_shiso-0.2.0.tar.gz.
File metadata
- Download URL: tree_py_shiso-0.2.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc6ddd8f05d80f61529323395414428b5e656eef254f3cd1abcea58c1b2e2483
|
|
| MD5 |
db41475aa4c87f59b70964ce75a85b35
|
|
| BLAKE2b-256 |
adf36eb0ff5f048555417e28f977327fdc772326b7be6459642b3e6ce753c2cc
|
File details
Details for the file tree_py_shiso-0.2.0-py3-none-any.whl.
File metadata
- Download URL: tree_py_shiso-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff16d0c75a88412e101cd5fc9b8b08dc7aafff9122222da234e054d02bd8121c
|
|
| MD5 |
bdafc39b03dbaa36fce0d45e3711ee79
|
|
| BLAKE2b-256 |
d4d09ccae8855ab1d04eaccff9170c45d4f90eefe03815f68c6689641b4b37af
|