## Eli - Your AI-powered Personal Coding Assistant
> :warning: - You need a OpenAI auth token to make Eli work. You can find more here [OpenAI](https://openai.com/pricing)
> :package: - Check out <a href="">Eli on PyPI (PIP) </a>
Eli is a CLI-based Personal AI assistant that is powered by the GPT-3 / GPT-4 versions supported by [MindsDB](https://mindsdb.com).
### Installation
Make sure you have `pip` and `python >= 3.6` installed on your machine and follow the steps.
<details>
<summary><h4>1. Setup the package</h4></summary>
##### Option A - Download from PyPI archive
```sh
pip install -U eli-pa
```
##### Option B - Download from GitHub archive
```sh
pip install git+http://github.com/AvaterClasher/eli.git
```
> :warning:: Eli is POSIX-friendly. For it to properly work on Windows please run Eli through a Wsl instance.
</details>
<details>
<summary><h4>2. Set the <code>MINDSDB_EMAIL_ADDRESS</code> environment variable</h4></summary>
Once you got the package installed on your system, it's time to add the `MINDSDB_EMAIL_ADDRESS` environment variable. Create an account on [mindsdb.com](https://mindsdb.com/), train your GPT model and replace your email with `<EMAIL>` in the following options.
##### > If you use the default bash shell
```sh
echo "export MINDSDB_EMAIL_ADDRESS=<EMAIL>" >> ~/.bashrc
```
##### > If you use ZSH
```sh
echo "export MINDSDB_EMAIL_ADDRESS=<EMAIL>" >> ~/.zshrc
```
> :bulb:: Read the article for more information about training your MindsDB model.
</details>
<details>
<summary><h4>3. Set your MindsDB account password</h4></summary>
Now, it's time to set your account's password. Simply run `eli` with the `--auth` option and enter your MindsDB account password.
```sh
eli --auth
```
You're all set to go. :)
</details>
### Usage
Use `eli` followed by your question and it'll process the phrase and responses back the content in Markdown.
```
$ eli where is london located
London is the capital city of the United Kingdom and is located in the southeastern part of England, in the region known as Greater London.
It is situated along the River Thames and is one of the most populous and culturally significant cities in the world.
```
```
$ eli tell me a programming joke
Why do programmers prefer iOS development over Android development?
Because on iOS, you only have to deal with one "byte."
```
```
$ eli add annotations to this file: $(cat file.py)
To add annotations to the given Python function, you can include comments and
docstrings to provide more information about the function's purpose and usage.
Here's an example:
def factorial(n):
"""
Calculate the factorial of a non-negative integer.
"""
if n < 0:
raise ValueError("Factorial is not defined for negative numbers")
return 1 if n == 0 else n * factorial(n - 1)
# Example usage:
number = 5
result = factorial(number)
print(f"The factorial of {number} is {result}")
```
### Tech Stack
- Tools
- [Python](https://python.org)
- Infrastructures & Hosting
- [MindsDB](https://mindsdb.com)
- [PyPI](https://pypi.org)
### License
Hey is being licensed under the [MIT License](https://github.com/AvaterClasher/eli/blob/main/LICENSE).
Raw data
{
"_id": null,
"home_page": "https://github.com/AvaterClasher/eli",
"name": "eli-pa",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "eli",
"author": "Soumyadip Moni",
"author_email": "avater.clasher@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/bd/88/5c8dabb24b9167ec4c64a9db5aa82eb601e2d6daae3965ed49aa66adfa36/eli_pa-0.1.tar.gz",
"platform": null,
"description": "## Eli - Your AI-powered Personal Coding Assistant\n\n> :warning: - You need a OpenAI auth token to make Eli work. You can find more here [OpenAI](https://openai.com/pricing)\n\n> :package: - Check out <a href=\"\">Eli on PyPI (PIP) </a>\n\nEli is a CLI-based Personal AI assistant that is powered by the GPT-3 / GPT-4 versions supported by [MindsDB](https://mindsdb.com).\n\n### Installation\n\nMake sure you have `pip` and `python >= 3.6` installed on your machine and follow the steps.\n\n<details>\n <summary><h4>1. Setup the package</h4></summary>\n\n##### Option A - Download from PyPI archive\n\n```sh\npip install -U eli-pa\n```\n\n##### Option B - Download from GitHub archive\n\n```sh\npip install git+http://github.com/AvaterClasher/eli.git\n```\n\n> :warning:: Eli is POSIX-friendly. For it to properly work on Windows please run Eli through a Wsl instance.\n\n</details>\n\n<details>\n <summary><h4>2. Set the <code>MINDSDB_EMAIL_ADDRESS</code> environment variable</h4></summary>\n\nOnce you got the package installed on your system, it's time to add the `MINDSDB_EMAIL_ADDRESS` environment variable. Create an account on [mindsdb.com](https://mindsdb.com/), train your GPT model and replace your email with `<EMAIL>` in the following options.\n\n##### > If you use the default bash shell\n\n```sh\necho \"export MINDSDB_EMAIL_ADDRESS=<EMAIL>\" >> ~/.bashrc\n```\n\n##### > If you use ZSH\n\n```sh\necho \"export MINDSDB_EMAIL_ADDRESS=<EMAIL>\" >> ~/.zshrc\n```\n\n> :bulb:: Read the article for more information about training your MindsDB model.\n\n</details>\n\n<details>\n <summary><h4>3. Set your MindsDB account password</h4></summary>\n\nNow, it's time to set your account's password. Simply run `eli` with the `--auth` option and enter your MindsDB account password.\n\n```sh\neli --auth\n```\n\nYou're all set to go. :)\n\n</details>\n\n### Usage\n\nUse `eli` followed by your question and it'll process the phrase and responses back the content in Markdown.\n\n```\n$ eli where is london located\n\nLondon is the capital city of the United Kingdom and is located in the southeastern part of England, in the region known as Greater London.\nIt is situated along the River Thames and is one of the most populous and culturally significant cities in the world.\n```\n\n```\n$ eli tell me a programming joke\n\nWhy do programmers prefer iOS development over Android development?\nBecause on iOS, you only have to deal with one \"byte.\"\n```\n\n```\n$ eli add annotations to this file: $(cat file.py)\n\nTo add annotations to the given Python function, you can include comments and\ndocstrings to provide more information about the function's purpose and usage.\nHere's an example:\n\n def factorial(n):\n \"\"\"\n Calculate the factorial of a non-negative integer.\n \"\"\"\n if n < 0:\n raise ValueError(\"Factorial is not defined for negative numbers\")\n return 1 if n == 0 else n * factorial(n - 1)\n\n# Example usage:\nnumber = 5\nresult = factorial(number)\nprint(f\"The factorial of {number} is {result}\")\n\n```\n\n### Tech Stack\n- Tools\n - [Python](https://python.org)\n- Infrastructures & Hosting\n - [MindsDB](https://mindsdb.com)\n - [PyPI](https://pypi.org)\n\n### License\nHey is being licensed under the [MIT License](https://github.com/AvaterClasher/eli/blob/main/LICENSE).\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Your AI-powered pair personal assistant.",
"version": "0.1",
"project_urls": {
"Homepage": "https://github.com/AvaterClasher/eli"
},
"split_keywords": [
"eli"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "db5b370d66d11bf46154a598e0c9bbc19a642f2b909c894414b07b9dbf2606a5",
"md5": "663cac942dc780281c0536d9ea01f863",
"sha256": "8ac674d24ce1f9eeff5062bf0afa01d4a5352297f3afc17e73134f929234a341"
},
"downloads": -1,
"filename": "eli_pa-0.1-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "663cac942dc780281c0536d9ea01f863",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": ">=3.7",
"size": 9262,
"upload_time": "2023-10-28T14:02:35",
"upload_time_iso_8601": "2023-10-28T14:02:35.837721Z",
"url": "https://files.pythonhosted.org/packages/db/5b/370d66d11bf46154a598e0c9bbc19a642f2b909c894414b07b9dbf2606a5/eli_pa-0.1-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "bd885c8dabb24b9167ec4c64a9db5aa82eb601e2d6daae3965ed49aa66adfa36",
"md5": "c4d2ed5af0810cf69de4eabec3340b5c",
"sha256": "b5358233453bbaa12af442527b33e65850acac857d0781a179934d032ba3c5b5"
},
"downloads": -1,
"filename": "eli_pa-0.1.tar.gz",
"has_sig": false,
"md5_digest": "c4d2ed5af0810cf69de4eabec3340b5c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 10694,
"upload_time": "2023-10-28T14:02:37",
"upload_time_iso_8601": "2023-10-28T14:02:37.806401Z",
"url": "https://files.pythonhosted.org/packages/bd/88/5c8dabb24b9167ec4c64a9db5aa82eb601e2d6daae3965ed49aa66adfa36/eli_pa-0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-28 14:02:37",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "AvaterClasher",
"github_project": "eli",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "eli-pa"
}