Skip to main content

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

Project description

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

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 adapted and refactored from the Python library rstr by Leapfrog Online (now iProspect), 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.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

xeger-0.4.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file xeger-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: xeger-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for xeger-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a0f544faf45ac56a29af4e628bd1e6996334f090458d78a61581490df1aad252
MD5 1becb969a905429e71397c309d1199a2
BLAKE2b-256 beb0b02945ca919affa9f2b282ef42a452681ece86925c4689c1dcbb5788ccf8

See more details on using hashes here.

Supported by

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