Skip to main content

This script is used to generate a list of the project structure in a markdown format. It is useful for README.md files.

Project description

Directory Structure Generator Script

Description

This script is used to generate a list of the project structure in a markdown format. It is useful for README.md files.

Usage

Files

  • generator.py : Python script to generate the project structure list
  • README.md : Markdown file to display the project structure list
  • Structures.md : Markdown file to display the project structure list
  • exclude.txt : Text file to exclude the files and folders from the project structure list

pre-execution

  • Update the exclude.txt file with the files and folders to exclude from the project structure list

Command

python3 generator.py --path <path> --language <language> --sort <sort>

Arguments

  • --path : Path to the project folder
  • --language : Language of the project. Default is plaintext
  • --sort : Sort the folders and files. Default is False

Example

python3 generator.py --path backend-python-training-feb-24 --language python --sort True

Output

frontend-training-mp-feb24 folder structure

๐Ÿ“ frontend-training-mp-feb24
โ”œโ”€โ”€โ”€๐Ÿ“„ App.js
โ”œโ”€โ”€โ”€๐Ÿ“„ AppStyles.js
โ”œโ”€โ”€โ”€๐Ÿ“„ README.md
โ”œโ”€โ”€โ”€๐Ÿ“„ app.json
โ”œโ”€โ”€โ”€๐Ÿ“ assets
โ”‚   โ”œโ”€โ”€โ”€๐Ÿ“„ Error_image.png
โ”‚   โ”œโ”€โ”€โ”€๐Ÿ“„ adaptive-icon.png
โ”‚   โ”œโ”€โ”€โ”€๐Ÿ“„ favicon.png
โ”‚   โ”œโ”€โ”€โ”€๐Ÿ“„ icon.png
โ”‚   โ””โ”€โ”€โ”€๐Ÿ“„ splash.png
โ”œโ”€โ”€โ”€๐Ÿ“„ babel.config.js
โ”œโ”€โ”€โ”€๐Ÿ“„ metrics.js
โ”œโ”€โ”€โ”€๐Ÿ“„ package-lock.json
โ”œโ”€โ”€โ”€๐Ÿ“„ package.json
โ”œโ”€โ”€โ”€๐Ÿ“ src
โ”‚   โ”œโ”€โ”€โ”€๐Ÿ“ components
โ”‚   โ”‚   โ”œโ”€โ”€โ”€๐Ÿ“ Card
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€โ”€๐Ÿ“„ Card.jsx
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€โ”€๐Ÿ“„ Counter.jsx
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€โ”€๐Ÿ“„ index.jsx
โ”‚   โ”‚   โ”œโ”€โ”€โ”€๐Ÿ“ Cart
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€โ”€๐Ÿ“„ CardProduct.jsx
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€โ”€๐Ÿ“„ CartProducts.jsx
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€โ”€๐Ÿ“„ CartSummary.jsx
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€โ”€๐Ÿ“„ index.jsx
โ”‚   โ”‚   โ”œโ”€โ”€โ”€๐Ÿ“ Error
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€โ”€๐Ÿ“„ Error.jsx
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€โ”€๐Ÿ“„ index.jsx
โ”‚   โ”‚   โ””โ”€โ”€โ”€๐Ÿ“„ index.jsx
โ”‚   โ”œโ”€โ”€โ”€๐Ÿ“ redux
โ”‚   โ”‚   โ”œโ”€โ”€โ”€๐Ÿ“„ cartSlice.jsx
โ”‚   โ”‚   โ”œโ”€โ”€โ”€๐Ÿ“„ index.jsx
โ”‚   โ”‚   โ””โ”€โ”€โ”€๐Ÿ“„ productSlice.jsx
โ”‚   โ”œโ”€โ”€โ”€๐Ÿ“ screens
โ”‚   โ”‚   โ”œโ”€โ”€โ”€๐Ÿ“ CartScreen
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€โ”€๐Ÿ“„ CartScreen.jsx
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€โ”€๐Ÿ“„ index.jsx
โ”‚   โ”‚   โ”œโ”€โ”€โ”€๐Ÿ“ HomeScreen
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€โ”€๐Ÿ“„ HomeScreen.jsx
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€โ”€๐Ÿ“„ index.jsx
โ”‚   โ”‚   โ””โ”€โ”€โ”€๐Ÿ“„ index.jsx
โ”‚   โ””โ”€โ”€โ”€๐Ÿ“ services
โ”‚   โ”‚   โ”œโ”€โ”€โ”€๐Ÿ“„ api.js
โ”‚   โ”‚   โ”œโ”€โ”€โ”€๐Ÿ“„ cartService.js
โ”‚   โ”‚   โ””โ”€โ”€โ”€๐Ÿ“„ productService.js
โ””โ”€โ”€โ”€๐Ÿ“„ yarn.lock

How to use the script

  1. Open the terminal
  2. Navigate to the folder where the script is located
  3. Run the script with the required arguments
  4. Copy the output and paste it in the README.md file
  5. Commit the changes
  6. Push the changes to the repository
  7. Check the README.md file in the repository
  8. The project structure will be displayed in the markdown format

How to get the script

  1. Clone the repository

    git clone git@github.com:7oSkaaa/directory_structure_generator.git
    
  2. Navigate to the folder where the script is located

  3. Run the script with the required arguments

  4. Copy the output and paste it in the README.md file

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

directory_structure_generator-1.0.1.tar.gz (6.0 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for directory_structure_generator-1.0.1.tar.gz
Algorithm Hash digest
SHA256 55d3b25448e16637ead6f7d0ffa2db77116e827357980ec8e2a4d5239b03eaa1
MD5 fc0ad48959b2020f61b17da6e49157b0
BLAKE2b-256 7812cea3b0b40ea3042b6230302aae026205744e220b31cbf934134ee8c918ca

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