Skip to content

Releases: smartlegionlab/smartrandom

Smart Random v0.3.1

13 Jun 11:32

Choose a tag to compare

Smart Random v0.3.1

smartrandom v0.2.1

01 Aug 09:54

Choose a tag to compare

What is news:

smartrandom 0.2.1 - new improved version of the library.

  • Added a regular password generator.
  • Added a smart password generator.
  • Improved tests

smartrandom v0.2.0

01 Aug 05:17

Choose a tag to compare

What is news:

smartrandom 0.2.0 - new improved version of the library.

WARNING! This version is not backward compatible with previous versions.

  • Completely rewritten and improved code.
  • Simplified import
  • Uses more secure and cryptographically strong secrets instead of random
  • Generated passwords must now contain at least one digit, one lowercase letter, one uppercase letter and one symbol. Length is at least 4.
  • Random letter generation is now at least 2. At least 1 lowercase letter and one uppercase letter are required.
  • Improved UrandomGenerator default size=128.
  • Added TextRandomizer.
  • Added tests.
  • Test coverage 100%.
  • Added documentation.

smartrandom v0.1.3

30 Jul 03:54

Choose a tag to compare

smartrandom v0.1.3


What is news:

  • Added the ability to randomize text.

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:

  1. Curly braces {}: Used to group text options. Anything inside the curly braces will be randomly selected when generating the text.
  2. 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:

    1. Create your text: Identify which parts of your message can vary and place them in curly braces.
    2. Add options: Separate alternatives with a vertical bar.
    3. 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 smartrandom.random_master import RandomStringMaster

random_master = RandomStringMaster()

text = '{Salute|Hello|Good morning} {comrade|buddy|dear friend}!'
randomized_text = random_master.randomize_text(text)
print(randomized_text) # Good morning buddy!

Smart Random v0.1.2

24 May 03:12

Choose a tag to compare

Smart Random v0.1.2 Use only safe characters during generation.

Smart Random v0.1.1

18 May 07:35

Choose a tag to compare

Smart Random v0.1.1 - Added UrandomGen.

Smart Random v0.1.0

15 May 05:08

Choose a tag to compare

Smart Random v0.1.0 Corrected errors. Code refactoring. Stable version.

Smart Random 0.0.3

13 May 00:52

Choose a tag to compare

Cross-platform Random Data Generators.

Smart Random (package)

08 May 04:06

Choose a tag to compare

Allows you to generate random strings of a given length from letters, numbers, symbols.
Helps to generate passwords, service codes (for example, for sending via SMS), hashes and much more.

Smart Random v0.0.1 (package)

14 May 10:56

Choose a tag to compare

Smart Random v0.0.1 (package)

Random Data Generators.


Allows you to generate random strings of a given length from letters, numbers, symbols.
Helps to generate passwords, service codes (for example, for sending via SMS), hashes and much more.