Skip to content

Generate a beautiful README.md with automated code documentation, badges, file tree, and more! Powered by OpenAI's language model API ๐Ÿš€

License

Notifications You must be signed in to change notification settings

ZilvinasBS/README-AI

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

64 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation


README-AI

Automate README creation, code documentation, and more!

๐Ÿ”Œ Powered by OpenAI's language model API and the tools below.

Markdown OpenAI Python Pandas HTML5 Bash Anaconda


๐Ÿ“ฆ Table of Contents


๐Ÿ“ Introdcution

README-AI is a Python package that provides an automated way to generate a README.md file and document your codebase. This package leverages OpenAI's GPT Davinci model to translate a given codebase to natural language, producing a structured project README template that includes codebase metadata and documentation.

The project is still under development and is opinionated in its setup, but it can be used as a starting point for projects that require documentation. The current version of README-AI is limited to codebases written in Python.


๐Ÿ”ฎ Features

๐Ÿ‘‡

1. ๐Ÿค– Codebase Documentation

Have you met anyone who said they loved writing documentation? Thatโ€™s why we're building this project, hope you enjoy!

Codebase Documentation

This project leverages OpenAI's GPT Davinci
model to convert a given Python codebase into
natural language, producing a well-structured
project README template that includes codebase metadata, documentation
and other essential details.
header

๐Ÿ‘‡

โ’‰ ๐Ÿชช Badges

Visualize project dependencies and components in your README's header section with badges.



Profile Badges

Analyzes your project's dependencies and requirements, displaying them as badges
in the README's header section.
badges

๐Ÿ‘‡

โ’Š ๐ŸŒณ Project Tree

Why not a tree as well? Visualize your project's GitHub directories and files.


Project Tree

Creates a GitHub directory tree to display in your README.
tree

๐Ÿ‘‡

โ’‹ ๐Ÿ Environment YAML

Creates directory and file setup/environment.yaml if missing, and writes the README installion guide.



Environment YAML

Creates your project's environment yaml
file and generates an installation guide section for others can use your project easily!
badges


๐ŸŽ๐Ÿ’จ Getting Started

Prerequisites

Before you begin, ensure that you have the following prerequisites installed:

  • Python 3.6 or higher
  • Conda package manager (recommended)
  • Access to the OpenAI API (see OpenAI API Setup below)

GitHub Repository

Copy the url of your project's GitHub repository and update the code below in the conf/conf.toml file.

# GitHub
[github]
url = "<INSERT-GITHUB-REPO>"

OpenAI API Setup

To use README-AI, you will need an API key for OpenAI. Follow the steps below to create an API key:

User Guide
  1. Go to the OpenAI website.
  2. Click the "Sign up for free" button.
  3. Fill out the registration form with your information and agree to the terms of service.
  4. Once logged in, click on the "API" tab.
  5. Follow the instructions to create a new API key.
  6. Copy the API key and keep it in a secure place.

Installation

  1. Clone the README-AI repository:
git clone https://github.com/eli64s/README-AI.git && cd README-AI
  1. Create a new Conda environment and install the required dependencies:
conda env create -f setup/environment.yaml
conda activate README-AI
  1. Set up the OpenAI API key by creating an environment variable:
export OPENAI_API_KEY=<your-api-key>

Alternatively, you can set up the OpenAI API key in a .env file in the root directory of the project.

Running README-AI

Once you have installed README-AI, you can generate a README file for your codebase by running the following command:

python src/main.py

๐Ÿงฉ Roadmap

  • Add additional language models on top of GPT-3 to fine tune text.
  • Add compatability for additional languages. Rust next.
  • Extend capabilities beyond code documentation.
  • Implement different configuration file templates.

๐Ÿค Contributing

We welcome contributions to README-AI from the open-source community! If you would like to contribute, please see our contribution guidelines for more information.


๐Ÿ“„ License

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


๐Ÿ“ง Contact

If you have any questions or feedback about README-AI, please feel free to reach out. We would be happy to hear from you!


๐Ÿ™ Acknowledgments


About

Generate a beautiful README.md with automated code documentation, badges, file tree, and more! Powered by OpenAI's language model API ๐Ÿš€

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 94.3%
  • Makefile 4.1%
  • Shell 1.6%