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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file terregex-0.0.6.tar.gz.

File metadata

  • Download URL: terregex-0.0.6.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6

File hashes

Hashes for terregex-0.0.6.tar.gz
Algorithm Hash digest
SHA256 e8f19b5d3e870db833254c0d3c69d482fb300421a66fb6ce4a87eb4f67633ae4
MD5 eebbb8fa293d7d5d63523660fe56fba2
BLAKE2b-256 73cade62681a3f9fa75a6fb92e4c9a00a8e754d5352b49d1832750ea9ddd5c9d

See more details on using hashes here.

File details

Details for the file terregex-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: terregex-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6

File hashes

Hashes for terregex-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 16f25333ea3752dcc072527adb1fd1838af550a38a25c2d0b1f05f8a0b1a2c1b
MD5 8bb3291ecbe121ce41ceaa2bc3de87e8
BLAKE2b-256 e022fae199b582a57d7f19826a4036d0d4adc17b108ed91190633d6454881ac0

See more details on using hashes here.

Supported by

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