Skip to main content

String generator from Regex

Project description

py-xeger

GitHub Workflow Status (with event) Codecov GitHub PyPI PyPI - Downloads

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


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)

Uploaded Source

Built Distribution

py_xeger-0.3.4-py2.py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page