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.

Download

  • You can simply:

    pip install directory-structure-generator 
    
  • Or you can clone the repository:

    git clone git@github.com:7oSkaaa/directory_structure_generator.git
    cd directory_structure_generator
    python -m directory_structure_generator --path <path> --language <language> --sort <sort>
    

Usage

Command

We have two ways to use the script:

  • First way:

    • Install the package using pip
    • Run the script with the required arguments
      python
      from directory_structure_generator import directory_structure_generator
      directory_structure_generator(path=<path>, exclude_dirs=[<dir_1>, <dir_2>, <dir_3>], language=<language>, sort=<sort>)
      
  • Second way:

    • Clone the repository
    • Change the directory to the repository
    • Run the script with the required arguments
      python -m directory_structure_generator --path <path> --exclude_dirs <dir_1> <dir_2> <dir_3> --language <language> --sort <sort>
      

Arguments

  • --path : Path to the project folder
  • --exclude_dirs : List of directories to exclude from the project structure. Default is []
  • --language : Language of the project. Default is plaintext
  • --sort : Sort the folders and files. Default is False

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

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

Uploaded Source

File details

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

File metadata

File hashes

Hashes for directory_structure_generator-1.0.4.tar.gz
Algorithm Hash digest
SHA256 3fd2afa5de5791fa6b5e3acfa54fc2b854e0a2c330c343e6ed594c73e8b9c171
MD5 a3f8df56cf70e1b632dabd655c7e406f
BLAKE2b-256 0133616f89478881e7219c965c8f8aeee1f361904222aefaf5d7cfa232cdbd93

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