Installation
pygarble requires Python 3.8 or later and has no runtime dependencies. Its bundled character models and dictionary require no inference-time downloads.
Published package
python -m pip install pygarble
python -m pip show pygarble
These docs describe the upcoming 0.9.0 API, which is not yet published to PyPI. The command above installs the latest published version; use the source installation below for the profiles, explanations, and new strategies shown in these docs.
Install the upcoming API
With Git installed:
python -m pip install "pygarble @ git+https://github.com/brightertiger/pygarble.git@main"
Replace main with a reviewed commit SHA to pin a reproducible installation.
For an editable checkout:
git clone https://github.com/brightertiger/pygarble.git
cd pygarble
python -m pip install -e .
Verify installation
import pygarble
from pygarble import EnsembleDetector
print(pygarble.__version__)
detector = EnsembleDetector()
assert detector.predict("Hello world") is False
assert detector.predict("asdfghjkl") is True
Development tools
The dev extra installs test, formatting, lint, and typing tools. Documentation
build dependencies are included in requirements-dev.txt in the repository.
Neither is required to use the package.
python -m pip install -e ".[dev]"
python -m pip install -r requirements-dev.txt
See Quick start for usage and Upgrading to 0.9.0 when upgrading.