Skip to content
This repository was archived by the owner on Dec 30, 2024. It is now read-only.
/ py-xeger Public archive

String generator from Regular Expression

License

Notifications You must be signed in to change notification settings

magiskboy/py-xeger

Repository files navigation

py-xeger

String generator from Regular Expression

Build Status Code coverage Download PyPi MIT Py version PyPi version

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]+)")
'/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/>_.