skillfed

regress

Python bindings to Rust's regress ECMA regular expressions library

regress v2025.10.1 4.1M downloads/30d#2,384 on PyPI
Permissive license AGING released

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 regress

uv

uv add regress

poetry

poetry add regress

Installing 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

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyProgramming Language :: Rust

Tags

ecma regex pythonrust regex bindingsjavascript regex engineregex alternative libraryecmascript regular expressionsregress python bindingsrust-backed regex
regex-enginerust-bindingsecmascript

More Text Processing packages