folder-structure-generator

The "Folder Structure Generator" simplifies the generation of project directory structures. Easily create a predefined directory tree, copy it to project documentation or README files, and save time when setting up new projects. Eliminate manual directory creation, ensure consistency across projects, and enhance project organization.


Keywords
python, documentation, structure
License
MIT
Install
pip install folder-structure-generator==0.0.2

Documentation

Folder Structure Generator

Folder Structure Generator is a Python package that simplifies the generation of project directory structures. It provides an easy way to create a predefined directory tree that can be copied and pasted into project documentation or README files.

Installation

You can install Folder Structure Generator using pip:

pip install folder-structure-generator

Usage

To generate a project directory structure, simply run the following command:

from folder_structure import FolderStructureGenerator

# List of folders to be ignored in the folder structure generation
folders_to_ignore = [
    "__pycache__",
    ".git",
    ".idea",
    "venv",
]

# Generate the markdown representation of the folder structure
folder_structure_generator = FolderStructureGenerator(ignored_folders=folders_to_ignore)
folder_structure_md = folder_structure_generator.generate_folder_structure_md()

# Print the markdown representation of the folder structure
print(folder_structure_md)

This will generate a predefined directory tree in the current working directory. You can then copy and paste the generated structure into your project documentation or README file.

Expected Output

folder-structure-generator/
├── LICENSE
├── pyproject.toml
├── README.md
├── setup.py
├── .gitignore
├── folder_structure/
├── ├── __init__.py
├── ├── folder_structure_generator.py

Features

  • Automated generation of project directory structures
  • Saves time and effort when setting up new projects
  • Ensures consistency across projects
  • User-friendly interface for easy usage
  • Enhances project organization and collaboration

Contributing

Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue on the GitHub repository. We appreciate your feedback.