Random (version 0.0.2)
index
Random.html

This package implements tools to build python package and tools.
 
>>> from Random import *
>>> get_random_strings()
'*=y%oHo!LX'
>>> get_random_strings()
'@5ILc8zmAo'
>>> get_random_strings(2)
'Pe'
>>> get_random_strings((2, 7))
'`kvS"\'
>>> get_random_strings((2, 7))
'Lw#S5F'
>>> get_random_strings((2, 7))
'n=f'
>>> get_random_strings((2, 7), 2, separator="")
'^n^G_$`R:1Lq'
>>> get_random_strings((2, 7), 2, separator="", secure=True)
'nc/A5Y&)}GlbmH:u}'
>>> get_random_strings((2, 7), (2, 4), separator="", secure=True, urlsafe=True)
't6G-XMTjW4TPBF9CyBWD67JTBx4IXytdusWFeABgb3voZ'
>>> get_random_strings((2, 7), (2, 4), separator="", secure=True, urlsafe=True, characters="abc")
'6r0zGut-0phw~Ab9CJuHIkKxIIdRcF77Fu4uRVXdHrEhT2XY'
>>> get_random_strings((2, 7), (2, 4), separator=" ; ", secure=True, characters="abc")
'babccbaaab ; babaacaba ; aacabcc ; abaacabc'
>>> get_random_strings((2, 7), (2, 4), separator=" ; ", secure=True, letters=True)
'UpcGnFsca ; ioYxlGM ; HdAjYOBae ; oBNdWSZN'
>>> get_random_strings((2, 7), (2, 4), separator=" ; ", secure=True, alphanumeric=True)
'CWKOABTsU5 ; XHKWtvXFPm ; OXcLSIHm7 ; vYYrUoOeBm ; 3ytV7IRUCp'
>>> get_random_strings((2, 7), (2, 4), separator="ÿ", secure=True, ascii=True)
"
'LJ<ÿ8
|wlÿ95LD$ÿl_f~11"
>>> get_random_strings((2, 7), (2, 4), separator="", secure=True, latin1=True)
'aƉ¾O|™’Úó§b MIa§[C)lÊa„CÃUûGႴæÀ#ƒ”Dâmh'
>>> get_random_strings((2, 7), (2, 4), separator="", secure=True, check_strong=True)
"]YM~G_tV^ZOQ- -)2qSV$r%e%-8Q-_bfk-bkk-tV',d"
>>>

 
Functions
       
get_random_strings(length: Union[int, Tuple[int, int]] = 10, numbers: Union[int, Tuple[int, int]] = 1, separator: str = None, secure: bool = False, urlsafe: bool = False, characters: str = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~ ', letters: bool = False, alphanumeriRandom.html= False, ascii: bool = False, latin1: bool = False, check_strong: bool = False) -> Union[str, List[str]]
This function generates random strings.

 
Data
        __all__ = ['get_random_strings']
__author_email__ = 'mauricelambert434@gmail.com'
__copyright__ = '\nPythonToolsKit Copyright (C) 2022 Maurice Lam...ome to redistribute it\nunder certain conditions.\n'
__description__ = '\nThis package implements tools to build python package and tools.\n'
__license__ = 'GPL-3.0 License'
__maintainer__ = 'Maurice Lambert'
__maintainer_email__ = 'mauricelambert434@gmail.com'
__url__ = 'https://github.com/mauricelambert/PythonToolsKit'

 
Author
        Maurice Lambert
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy