Skip to main content

Eli - Your AI-powered Personal Coding Assistant

:warning: - You need a OpenAI auth token to make Eli work. You can find more here OpenAI

:package: - Check out Eli on PyPI (PIP)

Eli is a CLI-based Personal AI assistant that is powered by the GPT-3 / GPT-4 versions supported by MindsDB.

Installation

Make sure you have pip and python >= 3.6 installed on your machine and follow the steps.

1. Setup the package

Option A - Download from PyPI archive
pip install -U eli-pa
Option B - Download from GitHub archive
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.

2. Set the MINDSDB_EMAIL_ADDRESS environment variable

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, train your GPT model and replace your email with <EMAIL> in the following options.

> If you use the default bash shell
echo "export MINDSDB_EMAIL_ADDRESS=<EMAIL>" >> ~/.bashrc
> If you use ZSH
echo "export MINDSDB_EMAIL_ADDRESS=<EMAIL>" >> ~/.zshrc

:bulb:: Read the article for more information about training your MindsDB model.

3. Set your MindsDB account password

Now, it's time to set your account's password. Simply run eli with the --auth option and enter your MindsDB account password.

eli --auth

You're all set to go. :)

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

License

Eli is being licensed under the MIT License.

Metadata

Release files for eli-pa 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for eli-pa 1.0.1
File Size Uploaded
eli-pa-1.0.1.tar.gz 10.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for eli-pa 1.0.1
File Interpreter ABI Platform
eli_pa-1.0.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 19.9 kB

Release files / eli-pa-1.0.1.tar.gz

Download URL eli-pa-1.0.1.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ee9ca699959a4a9b11e1693e8ba4cb203ad2a5bd396527dff226b1ce29a41fe4
BLAKE2b-256 checksum
How to use checksums
3ad510f6db3758266515de6ee56f760c01f8baa8db05f81199bfbd53636f5420
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / eli_pa-1.0.1-py2.py3-none-any.whl

Download URL eli_pa-1.0.1-py2.py3-none-any.whl
Size 9.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
1d72dd33144a74e7d61b78cbefdae89abec94a867c8126c4dbaca79590836440
BLAKE2b-256 checksum
How to use checksums
e4d0a90cd140bfb5277d434710be3177aa43223a4fd6fa36740de6efdde51e10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page