Regex transformation library
Project description
Terregex
Terregex is structural regex transformation library.
Installation
You can install this library via PyPI.
pip install terregex
Getting Started
from terregex import Transformer, Literal
trans = Transformer()
@trans.add_rule()
def transform_literal(node: Literal):
node.string = node.string.lower()
trans('(Foo|Bar)+') # => '(foo|bar)+'
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
terregex-0.0.3.tar.gz
(12.2 kB
view hashes)
Built Distribution
terregex-0.0.3-py3-none-any.whl
(12.6 kB
view hashes)