Skip to main content

Use regular expressions to generate text. This is the PyO3 Python binding of the Rust crate 'regex_generate'.

Project description

regex_generate.py

Use regular expressions to generate text. This is the PyO3 Python binding of the Rust crate regex_generate.

Usage

>>> from regex_generate_py import generate
>>> # Use regular expressions to generate text
>>> pattern = r"(My|Your) name is an(ji|na|t)"
>>>
>>> for i in range(10):
...     print(generate(pattern))
...
Your name is anna
My name is ant
Your name is anji
Your name is anji
My name is ant
Your name is anna
My name is ant
My name is anji
Your name is anji
My name is ant

Project details


Download files

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

Source Distribution

regex_generate_py-2023.3.7.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

regex_generate_py-2023.3.7-cp311-cp311-macosx_10_12_x86_64.whl (543.5 kB view details)

Uploaded CPython 3.11 macOS 10.12+ x86-64

File details

Details for the file regex_generate_py-2023.3.7.tar.gz.

File metadata

File hashes

Hashes for regex_generate_py-2023.3.7.tar.gz
Algorithm Hash digest
SHA256 109663ffa4ae1b577789ea7dcff17bdd39bf02ec51bfe00a6748ff13195d09ac
MD5 f80c4a6655ee0f7b4fdd2558cea32bd7
BLAKE2b-256 73f3e53f913f5c6fe8f90c21cf2bf4b61a19a24566bed0ed913f7bfefeffc44d

See more details on using hashes here.

File details

Details for the file regex_generate_py-2023.3.7-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for regex_generate_py-2023.3.7-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 0f1a878dff6c229749468f39f4aea49e32da9d7c693bc1c07d7ab8c3eecdd050
MD5 5a09655091718a6a0170a2b686a085cd
BLAKE2b-256 59e8a5ababfe20fbf3c27d6563234a572959edbd7e4edb8bafcc97de37b17980

See more details on using hashes here.

Supported by

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