Skip to content

MSotoudeh/Code-Organizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code-Organizer

This project parses a single input file containing multiple code snippets, each associated with specific file paths, and organizes them into a well-structured directory tree.

Code Organizer

Features

  • Automated Directory Creation: Automatically creates directories and files based on specified paths.

Getting Started

Follow these steps to get your Code Organizer up and running:

Prerequisites

  • Python 3.x
  • Git

Installation

  1. Clone the Repository

    git clone https://github.com/MSotoudeh/code-organizer.git
    cd code-organizer
  2. Install Dependencies

    No external dependencies required.

Usage

  1. Prepare Your Input File

    Edit the data/input_code.txt file to include your code snippets and their respective paths. Example:

    /project/src/app/main.py
    import os
    
    def main():
        print("Main function in main.py")
    
    if __name__ == "__main__":
        main()
    /project/src/app/utils/helpers.py
    def greet(name):
        return f"Hello, {name}!"
    
    def farewell(name):
        return f"Goodbye, {name}."
    
  2. Run the Organizer

    Execute the main.py script to organize your code:

    python main.py

    This will create the necessary directories and files, organizing your code as specified in data/input_code.txt.

Example Output

After running the script, your repository structure will look like this:

output_repo/
├── project/
│ ├── src/
│ │ └── app/
│ │ ├── main.py
│ │ └── utils/
│ │ └── helpers.py
│ ├── tests/
│ │ └── test_helpers.py
│ └── README.md

Contributing

We welcome contributions! If you have suggestions for improvements or new features, feel free to create an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For any inquiries, please reach out to:


Thank you for using Code Organizer! Happy coding!

Code Organizer

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages