pycld3
CLD3 Python bindings
Decision gist · record as of 2026-08-14
No, not recommended for new projects. The package is archived and unmaintained since 2021-03-09, with no updates for modern Python versions. The description itself recommends an alternative official package as a better choice. Install friction is also medium on non-wheel platforms. Consider the recommended alternative instead unless you have a specific reason to stay on this package.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- On non-wheel platforms (Alpine, i686, Windows), you must install Protobuf compiler (protoc), libprotobuf development headers, and a C++ compiler before pip install will succeed.
- Medium install friction: wheels are available for CPython 3.6–3.9 on macOS and manylinux1, but source installation requires the Protobuf compiler, development headers, and a C++ compiler.
- The package is archived and unmaintained since 2021.
License · maintenance · safety
Apache 2.0 (permissive) — Licensed under Apache 2.0 (permissive), so you can use it freely in commercial and private projects with minimal restrictions.
last release 2021-03-09 (1984 days) · last repo commit 2026-04-19 · 154 stars · archived
0 known vulnerabilities (OSV.dev, 2026-08-14) · 90,041 downloads/mo, #13,620 on PyPI
Alternatives
Verify before relying
pip install -U pycld3
import cld3
result = cld3.get_language("This is a test")
print(result.language, result.probability)- Whether the package works reliably with Python versions beyond 3.9, given the last release was 2021-03-09.
- Current compatibility with modern Protobuf versions, given the long maintenance gap since 2021.
- Whether an alternative official package would be a drop-in replacement or requires code changes.
What it is and what it does
pycld3 is a Python wrapper around Google's CLD3 C++ library for language detection. It exports two main functions: get_language() to detect the primary language of a text sample, and get_frequent_languages() to identify multiple languages within mixed-language text. Both return language predictions as BCP-47 codes with confidence scores and reliability flags.
The package supports over 100 languages and scripts, with some languages differentiated by script. It has no Python runtime dependencies but requires Protobuf headers and a C++ compiler for source builds. Wheels are provided for CPython 3.6–3.9 on macOS and manylinux1, eliminating the need for external dependencies on those platforms. However, the project is archived and has not been updated since 2021-03-09.
Use it for
- Automatically categorize user-generated content by language for routing to language-specific pipelines or moderation teams.
- Preprocess multilingual datasets by detecting and filtering text by language before feeding to downstream models.
- Identify the language of short social media posts or comments to enable language-aware sentiment analysis.
- Build a language-aware search index by detecting the language of documents at indexing time.
- Detect language switches within a single text sample to handle code-mixed or multilingual user input.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No, not recommended for new projects.
The package is archived and unmaintained since 2021-03-09, with no updates for modern Python versions. The description itself recommends an alternative official package as a better choice. Install friction is also medium on non-wheel platforms. Consider the recommended alternative instead unless you have a specific reason to stay on this package.
Install
pycld3 on PyPI
Before you install
Medium install friction: wheels are available for CPython 3.6–3.9 on macOS and manylinux1, but source installation requires the Protobuf compiler, development headers, and a C++ compiler. The package is archived and unmaintained since 2021.
On non-wheel platforms (Alpine, i686, Windows), you must install Protobuf compiler (protoc), libprotobuf development headers, and a C++ compiler before pip install will succeed.
License in practice
Licensed under Apache 2.0 (permissive), so you can use it freely in commercial and private projects with minimal restrictions.
Quickstart
pip install -U pycld3
import cld3
result = cld3.get_language("This is a test")
print(result.language, result.probability)
Verify before relying
- Whether the package works reliably with Python versions beyond 3.9, given the last release was 2021-03-09.
- Current compatibility with modern Protobuf versions, given the long maintenance gap since 2021.
- Whether an alternative official package would be a drop-in replacement or requires code changes.
Package facts
| License | Apache 2.0 permissive |
| Python support | Supports the current Python release >2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.* |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 1,984 days since the last release |
| Last repo commit | repository archived |
| First released | |
| Downloads | 90,041 / month, #13,620 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: C++Programming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonTopic :: Text Processing :: Linguistic |
Evidence: pycld3-0.22-cp36-cp36m-macosx_10_14_x86_64.whl; pycld3-0.22-cp36-cp36m-manylinux1_x86_64.whl; pycld3-0.22-cp37-cp37m-macosx_10_14_x86_64.whl; pycld3-0.22-cp37-cp37m-manylinux1_x86_64.whl; pycld3-0.22-cp38-cp38-macosx_10_14_x86_64.whl; pycld3-0.22-cp38-cp38-manylinux1_x86_64.whl; pycld3-0.22-cp39-cp39-macosx_10_14_x86_64.whl; pycld3-0.22-cp39-cp39-manylinux1_x86_64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “identify text language”
- pycld3Detects the language of text using Google's Compact Language Detector…
- langdetectDetects the language of text input, supporting 55 languages and…
- lingua-language-detectorDetects which language a text is written in, supporting 75 languages…
Give your agent the search over MCP, or paste the wish link into any chat.
More Linguistic packages
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
tiktoken is a fast BPE tokenizer that converts text into token sequences compatible with OpenAI models, supporting multiple encoding schemes including o200k_base and model-specific encodings.
Install it if you work with OpenAI APIs or need to understand token boundaries in GPT-family models.
Detects character encoding and language in byte sequences with high accuracy, supporting 99 encodings and returning confidence scores, language tags, and MIME types.
Install it if you need to detect character encoding or language in byte data; the rewrite makes it substantially faster and more accurate than its predecessors.
Converts Unicode text to ASCII by transliterating non-ASCII characters into their closest ASCII equivalents, with no runtime dependencies.
However, if transliteration quality or ongoing maintenance matters, consider unidecode instead despite its GPL-only license.
Lark is a parsing library that builds abstract syntax trees from context-free grammars, supporting multiple parsing algorithms (Earley, LALR(1), CYK) with automatic line and column tracking.
Python bindings to the tree-sitter parsing library, enabling incremental parsing and syntax tree analysis for source code.
See also cld3-py · pycld2 · gcld3 · py3langid · langid · lingua-language-detector · langdetect · google-re2 · pycln · pybind11-global