Skip to main content

treex

List directory contents as a tree with file metadata


About

treex is a command-line utility that recursively scans a directory and displays its contents as a tree along with file metadata.

  • Displays human-readable file sizes
  • Shows line counts for text files
  • Identifies binary and unreadable files by type
  • Optionally displays modification timestamps
  • Respects .gitignore rules when Git is installed

Status

Latest Version
Tests (CI)
Supported Python Versions

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] [-m] [-s] [directory]

List directory contents as a 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 those ignored by Git)
  -m, --modified  show file modification times
  -s, --summary   show summary only

Screenshot

Screenshot

Release files for treex-cli 0.1.4

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.4
File Size Uploaded
treex_cli-0.1.4.tar.gz 5.9 kB Details

Built distribution (wheel)

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

Total release size: 11.9 kB

Release files / treex_cli-0.1.4.tar.gz

Download URL treex_cli-0.1.4.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9dd534c731bf2308247c85f062fc7b2204e47070661a965290ecfc53bee4bacb
BLAKE2b-256 checksum
How to use checksums
54b825a4b2afd1ad433cc4afb3f2714f33d29c19572ab62e9415dbd857f78bba
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.4-py3-none-any.whl

Download URL treex_cli-0.1.4-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1fad473bf01ff400fbc8fb8b78341a694b6f7e590434a822e4d5c5e553810272
BLAKE2b-256 checksum
How to use checksums
e92cf7cb01798fa39951e80bf0201e3d21d941ede5c4bad4b4f7aa2dc538a6a1
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

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

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