Skip to main content

treex

Print a directory tree with file metadata


About

treex is a command-line utility (similar to tree) that recursively scans a directory and prints its contents as a tree using Unicode box-drawing characters. File names include their human-readable size and, optionally, modification time. Text files also include their line count, while binary and unreadable files are marked with their type. When Git is installed, it respects .gitignore rules.

Requirements:

  • Python 3.10+
  • Git 2.0+ (optional)
  • UTF-8-compatible terminal

Installation

Install treex from PyPI using either pip or pipx:

  • pip install treex-cli
  • pipx install treex-cli

Usage

$ treex --help
usage: treex [-h] [-a] [-w N] [-m] [directory]

print a directory tree with file metadata.

positional arguments:
  directory       directory to scan (default: current directory)

options:
  -h, --help      show this help message and exit
  -a, --all       show all files, including git-ignored
  -w, --width N   starting column for file metadata (default: 50)
  -m, --modified  show file modification times

Release files for treex-cli 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for treex-cli 0.1.0
File Size Uploaded
treex_cli-0.1.0.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for treex-cli 0.1.0
File Interpreter ABI Platform
treex_cli-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.5 kB

Release files / treex_cli-0.1.0.tar.gz

Download URL treex_cli-0.1.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7df1349ca40ce545eeddb029e1644da156363573938d8472ad67d8abe561e37b
BLAKE2b-256 checksum
How to use checksums
77d43b5f2f5a61c756090e90f856bedc322ec925e206a954d3a393256c7db924
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / treex_cli-0.1.0-py3-none-any.whl

Download URL treex_cli-0.1.0-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ffae1b75dd092a514b1f70dc0192a387710b50f40e82cdc1198fd13feafdffb1
BLAKE2b-256 checksum
How to use checksums
1a834c2cf39edbde013bab89514180f519414126d69a4bd9cf2b56eaf9c95f15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page