lazydev


Namelazydev JSON
Version 0.1.3 PyPI version JSON
download
home_pagehttps://github.com/thecodacus/lazy-dev
SummaryAI developer for lazy programmer
upload_time2024-09-10 17:15:29
maintainerNone
docs_urlNone
authorAnirban Kat
requires_pythonNone
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # LazyDev: Automating Coding Projects

```
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.

## Features

- **Effortless project initialization**: Simply use the `lazydev develop -r "I want to develop a game"` command to kickstart the project generation process.
- **Interactive question-based approach**: LazyDev asks relevant questions to gather essential information before starting the coding process, ensuring that the generated project meets your specific requirements.
- **Complete project planning**: LazyDev plans the entire project structure based on the gathered information, setting up the necessary directories and files for you.
- **Automated code generation**: The module automatically generates the code based on the project plan, saving you time and effort.
- **Built-in testing functionality**: LazyDev even includes an automated testing phase to ensure that the generated code performs as expected.

## Installation

LazyDev requires Python 3.6 or above.
```shell
pip install lazydev
```
### setup environment 

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:

### Sample

```shell
lazydev develop --requirement REQUIREMENT
```

Replace `REQUIREMENT` 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.


### Flags
you can use the following flags :

*options:*

* `-h`, `--help`            show this help message and exit

* `--requirement REQUIREMENT`, `-r REQUIREMENT` # The initial requirement

* `--directory DIRECTORY`, `-d DIRECTORY` # The directory path to put generated files default is `./code`

* `--model MODEL`, `-m MODEL` # GPT Mode to use. options: gpt-3.5-turbo, gpt-3.5-turbo-16k, gpt-4. default: gpt-3.5-turbo-16k


## Example

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"
```

LazyDev will ask you questions like:

- What database system would you like to use?
- What features would you like to include in your web app?
- Are there any specific libraries or frameworks you want to use?

Based on your responses, LazyDev will generate the project structure, code templates, and even a basic test suite for your book library web app.

## Contributing

Contributions are welcome! If you encounter any issues, have ideas for new features, or want to improve the existing ones, feel free to open an issue or submit a pull request on the [GitHub repository](https://github.com//thecodacus/lazy-dev).

## License

This project is licensed under the Apache-2.0 License. See the [LICENSE](https://github.com/thecodacus/lazy-dev/blob/master/LICENSE) file for more details.

## Acknowledgements

LazyDev was inspired by the desire to automate the initial setup and coding process for various projects. The underlying GPT models used in this module were developed by OpenAI.

It is inspired by the project [smol-ai/developer](https://github.com/smol-ai/developer), and the principle `Build the thing that builds all the things`

## Contact

If you have any questions or suggestions, feel free to reach out to us at thecodacus@gmail.com.

Happy coding with LazyDev!

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/thecodacus/lazy-dev",
    "name": "lazydev",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Anirban Kat",
    "author_email": "thecodacus@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/a9/74/1d8737f64c8fafc85e3b021ad72becc430f08645f7f3cb7d4b67e094b3d2/lazydev-0.1.3.tar.gz",
    "platform": null,
    "description": "# LazyDev: Automating Coding Projects\n\n```\nLazyness is the mother of invention \ud83d\ude09\n```\n\nLazyDev 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.\n\n## Features\n\n- **Effortless project initialization**: Simply use the `lazydev develop -r \"I want to develop a game\"` command to kickstart the project generation process.\n- **Interactive question-based approach**: LazyDev asks relevant questions to gather essential information before starting the coding process, ensuring that the generated project meets your specific requirements.\n- **Complete project planning**: LazyDev plans the entire project structure based on the gathered information, setting up the necessary directories and files for you.\n- **Automated code generation**: The module automatically generates the code based on the project plan, saving you time and effort.\n- **Built-in testing functionality**: LazyDev even includes an automated testing phase to ensure that the generated code performs as expected.\n\n## Installation\n\nLazyDev requires Python 3.6 or above.\n```shell\npip install lazydev\n```\n### setup environment \n\nfirst setup your shell with openai api key in the environment. I would recommend  adding it to your ~/.bashrc\n```bash\necho 'export OPENAI_API_KEY=\"your_openai_key\"' >> ~/.bashrc && source ~/.bashrc\n```\n\n### for zsh users:\n```zsh\necho 'export OPENAI_API_KEY=\"your_openai_key\"' >> ~/.zshrc && source ~/.zshrc\n```\n\nReplace `your_openai_key` with your openai api key \n \n\n## Usage\n\nUsing LazyDev is as simple as running a single command. Once installed, you can initiate the project generation process by executing the following command:\n\n### Sample\n\n```shell\nlazydev develop --requirement REQUIREMENT\n```\n\nReplace `REQUIREMENT` 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.\n\nAfter 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.\n\n\n### Flags\nyou can use the following flags :\n\n*options:*\n\n* `-h`, `--help`            show this help message and exit\n\n* `--requirement REQUIREMENT`, `-r REQUIREMENT` # The initial requirement\n\n* `--directory DIRECTORY`, `-d DIRECTORY` # The directory path to put generated files default is `./code`\n\n* `--model MODEL`, `-m MODEL` # GPT Mode to use. options: gpt-3.5-turbo, gpt-3.5-turbo-16k, gpt-4. default: gpt-3.5-turbo-16k\n\n\n## Example\n\nLet'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:\n\n```shell\nlazydev develop -r \"Book Library Web App\"\n```\n\nLazyDev will ask you questions like:\n\n- What database system would you like to use?\n- What features would you like to include in your web app?\n- Are there any specific libraries or frameworks you want to use?\n\nBased on your responses, LazyDev will generate the project structure, code templates, and even a basic test suite for your book library web app.\n\n## Contributing\n\nContributions are welcome! If you encounter any issues, have ideas for new features, or want to improve the existing ones, feel free to open an issue or submit a pull request on the [GitHub repository](https://github.com//thecodacus/lazy-dev).\n\n## License\n\nThis project is licensed under the Apache-2.0 License. See the [LICENSE](https://github.com/thecodacus/lazy-dev/blob/master/LICENSE) file for more details.\n\n## Acknowledgements\n\nLazyDev was inspired by the desire to automate the initial setup and coding process for various projects. The underlying GPT models used in this module were developed by OpenAI.\n\nIt is inspired by the project [smol-ai/developer](https://github.com/smol-ai/developer), and the principle `Build the thing that builds all the things`\n\n## Contact\n\nIf you have any questions or suggestions, feel free to reach out to us at thecodacus@gmail.com.\n\nHappy coding with LazyDev!\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "AI developer for lazy programmer",
    "version": "0.1.3",
    "project_urls": {
        "Homepage": "https://github.com/thecodacus/lazy-dev"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0e2a124228b25622e5c081055e1dbd04cf0e26f5c82a97d18672b05a23eb8865",
                "md5": "96db0c33edd10df404e32a2b78fd40d2",
                "sha256": "074287794f8210a9e75e703de80ab36ac5621655d5ee5c58e4f57efdabc3c2fb"
            },
            "downloads": -1,
            "filename": "lazydev-0.1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "96db0c33edd10df404e32a2b78fd40d2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 14153,
            "upload_time": "2024-09-10T17:15:27",
            "upload_time_iso_8601": "2024-09-10T17:15:27.553161Z",
            "url": "https://files.pythonhosted.org/packages/0e/2a/124228b25622e5c081055e1dbd04cf0e26f5c82a97d18672b05a23eb8865/lazydev-0.1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a9741d8737f64c8fafc85e3b021ad72becc430f08645f7f3cb7d4b67e094b3d2",
                "md5": "8acff4eed5644700f02a474820e78e28",
                "sha256": "e25d5475b60d450149a49012a8c1b611be2bd401b1f31e8add2070db44b50f7c"
            },
            "downloads": -1,
            "filename": "lazydev-0.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "8acff4eed5644700f02a474820e78e28",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 14861,
            "upload_time": "2024-09-10T17:15:29",
            "upload_time_iso_8601": "2024-09-10T17:15:29.930702Z",
            "url": "https://files.pythonhosted.org/packages/a9/74/1d8737f64c8fafc85e3b021ad72becc430f08645f7f3cb7d4b67e094b3d2/lazydev-0.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-10 17:15:29",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "thecodacus",
    "github_project": "lazy-dev",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "lazydev"
}
        
Elapsed time: 0.33518s