fasttext-predict
fasttext with wheels and no external dependency, but only the predict method (<1MB)
What it is and what it does
fasttext-predict is a stripped-down Python wrapper around the fastText library that exposes only the model prediction interface. It is designed for language identification and similar inference tasks where you already have a trained model and only need to run predictions on text. The package removes all training, model manipulation, and other fastText features, keeping the binary under 1MB and eliminating external dependencies like NumPy.
You load a pre-trained fastText model file and call its predict method to classify or identify text. This makes it suitable for embedding language detection into applications where you want minimal dependencies and fast startup. The package provides pre-built wheels for Python 3.9–3.13 across macOS, Windows, and Linux architectures, so installation typically requires no compilation on common platforms.
Use it for:
- Detect the language of user-submitted text in a web application without pulling in a heavy ML stack.
- Identify document language in a batch processing pipeline where only inference is needed.
- Embed language detection in a lightweight CLI tool or edge service with minimal footprint.
- Classify short text snippets using a pre-trained fastText model in a real-time API.
- Add language identification to a search engine or content aggregator without external ML dependencies.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Loads and runs fastText language identification models with a minimal, dependency-free predict interface.
Yes, if you need lightweight language identification on a pre-trained fastText model and want to avoid NumPy and other heavy dependencies. The dormant maintenance status (629 days since last release) is a concern for long-term support, but the package has no known vulnerabilities and the predict-only scope limits the surface for bugs. Install it for inference-only workloads; do not expect active development or new features.
Install
fasttext-predict on PyPI
pip
pip install fasttext-predictuv
uv add fasttext-predictpoetry
poetry add fasttext-predictInstalling fasttext-predict
Before you install
Medium install friction due to compiled wheels across many architectures, but no runtime dependencies. Dormant maintenance (629 days since last release) means no active development or bug fixes.
License in practice
MIT license is permissive; you may use, modify, and distribute this package freely with minimal restrictions.
Quickstart
pip install fasttext-predict
import fasttext
model = fasttext.load_model('lid.176.ftz')
result = model.predict('Fondant au chocolat et tarte aux myrtilles')
You must provide a fastText model file (e.g., a .ftz file); the package only includes the predict method, not model training or other fastText features.
Verify before relying
- Whether the package's predict method is compatible with all fastText model formats or only specific ones.
- Performance characteristics compared to the full fastText library for production language identification workloads.
- Whether dormant status means the package will receive security updates if vulnerabilities are discovered.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | dormant — 629 days since the last release |
| First released | |
| Downloads | 1,531,109/month — #3,807 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: fasttext_predict-0.9.2.4-cp310-cp310-macosx_10_9_x86_64.whl; fasttext_predict-0.9.2.4-cp310-cp310-macosx_11_0_arm64.whl; fasttext_predict-0.9.2.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; fasttext_predict-0.9.2.4-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl; fasttext_predict-0.9.2.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; fasttext_predict-0.9.2.4-cp310-cp310-manylinux_2_31_armv7l.whl; fasttext_predict-0.9.2.4-cp310-cp310-musllinux_1_2_aarch64.whl; fasttext_predict-0.9.2.4-cp310-cp310-musllinux_1_2_armv7l.whl; fasttext_predict-0.9.2.4-cp310-cp310-musllinux_1_2_i686.whl; fasttext_predict-0.9.2.4-cp310-cp310-musllinux_1_2_x86_64.whl; fasttext_predict-0.9.2.4-cp310-cp310-win32.whl; fasttext_predict-0.9.2.4-cp310-cp310-win_amd64.whl; fasttext_predict-0.9.2.4-cp311-cp311-macosx_10_9_x86_64.whl; fasttext_predict-0.9.2.4-cp311-cp311-macosx_11_0_arm64.whl; fasttext_predict-0.9.2.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; fasttext_predict-0.9.2.4-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl; fasttext_predict-0.9.2.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; fasttext_predict-0.9.2.4-cp311-cp311-manylinux_2_31_armv7l.whl; fasttext_predict-0.9.2.4-cp311-cp311-musllinux_1_2_aarch64.whl; fasttext_predict-0.9.2.4-cp311-cp311-musllinux_1_2_armv7l.whl
Keywords: fasttext, language detection, language identification
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
fasttextfastText is a library for learning word…
permissive · top 5,000 on PyPI
fasttext-langdetectIdentifies the language of UTF-8 text using…
permissive · top 15,000 on PyPI
fasttext-wheelfasttext-wheel provides Python bindings for…
permissive · top 5,000 on PyPI
fast-langdetectDetects the language of text using FastText…
permissive · top 5,000 on PyPI
fasttext-numpy2fasttext-numpy2 provides Python bindings for…
permissive · top 5,000 on PyPI
floretfloret trains compact word embeddings using…
permissive · top 15,000 on PyPI
detoxifyDetoxify classifies text comments for toxic…
permissive · top 15,000 on PyPI
unstructured-inferenceRuns inference on layout-parsing and…
permissive · top 5,000 on PyPI
ginzaGiNZA is a Japanese NLP library that performs…
permissive · top 15,000 on PyPI
pycld2Detects the language of text using Google's…
permissive · top 15,000 on PyPI