Metadata-Version: 2.4
Name: rexact
Version: 0.2.0
Summary: Python bindings for Rexact: prove regex equivalence, find ReDoS, compare dialects
License-Expression: MIT OR Apache-2.0
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: LICENSE-APACHE
Dynamic: license-file

# rexact (Python)

Thin bindings over the `rexact` command-line program (install the binary from the
GitHub release and put it on `PATH`, or set `REXACT_BIN`).

```python
import rexact
rexact.equiv("(a|b)*", "(a*b*)*")["result"]      # 'EQUIVALENT'
rexact.redos("(a+)+$")["result"]                  # 'EXPONENTIAL'
rexact.match_diff("a|ab")["result"]               # 'SPANS_DIFFER'
```

Errors raise `rexact.RexactError` with the catalogue `code`.
