er

Generate data that matches a given regular expression.


Keywords
re, test, testing, data, fake, regular, expression
License
MIT
Install
pip install er==0.2

Documentation

Build Status Python Versions Licence Format

pip install er

A python micro library that generates data matching a given regular expression.

On the command-line:

# er 'he?llo there{4,5}'

hllo thereeee

or from python:

>>> import er

>>> print er.generate('he?llo there{4,5}')

'hello thereeeee'