Skip to main content

A Python implementation of the tree command for Windows

Project description

tree-py

PyPI version License: MIT GitHub stars

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


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.2.0a1.tar.gz (3.9 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.2.0a1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file tree_py_shiso-0.2.0a1.tar.gz.

File metadata

  • Download URL: tree_py_shiso-0.2.0a1.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

Hashes for tree_py_shiso-0.2.0a1.tar.gz
Algorithm Hash digest
SHA256 5a7de2dfd4011f37a6ce4b5c1a6a4f47554d06d2ad96452b5559cb28ee0e77a7
MD5 f621b6f432d7ec118bbf5e4a38e296cd
BLAKE2b-256 4bed8d2eadfcd7e1c20f636fdc4b1b02a7058cd1b673cf21452f87173ad55d10

See more details on using hashes here.

File details

Details for the file tree_py_shiso-0.2.0a1-py3-none-any.whl.

File metadata

  • Download URL: tree_py_shiso-0.2.0a1-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

Hashes for tree_py_shiso-0.2.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 4bbbcc2828667ef6546335cfaa10671fa205019e62559b2045953e081ddc4c8d
MD5 b1804de39728ad88c5faa8509ae9b208
BLAKE2b-256 48de4a5adbfdf9a5ef74f69c7b69d99f3c77cd03a40db20cb14678f0fc805ed2

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