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:
    • 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>
      
  • Second 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>)
      

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

Uploaded Source

File details

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

File metadata

File hashes

Hashes for directory_structure_generator-1.0.3.tar.gz
Algorithm Hash digest
SHA256 aa6a4f0d01a2ea6d5a4f06f2de2f2ca1ef19055ed0feb185d48db847b41aaf06
MD5 7046f636b67b5088850b56eba88a40d3
BLAKE2b-256 f5efce4a9c6af5b19600f8789aeeaf4766829908f242a071324776f4cf255567

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