From 23467d318e51989259616260d4b1947c81a168e0 Mon Sep 17 00:00:00 2001 From: Anirban Kar Date: Sat, 3 Jun 2023 01:06:26 +0530 Subject: [PATCH] Update README.md --- README.md | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 84d9356..1f50e21 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ -# LazyDev: Automated Coding Project +# LazyDev: Automating Coding Projects -`Lazyness is the mother of invention` +``` +Lazyness is the mother of invention 😉 +``` LazyDev is a Python module that utilizes GPT models to create entire coding projects for you. With just a few simple commands, LazyDev can generate a project file tree, write the necessary code, and even test the project for you. Say goodbye to the hassle of setting up projects from scratch and let LazyDev do the heavy lifting for you. @@ -14,21 +16,34 @@ LazyDev is a Python module that utilizes GPT models to create entire coding proj ## Installation -``` +LazyDev requires Python 3.6 or above. +```shell pip install lazydev ``` +### setup environment -LazyDev requires Python 3.6 or above. +first setup your shell with openai api key in the environment. I would recommend adding it to your ~/.bashrc +```bash +echo 'export OPENAI_API_KEY="your_openai_key"' >> ~/.bashrc && source ~/.bashrc +``` + +### for zsh users: +```zsh +echo 'export OPENAI_API_KEY="your_openai_key"' >> ~/.zshrc && source ~/.zshrc +``` + +Replace `your_openai_key` with your openai api key + ## Usage Using LazyDev is as simple as running a single command. Once installed, you can initiate the project generation process by executing the following command: -``` -lazydev develop -r +```shell +lazydev develop -r "what ever you want to do" ``` -Replace `` with a brief description of your project's purpose or objective. LazyDev will then prompt you with a series of questions to gather the necessary information for project generation. +Replace `what ever you want to do` with a brief description of your project's purpose or objective. LazyDev will then prompt you with a series of questions to gather the necessary information for project generation. After answering the questions, LazyDev will proceed to plan the project structure, create the appropriate file tree, generate the required code files, and even run tests to verify the functionality. @@ -36,7 +51,7 @@ After answering the questions, LazyDev will proceed to plan the project structur Let's say you want to create a Python web application for managing a book library. You can use LazyDev to automate the project setup. Here's an example command: -``` +```shell lazydev develop -r "Book Library Web App" ```