Copyright (c) 2025-2026 Eduardo Correia ecorreia@apliant.com.br
- Getting it running
- Connecting to an API
- Your first request
- Running the tests
- Building the Windows executable
- A daily routine
E-Tutor is a desktop Tkinter application. You need Python 3.8 or newer. The helper scripts create an OS-specific virtual environment on first run, install the requirements, and start the app; they work from any folder. This lets Windows, Linux, and macOS share a checkout without reusing an incompatible environment.
git clone https://github.com/99ecarvalho/e-tutor.git
cd e-tutorWindows (PowerShell):
.\run.ps1Linux/Mac:
./run.shThe scripts use .venv-windows, .venv-linux, or .venv-macos. On Windows,
the environment is created with the newest Python known to the py launcher.
On Linux, the keyboard library needs root to register the global hotkey;
without it, the app still works through the window.
Manual setup, if you prefer:
python -m venv .venv-windows # Windows
.venv-windows\Scripts\python -m pip install -r requirements.txt
.venv-windows\Scripts\python e-tutor.py
python3 -m venv .venv-linux # Linux
.venv-linux/bin/python -m pip install -r requirements.txt
.venv-linux/bin/python e-tutor.py
python3 -m venv .venv-macos # macOS
.venv-macos/bin/python -m pip install -r requirements.txt
.venv-macos/bin/python e-tutor.pyE-Tutor works with OpenAI, Azure AI Foundry / Azure OpenAI, or any
OpenAI-compatible server. Open Options > API Key & Endpoint in the app, or
create a .env file next to e-tutor.py:
# Required: the key for OpenAI or for your custom endpoint
OPENAI_API_KEY=sk-...
# Optional: any OpenAI-compatible endpoint. Leave out for api.openai.com.
# Azure AI Foundry / Azure OpenAI (v1 API):
# OPENAI_BASE_URL=https://<resource>.openai.azure.com/openai/v1/
# Optional: only for the classic Azure deployments API.
# AZURE_OPENAI_API_VERSION=2024-10-21Values in .env take priority over environment variables of the same name. On
Azure, requests use your deployment name as the model; add it with
Options > Select Model > Add Custom Model / Azure Deployment.
- Pick a preset (start with
Daily coach) and a Situation such as a meeting, Slack/Teams, email, or a job interview. - Type your English draft in the box and press Enter (Shift+Enter adds a new line), or copy text anywhere and press Ctrl+Shift+R.
- Read the Corrected line first, then the Grammar notes and the rewrite versions.
- Click
Copy first rewrite, or double-click the version you want. - Click Save beside anything worth keeping, then open the Review notebook later to practice it.
.venv-windows\Scripts\python -m unittest -v test_coaching test_memory # Windows
.venv-linux/bin/python -m unittest -v test_coaching test_memory # Linux
.venv-macos/bin/python -m unittest -v test_coaching test_memory # macOSThe tests cover response validation, teaching controls, review persistence and scheduling, spreadsheet exports, history logging, and backward-compatible replay. They do not call a live API or change your real preferences or notebook.
.\build.ps1This installs PyInstaller into .venv-windows and produces output\e-tutor.exe
(git-ignored). Python 3.10.0 can't be used because of a bug that crashes
PyInstaller. To use a custom icon, put an icon.ico in the project folder.
- Select Daily coach and Random mix, and choose the real situation.
- Send your draft; read the correction and compare the Native and Executive versions.
- Read the short lesson and optional Quote; click Source or Save.
- Open the Review notebook for a few minutes each morning: explain each expression and use it in a new sentence before revealing its meaning.
- Use Deep dive when you have time, or Rewrites only during a busy meeting. Use the Interview preset for concise, evidence-based answers.
See README.md for the full feature list.