flpc
A Lightning Fast ⚡ Rust-based regex crate wrapper for Python3 to get faster performance. 👾
What it is and what it does
flpc is a Python wrapper around the Rust regex crate that aims to accelerate regular expression operations by replacing Python's native `re` module with a Rust-backed implementation. It exposes a similar API with functions like `compile()`, `search()`, `findall()`, `split()`, and `sub()`, but requires minor syntax adjustments: use `fmatch()` instead of `match()` and always provide an index when calling `group()` on match objects.
The package is designed as a drop-in replacement for performance-critical regex work, with no runtime dependencies beyond the compiled Rust library. However, the repository is archived and abandoned as of July 2024, meaning no active maintenance, bug fixes, or feature development are expected. It remains in experimental stage, and the code structure or dependencies may change without notice, requiring manual migration effort if you adopt it.
Use it for:
- Accelerate bulk text processing or log parsing where regex performance is a bottleneck and you control the codebase.
- Benchmark or prototype regex-heavy workloads to measure whether Rust-backed regex offers meaningful speedup for your use case.
- Replace re module in performance-sensitive data extraction pipelines where you can tolerate the API differences and maintenance risk.
- Evaluate Rust regex behavior as an alternative to Python's engine for research or comparison purposes.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
flpc wraps the Rust regex crate to provide faster regular expression matching, searching, and substitution operations than Python's native `re` module, with a similar but slightly modified API.
No. The package is abandoned (archived repository, no commits since July 2024) and explicitly experimental, meaning you accept the risk of unresolved bugs, no future updates, and potential breaking changes. Install only if you have a short-term, isolated use case where you can afford to fork or maintain it yourself, and you've verified that the performance gain justifies the maintenance burden and API friction (fmatch(), mandatory group indices).
Install
flpc on PyPI
pip
pip install flpcuv
uv add flpcpoetry
poetry add flpcInstalling flpc
Before you install
Medium install friction due to compiled wheels for multiple platforms and architectures. Repository is archived and marked abandoned as of the latest commit on 2024-07-09, with no active maintenance—use only if you accept the risk of no future updates or bug fixes.
License in practice
Licensed under MIT (permissive), so you can use, modify, and distribute flpc freely in commercial and private projects without restriction, provided you include the license notice.
Quickstart
pip install flpc
import flpc
pattern = flpc.compile(r'\w+')
match = pattern.search('text')
if match:
print(match.group(0)) # Always provide index to group()
Requires Python >= 3.8. Use fmatch() instead of match() to avoid keyword conflicts. Always provide an index argument to group() (e.g., group(0) for the entire match).
Verify before relying
- Whether the Rust regex crate's feature set and syntax fully cover typical Python re module use cases in practice.
- Performance gains relative to Python's re module on typical workloads and whether they justify the maintenance risk.
- Compatibility of the Rust regex engine's behavior with edge cases or advanced features developers rely on from the standard library.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | abandoned — 766 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 1,705,760/month — #3,636 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: flpc-0.2.5-cp310-cp310-macosx_11_0_arm64.whl; flpc-0.2.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; flpc-0.2.5-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; flpc-0.2.5-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; flpc-0.2.5-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl; flpc-0.2.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; flpc-0.2.5-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl; flpc-0.2.5-cp310-cp310-musllinux_1_2_aarch64.whl; flpc-0.2.5-cp310-cp310-musllinux_1_2_armv7l.whl; flpc-0.2.5-cp310-cp310-musllinux_1_2_i686.whl; flpc-0.2.5-cp310-cp310-musllinux_1_2_x86_64.whl; flpc-0.2.5-cp310-none-win32.whl; flpc-0.2.5-cp310-none-win_amd64.whl; flpc-0.2.5-cp311-cp311-macosx_10_12_x86_64.whl; flpc-0.2.5-cp311-cp311-macosx_11_0_arm64.whl; flpc-0.2.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; flpc-0.2.5-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; flpc-0.2.5-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; flpc-0.2.5-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl; flpc-0.2.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Tags
More Text Processing packages
A drop-in replacement for Python's standard…
permissive · top 100 on PyPI
pyparsingpyparsing provides a library for building text…
permissive · top 1,000 on PyPI
docutilsDocutils converts plaintext documentation in…
unclear · top 1,000 on PyPI
RapidFuzzRapidFuzz provides fast fuzzy string matching…
permissive · top 1,000 on PyPI
tinycss2tinycss2 parses CSS strings into token and…
permissive · top 1,000 on PyPI
llama-parseLlamaParse parses complex documents (PDFs,…
permissive · top 1,000 on PyPI
regressProvides Python bindings to the Rust regress…
permissive · top 5,000 on PyPI
tensor-grepA high-performance grep-compatible command-line…
unclear · top 15,000 on PyPI
iregexp-checkValidates regular expressions against RFC 9485…
permissive · top 15,000 on PyPI
real-regexA drop-in replacement for Python's `re` module…
permissive · top 15,000 on PyPI
pytest-regexA pytest plugin that selects tests to run using…
permissive · top 15,000 on PyPI
rebulkReBulk provides a fluent API for building…
permissive · top 15,000 on PyPI
hyperscanPython bindings for Vectorscan (an open-source…
permissive · top 15,000 on PyPI
regexploitRegexploit analyzes regular expressions to…
permissive · top 15,000 on PyPI
ignore-pythonProvides fast recursive directory traversal…
unclear · top 15,000 on PyPI