Skip to main content

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

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


Download files

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

Source Distribution

tree_py_shiso-0.1.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

tree_py_shiso-0.1.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file tree_py_shiso-0.1.1.tar.gz.

File metadata

  • Download URL: tree_py_shiso-0.1.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.19

File hashes

Hashes for tree_py_shiso-0.1.1.tar.gz
Algorithm Hash digest
SHA256 22becff0e583630b5b3319c698c7df7606c31d0520725fe7bc9b683affd2ca10
MD5 545843fd1b5600c6a052ba5634c31d2b
BLAKE2b-256 c1598470b8f516535047787a137c35a96954d82b81f2402674bc474a6b636770

See more details on using hashes here.

File details

Details for the file tree_py_shiso-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for tree_py_shiso-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5314a9b7ee094fc46a4b917e20a00922a76386903fd14cd5f5f0ac01a50df6c8
MD5 9f4b438cb494041ba30d95453da7c761
BLAKE2b-256 44bf61231b004d5205aa11ece889fd7a881a57097bdce84d76510ccee4e75549

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