Giter Club home page Giter Club logo

readmegpt's Introduction

ReadmeGPT

ReadmeGPT is a toy project that uses ChatGPT to create README files for software projects.

Prerequisites

  • Python3.8+
  • An OpenAI API key

Usage

  1. Get ReadmeGPT:
git clone https://github.com/ardabbour/ReadmeGPT.git
  1. Clone the project you want to generate a README of to a folder called "project":
cd $PATH_TO_READMEGPT
git clone $MY_PROJECT_GIT_ADDRESS $PATH_TO_READMEGPT/project
  1. Edit the constants in main.py

    • Pay attention to the ALLOW_LIST constant. Only files (or file extentions) defined in it will be considered by ReadmeGPT.
    • Make sure you use an appropriate model to do the job.
  2. Run ReadmeGPT:

./main.py # or python3 main.py

The above code snippets will read the contents of the project, and prompt a GPT model to create a README for it. Both the prompt and the model's response will be saved to disk.

The README generated is almost never 100% ready for usage, but is a fantastic starting point.

Further Usage

You can modify the preprompt.md file to your liking if you want to adapt to a different template.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

readmegpt's People

Contributors

ardabbour avatar

Stargazers

Toygar Tanyel avatar Colin Mason avatar Cevdet Ayaz avatar mustafa can nacak avatar

Watchers

 avatar  avatar

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.