Xeger
Library to generate random strings from regular expressions.
To install, type:
pip install xeger
To use, type:
>>> from xeger 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 rstr by Leapfrog Online (now iProspect), in turn inspired by the Java library Xeger.
Metadata
Release files for xeger 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xeger-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / xeger-0.4.0-py3-none-any.whl
| Download URL | xeger-0.4.0-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a0f544faf45ac56a29af4e628bd1e6996334f090458d78a61581490df1aad252
|
|
BLAKE2b-256 checksum How to use checksums |
beb0b02945ca919affa9f2b282ef42a452681ece86925c4689c1dcbb5788ccf8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|