String generator from Regex
Project description
Library to generate random strings from regular expressions.
To install, type:
$ pip install py-xeger
To use, type:
>>> from pyxeger import Xeger
>>> x = Xeger(limit=10) # default limit = 10
>>> x.xeger("/json/([0-9]+)")
u'/json/15062213'
About
Code adapted and refactored from the Python library xeger in turn inspired by the Java library Xeger <http://code.google.com/p/xeger/>
_.
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
py_xeger-0.3.4.tar.gz
(7.4 kB
view hashes)
Built Distribution
Close
Hashes for py_xeger-0.3.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 112983cf3547e95022d9d4a22d6f2156c336142a6c487ebcaf61a5faa653fe42 |
|
MD5 | 34004ef446cb92b5d46a5cffdf3a9600 |
|
BLAKE2b-256 | 3795d1ce75f24d6702b480588459b4d17c042377138b39579d8676fbf134e381 |