--- id: flpc version: "0.2.5" license: MIT license_treatment: permissive maintenance: abandoned --- # flpc — A Lightning Fast ⚡ Rust-based regex crate wrapper for Python3 to get faster performance. 👾 License: permissive · Maintenance: abandoned · Downloads: 1.7M/mo ## 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 above — 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 pip install flpc uv add flpc poetry add flpc ## Installing 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_current - Install friction: medium - Maintenance: abandoned - Downloads: 1.7M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags fast regex python, rust regex wrapper, high-performance pattern matching, regex performance boost, compiled regex engine, regex alternative to re module, regex speed optimization, regex, rust-binding, abandoned [View on SkillFed](https://skillfed.io/packages/flpc) · [View on PyPI](https://pypi.org/project/flpc/)