Skip to main content

A tool to automatically generate a README.md and suggest code improvements for any python code repository

Project description

GPT4Readability

License Badge Issues Badge Pull Requests Badge Contributors Badge contributions welcome

GPT4Readability is a powerful tool designed to automatically generate a README.md file and suggest code improvements for any Python code repository. It leverages advanced AI capabilities to analyze and interpret the codebase, providing comprehensive and accurate documentation. Other than this sentence this readme file and this suggestions file was generated by GPT4Readability using gpt-3.5-turbo.

Main Functionalities

  • Automatic generation of README.md file for Python codebases
  • Suggestions for code improvements
  • Integration with GPT-3.5 Turbo and GPT-4 models for enhanced analysis

Installation

To install GPT4Readability, follow these steps:

  1. Clone the repository:

    git clone https://github.com/loevlie/GPT4Readability.git
    
  2. Navigate to the project directory:

    cd GPT4Readability
    
  3. Install the required dependencies:

    pip install -e .
    

Dependencies

GPT4Readability requires the following dependencies:

  • langchain
  • openai
  • faiss-cpu
  • tiktoken
  • click
  • tqdm

Usage

GPT4Readability provides two main functionalities: generating a README.md file and suggesting code improvements. You can choose to use either of these functions or both.

To generate a README.md file, use the following command:

gpt4readability <path> --function readme --output_readme <output_name> --model <model>

Replace <path> with the root directory of the Python package you want to parse and generate a README for. <output_name> should be the desired filename for the generated README.md file. <model> specifies the model to use, either "gpt-3.5-turbo" or "gpt-4".

To suggest code improvements, use the following command:

gpt4readability <path> --function suggestions --output_suggestions <output_name> --model <model>

Replace <path> with the root directory of the Python package you want to analyze and suggest improvements for. <output_name> should be the desired filename for the generated suggestions.md file. <model> specifies the model to use, either "gpt-3.5-turbo" or "gpt-4".

Authors

GPT4Readability is developed and maintained by Dennis Johan Loevlie. For any inquiries or support, please contact Dennis Johan Loevlie at loevliedenny@gmail.com.

Contributing

Contributions to GPT4Readability are welcome! If you encounter any issues or have suggestions for improvements, please report them on the GitHub Issues page.

Support

For support or assistance with GPT4Readability, please reach out to Dennis Johan Loevlie at loevliedenny@gmail.com.

License

GPT4Readability is licensed under the MIT License. Feel free to use, modify, and distribute this codebase as per the terms of the license.

Acknowledgements

We would like to express our gratitude to the developers and contributors of the dependencies used in this project. Their hard work and dedication have made GPT4Readability possible.

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

GPT4Readability-0.0.2.tar.gz (9.6 kB view hashes)

Uploaded Source

Built Distribution

GPT4Readability-0.0.2-py3-none-any.whl (12.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page