Skip to main content

/README.md

Project description

folder_tree_lister

A small Python package to list the directory tree structure of specified directories. It can display the directory structure up to a certain depth and allows for easy navigation of folder contents. Useful in giving the folder structure as a context to LLMs.

Features

  • List directory trees for multiple directories.
  • Control the depth of directory traversal.
  • Exclude unwanted folders like __pycache__, .git, etc.
  • Simple and clean output to visualize folder structures.

Installation

You can install the package via pip from PyPI.

Install from PyPI:

pip install folder-tree-lister

Importing the Function:

from folder_tree_lister import list_multiple_directories

Using the Function:

import os
dirs = ["."]  
list_multiple_directories(os.getcwd(), dirs, max_depth=4)           

Add more directories if needed, for eg dirs = [".", "/path/to/other/directory"]. Doing this will create two seperate folder trees.

Depth can be addded to set the limit for rendering sub-directories.

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

folder_tree_lister-0.0.5.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

folder_tree_lister-0.0.5-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file folder_tree_lister-0.0.5.tar.gz.

File metadata

  • Download URL: folder_tree_lister-0.0.5.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.7

File hashes

Hashes for folder_tree_lister-0.0.5.tar.gz
Algorithm Hash digest
SHA256 c365014299bbb68029c2225c2ba9dfe10aefe79af03806ef067c603ab4a27ffe
MD5 73cffaf0a4db54a884c52986adef780c
BLAKE2b-256 d944726935cb06597d33b630aae1855c42a437026fb569e5451cb04d4ebc3d0f

See more details on using hashes here.

File details

Details for the file folder_tree_lister-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for folder_tree_lister-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a9f1c80c08a051577e005603b0d2ca91d5f7c6d806979c3f687332a2feb993aa
MD5 e4d8e3cf2240f596db56d44933705123
BLAKE2b-256 0a4b89bd1baf2c41b645a0df6145752aae9771c2ca3e4623819d09cb03eafbf5

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