Metadata-Version: 2.2
Name: xeger
Version: 0.3.5
Summary: A library for generating random strings from a valid regular expression.
Home-page: https://github.com/crdoconnor/xeger
Author: Colm O'Connor
Author-email: colm.oconnor.github@gmail.com
License: BSD
Keywords: regular expressions regexp testing random generator
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Topic :: Software Development :: Build Tools
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.1
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: summary

.. image:: https://travis-ci.org/crdoconnor/xeger.svg?branch=master
    :target: https://travis-ci.org/crdoconnor/xeger

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 borrowed and cleaned up from `the python module
rstr by Leap Frog Development <http://jpmens.net/2010/04/26/resty/>`,
in turn inspired by the Java library `Xeger <http://code.google.com/p/xeger/>`.
