Skip to main content

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.6.tar.gz (11.2 kB view hashes)

Uploaded Source

Built Distribution

terregex-0.0.6-py3-none-any.whl (11.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page