smart-text-randomizer v0.1.0
Smart Text Randomizer
⚠️ Disclaimer
By using this software, you agree to the full disclaimer terms.
Summary: Software provided "AS IS" without warranty. You assume all risks.
Full legal disclaimer: See DISCLAIMER.md
Help:
pip install smart-text-randomizer
"Text randomization" or "variable text". It is used to create different variations of the same message.
You are using special syntax. Example: '{Salute|Hello|Good morning} {comrade|buddy|dear friend}!'
This syntax allows you to create variable messages by using curly braces and vertical bars to indicate alternatives.
Basic elements of syntax:
- Curly braces {}: Used to group text options. Anything inside the curly braces will be randomly selected when generating the text.
- Vertical bar |: Used to separate different text options within curly braces. Each option will be treated as a separate choice.
Example of use:
-
Syntax:
'{Salute|Hello|Good morning} {comrade|buddy|dear friend}!' -
Possible results:
- Salute comrade!
- Salute buddy!
- Salute dear friend!
- Hello comrade!
- Hello buddy!
- Hello dear friend!
- Good morning comrade!
- Good morning buddy!
- Good morning dear friend!
-
How to use:
- Create your text: Identify which parts of your message can vary and place them in curly braces.
- Add options: Separate alternatives with a vertical bar.
- Text Generation: Use RandomStringMaster() to generate a random message.
-
Notes:
- Make sure all options inside the curly braces make sense and fit the context.
- You can use multiple randomization groups in a single message to create more complex variations.
Example of text randomization:
from smart_text_randomizer import TextRandomizer
text_randomizer = TextRandomizer()
text = '{Salute|Hello|Good morning} {comrade|buddy|dear friend}!'
randomized_text = TextRandomizer.randomize(text)
print(randomized_text) # Good morning buddy!
License
Copyright (©) 2026, Alexander Suvorov
Metadata
Release files for smart-text-randomizer 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| smart_text_randomizer-0.1.0.tar.gz | 4.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| smart_text_randomizer-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.2 kB
Release files / smart_text_randomizer-0.1.0.tar.gz
| Download URL | smart_text_randomizer-0.1.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ef39fec8aca1235aa974232e3abc59faa1e24cd9417847c805af6b33e55d1966
|
|
BLAKE2b-256 checksum How to use checksums |
42030526c721c3e7d9d74c6f360c04e12e0354e706df98f2e965d59c229795e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / smart_text_randomizer-0.1.0-py3-none-any.whl
| Download URL | smart_text_randomizer-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ef5bd31b95d083e9deb19a2791d111d676191281c3f0899952e7244f89176b4e
|
|
BLAKE2b-256 checksum How to use checksums |
2fbc9cab84c38ed310a2c00b33340697557a85d8cf5aff1cf4b0567649ed1890
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|