This repository demonstrates a use case for the EasyTL Python package. EasyTL GitHub Repository
This repository contains examples of how to use EasyTL with the Gemini, OpenAI, Anthropic, and DeepL APIs. EasyTL also supports Google Translate and Microsoft Azure Translator, but these are not demonstrated here.
-
Clone the repository:
git clone https://github.com/Bikatr7/easytl-demo.git
-
Navigate to the project directory:
cd easytl-demo
-
Install the required packages:
pip install -r requirements.txt
-
Create the following API key files in the root directory (at least one is required):
gemini.txt
with your Google API keyopenai.txt
with your OpenAI API keyanthropic.txt
with your Anthropic API keydeepl.txt
with your DeepL API key
Pick an example from the examples
directory and run it. For example:
python examples/basic_gemini_example.py
In the root of examples/
, you will find generic basic examples for each API. You can use these as a starting point for what EasyTL can do. Some examples require specific APIs. See the Available Examples section for more information.
basic_gemini_example.py
- Demonstrates the basic functionality of EasyTL with the Gemini APIbasic_openai_example.py
- Demonstrates the basic functionality of EasyTL with the OpenAI APIbasic_anthropic_example.py
- Demonstrates the basic functionality of EasyTL with the Anthropic APIbasic_deepl_example.py
- Demonstrates the basic functionality of EasyTL with the DeepL API
json_gemini_example.py
- Demonstrates how to return a JSON response with EasyTL using the Gemini APIjson_openai_example.py
- Demonstrates how to return a JSON response with EasyTL using the OpenAI API
These examples are not intended to be actually ran, but rather to showcase how EasyTL can be used in production code.