Installation¶
Requirements¶
- Python ≥ 3.14
- pip or uv package manager
Install from Source¶
Currently, graphemes++ is installed from source via Git clone:
Using uv (recommended)
Using pip
Why uv? uv is a fast Python package manager written in Rust. It's significantly faster than pip and handles virtual environments automatically.
Dependencies¶
graphemes++ depends on the following packages (installed automatically):
| Package | Version | Purpose |
|---|---|---|
grapheme |
≥ 0.6.0 | Base Unicode grapheme clustering |
textdistance |
≥ 4.6.3 | Levenshtein & Hamming distance algorithms |
sacrebleu |
≥ 2.0.0 | chrF/chrF++ metric base class |
Verify Installation¶
After installation, verify everything works:
>>> from graphemes_plusplus import Graphemizer
>>> g = Graphemizer("வணக்கம்")
>>> g.graphemes
['வ', 'ண', 'க்', 'க', 'ம்']
Ready to go! If you see the grapheme list output without errors, the installation is complete. Head to the Quick Start guide next.