Regular expression containers and helper functions to simplify the use and deployment of regular expressions.
Project description
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.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - 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.