cld3-py
Compact Language Detector v3 (CLD3) Python bindings — modernised fork with prebuilt wheels for Python 3.10–3.14.
Decision gist · record as of 2026-08-14
Yes, if you need reliable language detection without external API calls or heavy dependencies. The prebuilt wheels make installation straightforward on common platforms, the Apache License is permissive, and active maintenance ensures compatibility with current Python versions. Medium install friction is acceptable for a compiled model. Verify accuracy on your specific text types before production use.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Medium install friction due to compiled C++ bindings, but prebuilt wheels are available for Python 3.10, 3.11, 3.12, 3.13, 3.14 across macOS (Intel and ARM), Linux (manylinux and musllinux), and Windows.
- Active maintenance with recent releases.
License · maintenance · safety
permissive license (permissive) — Apache License permissive license allows commercial and private use with minimal restrictions; attribution required but no copyleft obligations.
last release 2026-04-23 (113 days) · last repo commit 2026-04-23 · 1 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 93,597 downloads/mo, #13,376 on PyPI
Alternatives
Verify before relying
pip install cld3-py
import gcld3
detector = gcld3.NNetLanguageIdentifier(min_num_bytes=0, max_num_bytes=1000)
result = detector.FindLanguage(text="This text is written in English.")
print(result.language, result.probability, result.is_reliable)- Actual accuracy and reliability metrics on real-world multilingual corpora
- Performance characteristics (latency, memory footprint) for typical use cases
- Whether the package handles mixed-script or code-switched text reliably
- Total number of supported languages and script variants
What it is and what it does
cld3-py is a Python wrapper around a neural network model for language identification. It takes text input and returns the detected language as a BCP-47 code (e.g., 'en' for English, 'bg-Latn' for Bulgarian in Latin script) along with a confidence probability, reliability flag, and proportion of the text in that language. The model works by extracting character n-grams from input, hashing them to embedding vectors, and passing the averaged embeddings through a neural network with a hidden layer and softmax output.
The package is a modernized fork with prebuilt wheels for recent Python versions and multiple platforms, eliminating the need to compile C++ code during installation on most systems. It supports Python 3.10 through 3.14 (including free-threaded builds) and runs on macOS, Linux, and Windows. The API is backward-compatible with the original gcld3 package, so existing code imports work unchanged.
Use it for
- Automatically classify user-generated content by language for routing to appropriate moderation or translation pipelines
- Detect language in multilingual documents to split and process sections separately
- Filter or prioritize search results by language without relying on HTTP headers or user metadata
- Identify the primary language of web pages or social media posts for content aggregation
- Validate language metadata in datasets or correct misclassified language tags
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need reliable language detection without external API calls or heavy dependencies.
The prebuilt wheels make installation straightforward on common platforms, the Apache License is permissive, and active maintenance ensures compatibility with current Python versions. Medium install friction is acceptable for a compiled model. Verify accuracy on your specific text types before production use.
Install
cld3-py on PyPI
Before you install
Medium install friction due to compiled C++ bindings, but prebuilt wheels are available for Python 3.10, 3.11, 3.12, 3.13, 3.14 across macOS (Intel and ARM), Linux (manylinux and musllinux), and Windows. Active maintenance with recent releases.
License in practice
Apache License permissive license allows commercial and private use with minimal restrictions; attribution required but no copyleft obligations.
Quickstart
pip install cld3-py
import gcld3
detector = gcld3.NNetLanguageIdentifier(min_num_bytes=0, max_num_bytes=1000)
result = detector.FindLanguage(text="This text is written in English.")
print(result.language, result.probability, result.is_reliable)
Verify before relying
- Actual accuracy and reliability metrics on real-world multilingual corpora
- Performance characteristics (latency, memory footprint) for typical use cases
- Whether the package handles mixed-script or code-switched text reliably
- Total number of supported languages and script variants
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 113 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 93,597 / month, #13,376 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxProgramming Language :: C++Programming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Scientific/Engineering :: Artificial IntelligenceTopic :: Text Processing :: Linguistic |
Evidence: cld3_py-3.1.0-cp310-cp310-macosx_10_15_x86_64.whl; cld3_py-3.1.0-cp310-cp310-macosx_11_0_arm64.whl; cld3_py-3.1.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl; cld3_py-3.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; cld3_py-3.1.0-cp310-cp310-musllinux_1_2_aarch64.whl; cld3_py-3.1.0-cp310-cp310-musllinux_1_2_x86_64.whl; cld3_py-3.1.0-cp310-cp310-win_amd64.whl; cld3_py-3.1.0-cp311-cp311-macosx_10_15_x86_64.whl; cld3_py-3.1.0-cp311-cp311-macosx_11_0_arm64.whl; cld3_py-3.1.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl; cld3_py-3.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; cld3_py-3.1.0-cp311-cp311-musllinux_1_2_aarch64.whl; cld3_py-3.1.0-cp311-cp311-musllinux_1_2_x86_64.whl; cld3_py-3.1.0-cp311-cp311-win_amd64.whl; cld3_py-3.1.0-cp312-cp312-macosx_10_15_x86_64.whl; cld3_py-3.1.0-cp312-cp312-macosx_11_0_arm64.whl; cld3_py-3.1.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl; cld3_py-3.1.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; cld3_py-3.1.0-cp312-cp312-musllinux_1_2_aarch64.whl; cld3_py-3.1.0-cp312-cp312-musllinux_1_2_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 › “cld3 python bindings”
- cld3-pyIdentifies the language of text using a neural network model,…
- pycld3Detects the language of text using Google's Compact Language Detector…
- PyQt5-sipPyQt5-sip provides the runtime support module for PyQt5 bindings,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also gcld3 · pycld3 · pycld2 · lingua-language-detector · dlib-bin · langdetect · openbabel-wheel · minisbd · cchardet · fasttext-langdetect