Skip to content
Chris Mattmann edited this page Aug 24, 2026 · 2 revisions

Getting Started

Runtime: Python 3.10–3.13. CI on GitHub Actions covers that range. Packaging is pyproject.toml (setuptools). The libmagic shared library is required (python-magic is only the ctypes binding).

libmagic

man libmagic    # should exist after install

macOS (Homebrew):

brew install libmagic

Debian / Ubuntu:

sudo apt-get install libmagic1

Install ETLLib

git clone https://github.com/chrismattmann/etllib.git
cd etllib
python3 -m pip install -e .

That puts tsvtojson, repackage, poster, repackageandpost, translatejson, and similarity on your PATH. Check:

tsvtojson -h

translatejson needs hirlite, which often fails to build on current Python. It is an extra, not a required dependency:

python3 -m pip install -e ".[translate]"

For many-to-English at scale, use BigTranslate / Pantogloss instead. Tika (tika>=1.13) is a normal dependency.

Tests:

python3 -m pip install -e . --group=tests
python3 -m pytest

Next

Python 2.7, bootstrap.py, and buildout notes are under Old.

ETLLib Wiki

ETLLib — mung, then load.

Source and issues

Website

Start here

Old

Python 2.7, buildout, and bootstrap.py notes live under Old. Original URLs still resolve via stubs.

Clone this wiki locally