Skip to main content

treex

List directory contents as a tree with file and directory metadata


About

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

  • Shows human-readable file sizes
  • Shows recursive directory sizes
  • Shows line counts for text files
  • Identifies binary and unreadable files by type
  • Optionally shows 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] [-q] [-s] [directory]

List directory contents as a tree with file and directory 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
  -q, --quiet     don't show file metadata
  -s, --summary   show summary only

Screenshot

Screenshot

Metadata

Release files for treex-cli 0.1.6

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.6
File Size Uploaded
treex_cli-0.1.6.tar.gz 6.0 kB Details

Built distribution (wheel)

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

Total release size: 12.3 kB

Release files / treex_cli-0.1.6.tar.gz

Download URL treex_cli-0.1.6.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c4bb7793706d1e4ca22de0245341dfc6e4f1969b4300315ccf076bbae9ac6e5e
BLAKE2b-256 checksum
How to use checksums
1e19bf6a4dadf783b9c293182d0d7bfb1858ef69886fd07d1e65ebc8d7126891
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.6-py3-none-any.whl

Download URL treex_cli-0.1.6-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
809326487fa61b2c66bd90d448c2dc9e9dab544fd2eab75c7c5f25011bc2295a
BLAKE2b-256 checksum
How to use checksums
0fe1afa44e369b2eb345af7f91132482f9b73bf3f812c3aec9c2778551d86cbf
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.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

This release

0.1.6 This release

2 release files

0.1.5

2 release files

0.1.4

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