Giter Site home page Giter Site logo

codescribe's Introduction

CodeScribe

CodeScribe is an automated tool that generates beginner-friendly, professional multiline comments to accompany code without making any changes to the code itself. It simplifies the process of documenting code by providing descriptive comments based on the code's functionality.

Features

  • Generate descriptive comments for code files in a specified folder.
  • Supports various programming languages.
  • Beginner-friendly and professional comment generation.
  • Does not modify the code files.

Getting Started

Prerequisites

  • Python 3.7 or higher
  • OpenAI API key

Installation

  1. Clone the repository:

    git clone https://github.com/TheZenithCo/CodeScribe.git
    

Usage

  1. Provide your OpenAI API key in the config.py file.

  2. Run the CodeScriber.py script with the path to the code folder as a command-line argument:

    python CodeScribe.py /path/to/code_folder
    

    Replace /path/to/code_folder with the actual path to the folder containing your code files.

  3. Select the file number to display the code.

  4. CodeScribe will generate descriptive comments for the displayed code file and print them to the console.

  5. You can copy and paste the generated comments into the corresponding code files as needed.

Contributing

Contributions to CodeScribe are welcome! If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.

Before contributing, please review the contribution guidelines.

License

CodeScribe is licensed under the MIT License.

Acknowledgments

  • The CodeScribe project was inspired by the need to simplify and automate code documentation.
  • Thanks to the OpenAI team for providing the powerful text generation capabilities used in this project.

Contact

For any inquiries or questions, please reach out to [email protected].

Enjoy using CodeScribe!

codescribe's People

Contributors

0xadiyat avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

0xadiyat

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.