Installation

Requirements

  • Python 3.8 or newer (pyproject.toml declares requires-python = ">=3.8").
  • pip (Python 3.8+ ships with it).

The package has no third-party runtime dependencies.

Install from source

git clone https://github.com/rkriad585/EMTranslator.git
cd EMTranslator
python -m pip install -e .

Editable install (-e) is recommended during development because code changes are picked up immediately. For a regular install, drop -e:

python -m pip install .

What gets installed

  • The emtrans console command (defined as emtrans = "emtranslator.cli:main" in pyproject.toml).
  • The emtranslator importable package.

If emtrans is not found after install, your Python user-scripts directory is probably not on PATH. Add it, or invoke the module directly:

python -m emtranslator "Hello world"

Running without installing

From the repository root the module can be run without installation as long as src is importable:

PYTHONPATH=src python -m emtranslator "Hello world"

(The exact PYTHONPATH syntax differs on Windows PowerShell: $env:PYTHONPATH="src".)

Verify

emtrans --version   # emtrans 0.1.0
python -m pytest    # run the test suite

See also

Back to README