🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

xeger

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xeger

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

pipPyPI
Version
0.4.0
Maintainers
1

.. 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 adapted and refactored from the Python library rstr by Leapfrog Online <https://github.com/leapfrogonline/rstr>_ (now iProspect), in turn inspired by the Java library Xeger <http://code.google.com/p/xeger/>_.

Keywords

regular expressions regexp testing random generator

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts