SRL-Python
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!
Metadata
Release files for SRL 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| SRL-0.1.0.tar.gz | 47.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| SRL-0.1.0-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 96.7 kB
Release files / SRL-0.1.0.tar.gz
| Download URL | SRL-0.1.0.tar.gz |
|---|---|
| Size | 47.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
36c8d4f5072c24f4056f9d9dd02408d6fa09264fdd6e6f8c455535a5dcc10b3c
|
|
BLAKE2b-256 checksum How to use checksums |
a232c5f4c197a45a4b513f5f2ed8f2766c86680a26e00ab585ff883afa115222
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / SRL-0.1.0-py2-none-any.whl
| Download URL | SRL-0.1.0-py2-none-any.whl |
|---|---|
| Size | 49.5 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
106542dbc9126f1c8d5f46cb8ddda55458091e3b8b2d6128e10878e1787f1745
|
|
BLAKE2b-256 checksum How to use checksums |
b7c72550ed5a4ebb8505b594d1dc4e7e4b60a54891c78e93fae0333721b0a4f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |