Skip to main content

Regular expression containers and helper functions to simplify the use and deployment of regular expressions.

Project description

Contributors Forks Stargazers Issues MIT License


regexify

Utilities/containers for deploying regular expressions.

Table of Contents

About the Project

This package contains a few useful functions and classes for building/using regular expressions.

Getting Started

Prerequisites

  • Python 3.7+

Installation

Install using pip:

pip install regexify

Usage

See the test files for example usage.

Pattern Trie

Compile multiple terms into a single pattern.

import re
from regexify import PatternTrie

data = ['there', 'hi', 'python', 'pythons', 'hiya']
trie = PatternTrie(*data)
pat = re.compile(trie.pattern)

Versions

Uses SEMVER.

See https://github.com/dcronkite/regexify/releases.

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License.

See LICENSE or https://dcronkite.mit-license.org for more information.

Contact

Please use the issue tracker.

Acknowledgements

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

regexify-0.2.1.tar.gz (33.7 kB view details)

Uploaded Source

Built Distribution

regexify-0.2.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file regexify-0.2.1.tar.gz.

File metadata

  • Download URL: regexify-0.2.1.tar.gz
  • Upload date:
  • Size: 33.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for regexify-0.2.1.tar.gz
Algorithm Hash digest
SHA256 cd11d0353adaceb8f3e94924e0bbb5293597675fdba9e855f597a5946ccef5c8
MD5 cc7ce846b36473a7350dad69fe4ede95
BLAKE2b-256 b66f9878d80e07ed087c6aea6262f459cf61b2518dab1d0c0a463b01d0b1947f

See more details on using hashes here.

File details

Details for the file regexify-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: regexify-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for regexify-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4332ae48349d978cf0cc94f920c4ed9222d8f83cfd7ad09b088a11a5806422bc
MD5 a3590769a218af88bde6be99633f9ba1
BLAKE2b-256 509a4bc5c236fd19e05e677bcfff8b753de3d41431eab8a5a1878c2de95615f0

See more details on using hashes here.

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