Skip to main content

project-tree-cli

A small, dependency-free Python CLI util that prints a recursive tree structure of a project – like a lightweight tree with sensible Python-flavoerd defaults.

Features

  • Recursively prints tree of any given directory.
  • Ignores __pycache__, .venv*, .idea*, .env, .env.*, .env-*, .git, *.pyc, *.pyo, *.pyd by default.
  • -i / --ignore to add extra ignored files/folders (space- or comma-separated).
  • -e / --excludefile [FILE] to load a .gitignore-like file with extra patterns.
  • -s / --size to include human-readable file sizes.
  • -o / --output [FILE] to write the output to custom path (project-tree.txt by default).

Installation

From PyPi (via pip or uv):

pip install project-tree-cli

uv tool install project-tree-cli

From GitHub:

pip install git+https://github.com/VanirSama/project-tree-cli.git

Usage

CLI-command usage example Description
project-tree-cli Tree of current directory.
project-tree-cli .\my-project Tree of .\my-project
project-tree-cli -s Tree with files size displayed
project-tree-cli -i dist
project-tree-cli -i dist docs *.tmp
project-tree-cli -i dist,docs,*.tmp
Add ignored files/folders
(either space- or comma- separated sequences work equally fine)
project-tree-cli -e exclude.txt Load patterns from .gitignore-like file.
project-tree-cli -o
project-tree-cli -o .\tree\output.txt
Write output tree into custom file or into project-tree.txt by default.

Example output

project-tree-cli -s -i tests -o

src/
└── project_tree_cli/
    ├── __init__.py  (86B)
    ├── __main__.py  (132B)
    ├── cli.py  (3.5KB)
    ├── core.py  (4.6KB)
    └── utils.py  (665B)

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for project-tree-cli 0.1.2

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

Source distribution (sdist)

Source distribution for project-tree-cli 0.1.2
File Size Uploaded Provenance
project_tree_cli-0.1.2.tar.gz 7.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for project-tree-cli 0.1.2
File Interpreter ABI Platform
project_tree_cli-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 16.0 kB

Release files / project_tree_cli-0.1.2.tar.gz

Download URL project_tree_cli-0.1.2.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c8d07668c2128a4c8b19eb71d537717b8add155614520a29f8349358b4a53503
BLAKE2b-256 checksum
How to use checksums
c40e3ecd56650d2a392d41c545eb2bbec9bb4b1616addaf04c5cb2bfaf52de20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.0

Release files / project_tree_cli-0.1.2-py3-none-any.whl

Download URL project_tree_cli-0.1.2-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01cc8478546a3dbb2bf7a1e1a94fe7d0639defc34dc2f17eff6d2b0b8e753abd
BLAKE2b-256 checksum
How to use checksums
43ad03b1b9f409ae501ef97bf6de01e3a8dc6b71f8d45c4d5fc5d4cc3117f614
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.0

Security for project-tree-cli 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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