Skip to main content

A library for generating random strings from a valid regular expression.

Project description


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]+)")


Code borrowed and cleaned up from the python module rstr by Leap Frog Development <>, in turn inspired by the Java library Xeger <>.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for xeger, version 0.3.5
Nom du fichier, taille File type Version de Python Date de publication Hashes
Nom du fichier, taille xeger-0.3.5.tar.gz (4.1 kB) File type Source Version de Python Aucune Date de publication Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page