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

pre-execution

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

Command

python -m directory_structure_generator --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

python -m directory_structure_generator --path 'Users/ahmed_hossam/Codes' --language 'python' --sort 'True'

Output Example

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.2.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

directory_structure_generator-1.0.2-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for directory_structure_generator-1.0.2.tar.gz
Algorithm Hash digest
SHA256 8677c87b77da5ee9f90e7c5033078554850df6493000175119036d3caeee622b
MD5 0451f06b07f28a62524b80455801540f
BLAKE2b-256 388ce5eeda347e9d1b8e39022b3f21de1be73cb11595f749350876c572823d21

See more details on using hashes here.

File details

Details for the file directory_structure_generator-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for directory_structure_generator-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f6b57037ffed34f6e6b6c2e262c2c97f62a18f02df9ce4f6a6aee06c1991992e
MD5 78090480805dfa5e19d1240b4a321a65
BLAKE2b-256 b52c4f8b0e4fa90a34a9efdc7a35dfe84e828a9c42b4ad5991e0fc2b1b27d041

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