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 listREADME.md: Markdown file to display the project structure listStructures.md: Markdown file to display the project structure listexclude.txt: Text file to exclude the files and folders from the project structure list
pre-execution
- Update the
exclude.txtfile 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 isplaintext--sort: Sort the folders and files. Default isFalse
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
- Open the terminal
- Navigate to the folder where the script is located
- Run the script with the required arguments
- Copy the output and paste it in the README.md file
- Commit the changes
- Push the changes to the repository
- Check the README.md file in the repository
- The project structure will be displayed in the markdown format
How to get the script
-
Clone the repository
git clone git@github.com:7oSkaaa/directory_structure_generator.git
-
Navigate to the folder where the script is located
-
Run the script with the required arguments
-
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
File details
Details for the file directory_structure_generator-1.0.1.tar.gz.
File metadata
- Download URL: directory_structure_generator-1.0.1.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55d3b25448e16637ead6f7d0ffa2db77116e827357980ec8e2a4d5239b03eaa1
|
|
| MD5 |
fc0ad48959b2020f61b17da6e49157b0
|
|
| BLAKE2b-256 |
7812cea3b0b40ea3042b6230302aae026205744e220b31cbf934134ee8c918ca
|