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,*.pydby default. -i / --ignoreto add extra ignored files/folders (space- or comma-separated).-e / --excludefile [FILE]to load a.gitignore-like file with extra patterns.-s / --sizeto include human-readable file sizes.-o / --output [FILE]to write the output to custom path (project-tree.txtby default).
Installation
From PyPi (once published):
pip 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 distproject-tree-cli -i dist docs *.tmpproject-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 -oproject-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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| project_tree_cli-0.1.1.tar.gz | 7.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| project_tree_cli-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.0 kB
Release files / project_tree_cli-0.1.1.tar.gz
| Download URL | project_tree_cli-0.1.1.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f6dfc13cf6e0d0026f5eaa7d1f92dc59afce080e0fd2ff6c06f354ccb2f17755
|
|
BLAKE2b-256 checksum How to use checksums |
a06cc745e9f4cafc608482ace5d1c1f470abcf524374b9263fbaacd0d51689db
|
| 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.1-py3-none-any.whl
| Download URL | project_tree_cli-0.1.1-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7350322efaee2c3d313f965336cfc9231e1f29253b0217469531336f9f5ccde5
|
|
BLAKE2b-256 checksum How to use checksums |
c7d1f57c863e537164895cce67672a7bc369cc40990c75cc673fbd921bf1b4e3
|
| 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.1
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.