Installation
pretab supports Python 3.10 to 3.13.
From PyPI
pip install pretab
Optional extras
Language-embedding features depend on
sentence-transformers. Install them with the embeddings
extra (or the convenience all extra):
pip install "pretab[embeddings]"
Note
The embeddings extra installs sentence-transformers and its deep-learning
dependencies (including PyTorch), so it is a sizeable download. Add it only if you plan
to use the pretrained categorical strategy.
From source
pretab uses Poetry for dependency management and just as a command runner.
git clone https://github.com/OpenTabular/PreTab
cd PreTab
just install
Without just, run the equivalent steps directly:
poetry install
poetry run pre-commit install --hook-type commit-msg --hook-type pre-commit --hook-type pre-push
To work on the documentation, also install the docs group:
poetry install --with docs
Verify the installation
import pretab
print(pretab.__version__)