Python implementation of SRL.
Project description
Python Implementation of Simple Regex.
Installation
You can download and install the latest version of this software from the Python package index (PyPI) as below:
$ pip install srl ✨🍰✨
SRL-Python supports:
Python 2.7
Python 3.3
Python 3.4
Python 3.5
Pypy
Usage
Class SRL takes a Simple Regex Language string as input. SRL instance shares exactly same API with re.RegexObject:
>>> from srl import SRL >>> srl = SRL('digit exactly 3 times') >>> srl.pattern '[0-9]{3}' >>> matched = srl.search('123') >>> matched.group() '123'
See more usages in Specification.
Test
SRL-Python uses nose as test runner.:
$ pip install nose $ nosetests -c ./nose.cfg
License
SRL is published under the MIT license. See LICENSE for more information.
Contribution
Like this project? Want to contribute? Awesome! Feel free to open some pull requests or just open an issue.
Release History
0.1.0 (2016-09-08)
Hello world!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file SRL-0.1.0.tar.gz
.
File metadata
- Download URL: SRL-0.1.0.tar.gz
- Upload date:
- Size: 47.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36c8d4f5072c24f4056f9d9dd02408d6fa09264fdd6e6f8c455535a5dcc10b3c |
|
MD5 | ac948208d493aa5ab471d06bbeacc6d4 |
|
BLAKE2b-256 | a232c5f4c197a45a4b513f5f2ed8f2766c86680a26e00ab585ff883afa115222 |
File details
Details for the file SRL-0.1.0-py2-none-any.whl
.
File metadata
- Download URL: SRL-0.1.0-py2-none-any.whl
- Upload date:
- Size: 49.5 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 106542dbc9126f1c8d5f46cb8ddda55458091e3b8b2d6128e10878e1787f1745 |
|
MD5 | 709b5a9be2872f660e3966d94cbd316a |
|
BLAKE2b-256 | b7c72550ed5a4ebb8505b594d1dc4e7e4b60a54891c78e93fae0333721b0a4f5 |