Skip to main content

A modern, beautiful and powerful command-line directory tree generator with advanced filtering and code-viewing capabilities.

Project description

🌳 Treely

PyPI version License: MIT Python Versions

A beautiful and powerful command-line directory tree generator with advanced filtering and code-viewing capabilities.

Treely Demo GIF (Suggestion: You can use a tool like Terminalizer to record a GIF of your tool in action and link it here!)


🎯 Core Features

  • Beautiful Output: Generates clean, colorful, and readable directory trees.
  • Depth Limiting: Control how many levels deep the tree goes (-L).
  • Advanced Filtering: Ignore or include specific files/folders using powerful patterns (--ignore, --pattern).
  • Code Viewer: Display the contents of all detected code files right in your terminal (--code).
  • Fine-Grained Control: Exclude specific files from the code viewer, even while showing others.

🚀 Installation

Install treely globally using pip. Python 3.7+ is required.

pip install treely

⚙️ Usage

After installation, the treely command will be available in your terminal.

Basic Examples

# Generate a simple tree for the current folder
treely

# Generate a tree for a specific project, only 2 levels deep
treely ./my-project -L 2

Advanced Filtering

# Ignore common clutter like 'node_modules' and '__pycache__'
treely --ignore "node_modules|__pycache__"

# Show only Python and Markdown files in your project
treely --pattern "*.py|*.md"

Using the Code Viewer

# Show the tree AND the content of all detected code files
# (This is great for sharing a project's context)
treely --code

# Show code, but specifically exclude configuration and lock files from the output
treely --ignore "node_modules" --code "package.json|package-lock.json"

This tool was created as a fun and educational project. Enjoy!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

treely-1.0.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

treely-1.0.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file treely-1.0.0.tar.gz.

File metadata

  • Download URL: treely-1.0.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for treely-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7ce28700613d76c0b05fd6f3b67dff61719439262e748fc01901193e6d3f2ef0
MD5 bca81f3773cdc279ef3ab7d22f612f4b
BLAKE2b-256 f0effddaa096f6ca6409d06f6d14cf7c75834166bb7ceceaaeb4244b0d54a069

See more details on using hashes here.

File details

Details for the file treely-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: treely-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for treely-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d792781f6c55d06bd1a1d21f221c5c6b0d9ee03e5bd35f3a88817a919fc26c5e
MD5 2c960fc002c61fe015c60b48b8e4e7d0
BLAKE2b-256 81b1867cf8324271df1b36a181feec7eb5cd5f1ae8f1b44cb557ed4fd33011a2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page