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.txtfile 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 isplaintext--sort: Sort the folders and files. Default isFalse
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
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file directory_structure_generator-1.0.2.tar.gz.
File metadata
- Download URL: directory_structure_generator-1.0.2.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 |
8677c87b77da5ee9f90e7c5033078554850df6493000175119036d3caeee622b
|
|
| MD5 |
0451f06b07f28a62524b80455801540f
|
|
| BLAKE2b-256 |
388ce5eeda347e9d1b8e39022b3f21de1be73cb11595f749350876c572823d21
|
File details
Details for the file directory_structure_generator-1.0.2-py3-none-any.whl.
File metadata
- Download URL: directory_structure_generator-1.0.2-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6b57037ffed34f6e6b6c2e262c2c97f62a18f02df9ce4f6a6aee06c1991992e
|
|
| MD5 |
78090480805dfa5e19d1240b4a321a65
|
|
| BLAKE2b-256 |
b52c4f8b0e4fa90a34a9efdc7a35dfe84e828a9c42b4ad5991e0fc2b1b27d041
|