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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file regex_generate_py-2023.3.7.tar.gz.
File metadata
- Download URL: regex_generate_py-2023.3.7.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
109663ffa4ae1b577789ea7dcff17bdd39bf02ec51bfe00a6748ff13195d09ac
|
|
| MD5 |
f80c4a6655ee0f7b4fdd2558cea32bd7
|
|
| BLAKE2b-256 |
73f3e53f913f5c6fe8f90c21cf2bf4b61a19a24566bed0ed913f7bfefeffc44d
|
File details
Details for the file regex_generate_py-2023.3.7-cp311-cp311-macosx_10_12_x86_64.whl.
File metadata
- Download URL: regex_generate_py-2023.3.7-cp311-cp311-macosx_10_12_x86_64.whl
- Upload date:
- Size: 543.5 kB
- Tags: CPython 3.11, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f1a878dff6c229749468f39f4aea49e32da9d7c693bc1c07d7ab8c3eecdd050
|
|
| MD5 |
5a09655091718a6a0170a2b686a085cd
|
|
| BLAKE2b-256 |
59e8a5ababfe20fbf3c27d6563234a572959edbd7e4edb8bafcc97de37b17980
|