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


🎯 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.1.tar.gz (5.3 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.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: treely-1.0.1.tar.gz
  • Upload date:
  • Size: 5.3 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.1.tar.gz
Algorithm Hash digest
SHA256 835a732a593ace80ba56e19b8792299fa7fd24e1186a1dee87bcaa21b2e3e598
MD5 a5586a0e142cb22acec074f9bd8249c6
BLAKE2b-256 fc6e9d87ac1bb75f0a709ab8e05eb8e6202433c4cb2b5c16f003561569ee3526

See more details on using hashes here.

File details

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

File metadata

  • Download URL: treely-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 476297dcb14ed774c66397c9168be94f28822c92ec014a7ec08567a36f437eb3
MD5 e850b7825986362f5b9b281c8364f89c
BLAKE2b-256 40584aa48748a7adcfacc759935f29489d909d4d69f5a5f5487d395c693ada89

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