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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py_xeger-0.3.4.tar.gz.
File metadata
- Download URL: py_xeger-0.3.4.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da116d1307d4fab2298824299aeae94db44468903b1e462a9a68358d38d4da8d
|
|
| MD5 |
6affd1fe99dd362b8cf14f73c40bf4e1
|
|
| BLAKE2b-256 |
e30a7e4eb4dbd6cf60acc011dc4bfa4e8076b461e4a7ccbe76fd1c950be644ce
|
File details
Details for the file py_xeger-0.3.4-py2.py3-none-any.whl.
File metadata
- Download URL: py_xeger-0.3.4-py2.py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
112983cf3547e95022d9d4a22d6f2156c336142a6c487ebcaf61a5faa653fe42
|
|
| MD5 |
34004ef446cb92b5d46a5cffdf3a9600
|
|
| BLAKE2b-256 |
3795d1ce75f24d6702b480588459b4d17c042377138b39579d8676fbf134e381
|