regress
Python bindings to Rust's regress ECMA regular expressions library
What it is and what it does
Regress is a Python wrapper around the Rust regress crate that implements ECMA-compliant regular expressions. Unlike Python's built-in re module, which follows Perl-style regex semantics, regress exposes JavaScript/ECMAScript regex behavior through a simple Regex class with methods like find() for pattern matching.
The package is distributed as precompiled wheels for Python 3.10–3.14 on multiple platforms (Linux, macOS, Windows, and various CPU architectures), eliminating the need to compile Rust code during installation on supported systems. It has no runtime dependencies beyond the Python standard library, making it lightweight to add to an existing project. The package is in Beta status and has not been updated recently, suggesting a stable but not actively developed codebase.
Use it for:
- Match patterns using ECMAScript regex syntax when porting JavaScript code to Python or maintaining cross-platform regex consistency.
- Validate input strings with ECMA-compliant patterns in web applications or data processing pipelines.
- Perform regex operations where JavaScript regex semantics are required rather than Python's default Perl-style behavior.
- Extract substrings or check pattern presence using the find() method in text processing workflows.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides Python bindings to the Rust regress crate for ECMA-compliant regular expression matching, offering an alternative regex engine to Python's built-in re module.
Yes, if you need ECMA-compliant regex semantics and are on Python 3.10 or later. The permissive MIT license, zero runtime dependencies, and precompiled wheels make it low-friction to adopt. However, the aging maintenance status and Beta classification mean you should verify that ECMA regex behavior is actually required for your use case—Python's built-in re module is more actively maintained and sufficient for most applications.
Install
regress on PyPI
pip
pip install regressuv
uv add regresspoetry
poetry add regressInstalling regress
Before you install
Medium install friction due to compiled wheels; prebuilt binaries available for Python 3.10–3.14 across Linux, macOS, and Windows architectures. Package is aging with Beta status, so expect slower maintenance cadence.
License in practice
MIT license (permissive); no restrictions on commercial or private use, modification, or redistribution as long as the license and copyright notice are included.
Quickstart
pip install regress
from regress import Regex
regex = Regex(r"\d{4}")
result = regex.find("2020-20-05")
Requires Python 3.10 or later; compiled wheels are available for common platforms but may require a build environment on unsupported architectures.
Verify before relying
- Performance characteristics compared to Python's built-in re module or other regex libraries in typical use cases.
- Specific ECMA regex feature coverage and any known limitations versus full ECMAScript specification.
- Activity level and responsiveness of maintainers given the aging status and no recent commits visible.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | aging — 309 days since the last release |
| First released | |
| Downloads | 4,089,348/month — #2,384 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: regress-2025.10.1-cp310-cp310-macosx_10_12_x86_64.whl; regress-2025.10.1-cp310-cp310-macosx_11_0_arm64.whl; regress-2025.10.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; regress-2025.10.1-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; regress-2025.10.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; regress-2025.10.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl; regress-2025.10.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; regress-2025.10.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl; regress-2025.10.1-cp310-cp310-musllinux_1_2_aarch64.whl; regress-2025.10.1-cp310-cp310-musllinux_1_2_i686.whl; regress-2025.10.1-cp310-cp310-musllinux_1_2_x86_64.whl; regress-2025.10.1-cp310-cp310-win32.whl; regress-2025.10.1-cp310-cp310-win_amd64.whl; regress-2025.10.1-cp311-cp311-macosx_10_12_x86_64.whl; regress-2025.10.1-cp311-cp311-macosx_11_0_arm64.whl; regress-2025.10.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; regress-2025.10.1-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; regress-2025.10.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; regress-2025.10.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl; regress-2025.10.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Keywords: regex, rust, javascript, ecmascript, regular expressions
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
flpcflpc wraps the Rust regex crate to provide…
permissive · top 5,000 on PyPI
resultProvides a Rust-inspired Result type for Python…
permissive · top 5,000 on PyPI
iregexp-checkValidates regular expressions against RFC 9485…
permissive · top 15,000 on PyPI
rule-engineRule Engine provides a lightweight, custom…
permissive · top 15,000 on PyPI
advent-of-codeProvides pre-computed solutions to Advent of…
unclear · top 15,000 on PyPI
pytest-regexA pytest plugin that selects tests to run using…
permissive · top 15,000 on PyPI
common-expression-languageEvaluates Google's Common Expression Language…
permissive · top 15,000 on PyPI
exrexExrex generates all or random strings matching…
agpl · top 15,000 on PyPI
tensor-grepA high-performance grep-compatible command-line…
unclear · top 15,000 on PyPI
real-regexA drop-in replacement for Python's `re` module…
permissive · top 15,000 on PyPI