Important: pycld3 is archived and unmaintained
master⚠️ Warning: This project is archived as of 2026. It will receive no further releases, bug fixes, or security updates.
Key Limitations:
- Python Version: The last released version (
0.22) does not build on Python 3.10 or newer without patches (due to changes inlongintrepr.hin CPython 3.11). - Protobuf Dependency: The library links against
libprotobuf. Upgradingprotobufon your system can breakimport cld3due to ABI instability. - Windows: From-source installs on Windows are known to fail due to protobuf include path issues.
Recommended Alternatives:
gcld3: Google's official Python bindings usingpybind11(closest drop-in replacement).lingua-language-detector: Pure-Python, highly accurate for short text.fasttext: High-performance, widely used in production.pycld2: Bindings to the older CLD2 (no protobuf dependency).