Skip to main content
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.

Metadata

Release files for xeger 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for xeger 0.4.0
File Interpreter ABI Platform Actions
xeger-0.4.0-py3-none-any.whl Python 3 none any Details for xeger-0.4.0-py3-none-any.whl

Release files / xeger-0.4.0-py3-none-any.whl

Download URL xeger-0.4.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0f544faf45ac56a29af4e628bd1e6996334f090458d78a61581490df1aad252
BLAKE2b-256 checksum
How to use checksums
beb0b02945ca919affa9f2b282ef42a452681ece86925c4689c1dcbb5788ccf8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Security for xeger 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page