EDSL is an open-source Python library. It is compatible with Python 3.9 - 3.12 and available at PyPI and GitHub.
NoteEDSL is in development. We recommend that you continually check for and install the latest version of EDSL to access the most recent features and bug fixes.
Please ensure that Python is installed on your system before you install EDSL. You can download Python from the official website.You can use pip to install EDSL on your system (a package installer for Python).
Open your terminal and verify that you have not previously installed EDSL by running the following command:
Copy
Ask AI
pip show edsl
If EDSL is already installed, you will see the following output, including the actual version number:
Copy
Ask AI
Name: edslVersion: 1.0.###...
If EDSL is not installed (WARNING: Package(s) not found: edsl), you can run either of the following commands to install the latest version using pip:
Copy
Ask AI
pip install edsl
Or:
Copy
Ask AI
! uv pip install edsl -q
Then get your API key from Expected Parrot and import dependencies:
Copy
Ask AI
from edsl import loginlogin()
This will prompt you to log into your Expected Parrot account and automatically retrieve your API key. See the Managing Keys section for more details on managing your API keys for language models.
This allows you to pull the latest changes from the repository (which may not be in the latest version available at PyPI) and install them on your system.
To confirm that your version is up to date, compare your version number with the latest version on the EDSL PyPI page.To update your EDSL version to the latest one:
The steps above will install EDSL globally on your system. Sometimes, you may face problems with conflicts between EDSL and other libraries. To avoid such problems, we recommend that you use a virtual environment.To create a virtual environment, open your terminal and run the following command:
Copy
Ask AI
python -m venv myenv
This will create a folder called myenv. Next, activate your virtual environment:
Copy
Ask AI
source myenv/bin/activate
You can now install EDSL through pip within your virtual environment:
Copy
Ask AI
pip install edsl
Or:
Copy
Ask AI
! uv pip install edsl -q
You will have access to EDSL while your virtual environment is activated.You can deactivate the virtual environment at any time by running:
Copy
Ask AI
deactivate
To delete the virtual environment, simply delete the myenv folder.