Saravanan666/pypi-org huggingface dataset:
Package: randomwordgenerator
Python Library for Generating Random WordsUsagefrom randomgenerator import randomwordgenerator

num_words = 20
randomwordgenerator.generate_random_words(n = num_words)Under the hood, the random word generator first tries to use the primary
pathway.primaryWord Source: FreeBSD Dictionarydef get_n_random_words(num_random_words, prefix = None, suffix = None, substr = None):
    '''
        @param prefix
            - A character or phrase that all target words must start with
        @param suffix
            - A character or phrase that all target words must end with
        @param substr
            - A character or phrase that all target words must contain
        @param num_random_words
            - The number of random words to generate
            - Must be nonnegative
        @return
            - a list of @num_random_words unique words from _URL that
            meet the specified criteria
            - all words meeting the specified criteria if @num_random_words
            exceeds the number of matching words
            - None if @num_random_words is < 0, [] if @num_random_words is 0
    '''If the primary generator fails (a.k.a, we lose Internet connectivity, so
we can’t access the FreeBSD dictionary), the random word generator
switches over to the backup pathway.backupdef get_random_word(min_word_len, max_word_len):
    '''
        @param min_word_len
            - Minimum number of characters that must be in random word
            - Must be non-negative

        @param max_word_len
            - Maximum number of characters that can be in random word
            - Must be non-negative

        @return
            - A random word whose length is >= @min_word_len and <= @max_word_len characters.
            - If any of the inputs are invalid, then raise an InvalidWordLengthBoundsError.
    '''def get_n_random_words(n, word_len_bounds = (2, 10)):
    '''
        @param n
        (Required)
        Number of random words to generate

        @param word_len_bounds
        (Optional)
        Tuple containing the bounds for the word length of each randomly generated word;
        item 0 = minimum word length (2 by default), item 1 = maximum word length (10 by default)

        @return
            - A list with @n random words, where word_len_bounds[0] <= len(each word) <= word_len_bounds[1]
            - An InvalidWordLengthBoundsError if word_len_bounds is an invalid tuple (length < 2)
    '''The key difference between the primary and backup pathways is that the
latter might not generate actual words; it is actually creating various
strings of varying lengths and characters. Overall, the backup pathway
is not as ideal as the primary, but it is a suitable alternative in the
event of a network failure.
Package: random-word-numpy
random-wordThis is a simple python package to generate random English words.
If you need help after reading the below, please find me on Twitter at@vaibhavsingh97.If you love the package, please :star2: the repo.InstallationYou should be able to install usingeasy_installorpipin the usual ways:$easy_installrandom-word-numpy
$pipinstallrandom-word-numpyOr clone this repository and run:$python3setup.pyinstallOr place therandom-word-numpyfolder that you downloaded somewhere where your scripts can access it.Basic Usage👋 This package will now, by default, fetch the random word from localdatabasefromrandom_word_numpyimportRandomWordsr=RandomWords()# Return a single random wordr.get_random_word()DevelopmentAssuming that you havePythonandpipenvinstalled, set up your environment and install the required dependencies like this instead of thepip install random-word-numpydefined above:$gitclonehttps://github.com/vaibhavsingh97/random-word.git
$cdrandom-word
$makeinitTo check your desired changes, you can install your package locally.$pipinstall-e.IssuesYou can report the bugs at theissue trackerLicenseBuilt with ♥ by Vaibhav Singh(@vaibhavsingh97) underMIT LicenseYou can find a copy of the License athttps://vaibhavsingh97.mit-license.org/
Package: random-xe
This little module is a simple and reliable way to improve randomness of any random or pseudo-random number generator.We never being 100% sure in real randomness and cryptographic quality of any externally-provided RNG, and this is a good idea to be able to add some addition entropy to by own hands. This module provides following features:1. Easy way to combine unrestricted number of randomness sources (CompoundRandom class).2. Tool to transform several additional bytes of extra entropy into complete random-like mess (HashRandom class).### Why we can be sure that combining independent random sources can only improve quality of RNG<coming soon...>### How to embedThere are two ways to embed this functionality into your project:1. Get this module by `pip install random_xe` and then import into your module by `import random_xe`.2. Directly download [random_xe.py](/random_xe.py) file and adopt it into your project.### How to useImport this module:```python>>> import random_xe```Create and try HashRandom PRNG initialized with 'Hello world':```python>>> import random_xe>>> myrandom1 = random_xe.HashRandom('Hello world')>>> myrandom1.randint(100, 200)156>>> myrandom1.gauss(20, 10)8.243867125227318```myrandom1 uses SHA-256 hashing function (option by default).Let`s try to combine this PRNG with another HashRandom based on SHA3-512 and initialized from user input:```python>>> from hashlib import sha3_512>>> myrandom2 = random_xe.CompoundRandom(myrandom1, random_xe.HashRandom(input('Type somethig: '), sha3_512))Type somethig: ldjggndjKfuT830>>> myrandom2.getrandbits(128)171962833922528548054430533031273437533```It is very good idea ALWAYS combine additional entropy with SystemRandom source:```python>>> from getpass import getpass>>> from time import perf_counter>>> # Three sources:>>> # - SystemRandom;>>> # - user input;>>> # - timing.>>> def super_myrandom():t_start = perf_counter()return random_xe.CompoundRandom(random_xe.SystemRandom(),random_xe.HashRandom(getpass('Type somethig:'), sha3_512),random_xe.HashRandom(perf_counter() - t_start))>>> myrandom3 = super_myrandom()>>> myrandom3.getrandbits(128)214560115455406687033892278367232976155```Keywords: random rng prngPlatform: UNKNOWNClassifier: Development Status :: 5 - Production/StableClassifier: Intended Audience :: DevelopersClassifier: Intended Audience :: EducationClassifier: Intended Audience :: Science/ResearchClassifier: Topic :: Security :: CryptographyClassifier: Topic :: Software Development :: LibrariesClassifier: License :: CC0 1.0 Universal (CC0 1.0) Public Domain DedicationClassifier: Programming Language :: Python :: 3Classifier: Programming Language :: Python :: 3.4Classifier: Programming Language :: Python :: 3.5Classifier: Programming Language :: Python :: 3.6Classifier: Programming Language :: Python :: 3.7Description-Content-Type: text/markdown
Package: randon
RandonDeveloped by Roop Majumder from Technical Earth (c) 2020Examples of How To Useusing intrandfromrandonimportintrandintrand()using floatrandfromrandonimportfloatrandfloatrand()using oddfromrandonimportoddodd()using evenfromrandonimporteveneven()using guess_the_numberfromrandonimportguess_the_numberguess_the_number()usong RandonCodefromrandonimportRandonCode# RandonCode(num1, num2)RandonCode(10,70)There are more to explore stay aroundto learn about randon go to the documentation.
Package: randonautentropy
RandonautEntroPyThis project provides tools for interacting with the Randonautica QRNG andTemporalentropy generators. It provides a Python API, and arndocommand-line tool.Fair Use PolicyPlease request only the entropy amount you really need for your project. Please note that in case of overuse the API is subject to immediate modifications and amendments to free availability.Temporal on the other hand runs on your system and is always available.Installation$ pip install randonautentropyInstalling TemporalThe first time thetemporal.getPython method orrndo -tcommand line option are called, a script attempts to automatically install theTemporalLibshell tool dependency in/usr/local/binIn case that fails you can install it yourself:$ sudo apt install git build-essential
$ git clone --depth 1 git@github.com:TheRandonauts/temporal.git
$ cd temporal
$ ./make.shPython APIThe randonautentropy Python module contains low-levelgetfunctions.>>>fromrandonautentropyimportrndo>>>fromrandonautentropyimporttemporal>>>rndo.get(length=10,type='hex16')e5b779d67eda68636cb9>>>temporal.get(length=10,channel=0)d0c7ca53cb57ede1be14Extended FunctionalityTherndo.getfunction can also retrieve a single 32bit random number in different formats:>>>rndo.get(type='int32')-968449906>>>rndo.get(type='uniform')0.9251141917698646>>>rndo.get(type='normal')0.8924809489412333>>>rndo.get(type='base64')JA==Thetemporal.getmethod can switch from the default high quality entropy mode to a faster but slightly lower entropy mode by switching itschannelto 1.>>>temporal.get(channel=1)b83a7fd79bee5b3b1ad7Command Line InterfaceThe package also comes with arndoCLI:usage: rndo [-h] [--rndo] [--temporal] [bytes]

A tool for printing random data from the Randonautica Quantum Random Number Generators

positional arguments:
  bytes           amount of hexadecimal bytes

options:
  -h, --help      show this help message and exit
  --rndo, -r      Hexadecimal QRNG entropy
  --temporal, -t  Hexadecimal Temporal entropyExample:$ rndo -r 100
d204ab96505929325292d84a1217ded8de5781a449be0371cdcc97e6f6b1fe69a6b530cdf7112250172e573fe7b42b9e89fe42eef198cce0ec7a427b74f59b7b7a3d8ecabfc0f0051fe06104b1dd7f2a7d1626d7f66aac5afe002bdb255ec136d52405c2

$ rndo -t 100
93378573b635dc2b01ffd426068e6ccecbc2046fbc9598c1c41a4cbe0dcc8f62071202ea72d05b83581e8cd968cbd099ee0ccf37e9fbcd7d476bd4da6b1965434fc1a65302c732a06b6e5cebff37101a21926a34f1b236a4660a599c6ec93ae7296176fc
Package: randopt
randopt is a Python package for machine learning experiment management, hyper-parameter optimization, and results visualization. Some of its features include:result logging and management,human-readable format,support for parallelism / distributed / asynchronous experiments,command-line and programmatic API,shareable, flexible Web visualization,automatic hyper-parameter search, andpure Python - no dependencies !InstallationpipinstallrandoptUsageimportrandoptasrodefloss(x):returnx**2e=ro.Experiment('myexp',{'alpha':ro.Gaussian(mean=0.0,std=1.0,dtype='float'),})# Sampling parametersforiinxrange(100):e.sample('alpha')res=loss(e.alpha)print('Result: ',res)e.add_result(res)# Manually setting parameterse.alpha=0.00001res=loss(e.alpha)e.add_result(res)# Search over all experiments results, including ones from previous runsopt=e.minimum()print('Best result: ',opt.result,' with params: ',opt.params)Results VisualizationOnce you obtained some results, runroviz.py path/to/experiment/folderto visualize them in your web browser.For more info on visualization androviz.py, refer to theVisualizing Resultstutorial.Hyper-Parameter OptimizationTo generate results and search for good hyper-parameters you can either userropt.pyor write your own optimizaiton script using theEvolutionaryandGridSearchclasses.For more info on hyper-parameter optimization, refer to theOptimizing Hyperparamstutorial.DocumentationFor more examples, tutorials, and documentation refer to thewiki.ContributingTo contribute to Randopt, it is recommended to follow thecontribution guidelines.AcknowledgementsRandopt is maintained bySéb Arnold, with numerous contributions from the following persons.Noel TrivediCyrus JiaDaler AsrorovLicenseRandopt is released under the Apache 2 License. For more information, refer to theLICENSE file.I would love to hear how your use Randopt. Feel free todrop me a line!
Package: rand-pass-generator
Password generatorThis module offers random password generation.Installpipinstallrand-pass-generatorQuick startFirst of all, initialize:fromrand_pass_generatorimportgenerate,check# to generate numeric passwordpassword=generate().number()# Output : {'password': '003462', 'level': 0, 'strength': 'terrible', 'message': 'password is too short'}# to generate letter passwordpassword=generate().letter()# Output : {'password': 'kapebq', 'level': 0, 'strength': 'terrible', 'message': 'password is too short'}# to generate numberic and letter passwordpassword=generate().numberLetter()# Output : {'password': 'q9hlWS11', 'level': 3, 'strength': 'strong', 'message': 'password is perfect'}# to generate random passwordpassword=generate().random()# Output : {'password': 'm6P)^yz9b"966D9G4uTd.!8Ni7xU1o19', 'level': 4, 'strength': 'very strong', 'message': 'password is very perfect'}# to check the strength of your passwordcheck=check("Password")# Output : {'valid': False, 'level': 2, 'strength': 'medium', 'message': 'password is good enough, but not strong'}Dev DependenciesSafefromleptureContributingQuestions, comments, bug reports, and pull requests are all welcome.LicenseThis software is licensed under theMIT license.
Package: rand-password-generator-python
PassWord_GenThe PassWord_Gen is a lightweight and easy-to-use Python package that allows you to generate strong and secure passwords for your applications. Whether you're building a web application, a command-line tool, or anything else that requires password generation, this package has you covered.FeaturesGenerate random passwords with customizable length.Control password complexity with options for including uppercase letters, lowercase letters, digits, and special characters.Easily integrate the PassWord_Gen into your projects.Installationpip install rand_password_generator_python
Package: randpercent
There is a total of 2 functions in this library:
RTrue(perc) —> perc can either be a float or an integer. There is a “perc”-percent chance that the function will return True, otherwise it will return False.
RFalse(perc) —> perc can either be a float or an integer. There is a “perc”-percent chance that the function will return False, otherwise it will return True. Same logic, but the output is reversed.–>   “import randperc”Change Log0.0.2 (4/03/2021)changed name
Package: randpw
randpwRandom password and passphrase generator.Simple password example:$ randpw
Ex8PfCcIvFeT5GMTSimple passphrase example:$ randpw -p
unlit race mandatory kelp kindling carmakerShow information about the generated password:$ randpw -v
tshvJXTYPWtAjyy7


Info:
----------------------------------------
- Password Cardinality: 62
- Password Length: 16
- Password Entropy: 95.3 bits
- Password Strength: Strong
- Estimated time to crack using a supercomputer with roughly
one trillion guesses per second: 687 433 358 yearsGenerate a pt-br passphrase and show information about it:$ randpw -p -i pt-br -v
namorada demandou manteiga bica suavidade imponente


Info:
----------------------------------------
- Wordlist Size: 7776
- Passphrase Words: 6
- Password Entropy: 77.5 bits
- Password Strength: Strong
- Estimated time to crack using a supercomputer with roughly
one trillion guesses per second: 3 187 yearsEFF’s long word listis used for generating the english passphrase.Brazilian Portuguese passphrase is generated using a pt-br wordlist curated by me using the
most frequent spoken words, removing accented and words bigger than 9 and smaller than 4 characters.NotesWorks on Python 2 and Python 3Uses only Python standard library for maximum compatibilityInstallInstall using pip:pip install randpwUsageUsage: randpw [options]

random password and passphrase generator

Options:
  --version         show program's version number and exit
  -h, --help        show this help message and exit
  -s SIZE           size of the password (default: 16)
  -n COUNT          number of passwords to generate (default: 1)
  -c CHARS          characters to use: 'letters', 'numbers', 'mixed' or 'full'
                    - uses only letters, only numbers, letters + numbers or
                    letters + numbers + punctuation (default: mixed)
  -l, --lower       lowercase letters (default: disabled)
  -u, --upper       uppercase letters (default: disabled)
  -p, --passphrase  generate passphrase instead (default: disabled)
  -w WORDS          number of passphrase words (default: 6)
  -i IDIOM          idiom of the wordlist: 'en' or 'pt-br' (default: en)
  -v, --verbose     show some information about the generated passwords like
                    entropy, strength and estimated time to crack (default:
                    disabled)ExamplesRandom password using only letters:$ randpw -c letters
LqmTdVhrlflQanzg32 characters password:$ randpw -s 32
PPb9Qs3HPYDn3T3zddEeSfAuRVXjTHHaGenerate 3 uppercase letters passwords:$ randpw -n 3 -u
FUU1VKT2FNHJ9NEX
BHIX2CBDXBPZELTZ
BHKENUKXWMA4XFX0Lowercase password cointaing letters, numbers and punctuation:$ randpw -c full -l
nq6g'2/x23v~ykf@Generate 3 uppercase passphrases with 8 words each:$ randpw -p -u -n 3 -w 8
CAPTIVE BUFFER PREFIX FREEZABLE ELOQUENT HANDPICK ALARM STAGNANT
PORTFOLIO PAWING SCRUTINY MANIFESTO CAPTIVITY TRAPS STEED IMMORALLY
SHADY YEAST FOOTER EARTHEN SHARPENER APPEASING FOOTPAD SETTLE
Package: randpy
randpy is a tiny set of utilities to generate random data such as strings, numbers, and dates.Basic Data>>>importrandpy>>>randpy.random_boolean()True>>>randpy.random_boolean()False>>>randpy.random_integer(minimum=0,maximum=10)0>>>randpy.random_integer(minimum=0,maximum=10)10>>>randpy.random_integer(minimum=0,maximum=10)3>>>randpy.random_decimal(minimum=0,maximum=1)0.52>>>randpy.random_decimal(minimum=0,maximum=5,digits=4)1.9944>>>randpy.random_choice([1,2,3,4])1>>>randpy.random_choices([1,2,3,4],2)[4,4]>>>randpy.random_choices([1,2,3,4],3)[3,1,1]Generators>>>fromrandpyimportgenerators>>>generators.phone_number()'2776904659'>>>generators.phone_number(international_code=True)'12776904659'>>>randpy.address()'865 Elm'>>>randpy.address()'652 S Blueridge Pl.'>>>randpy.address()'194 Country Ln.'>>>generators.email()'frank@aol.org'>>>generators.email()'kiara@aol.com'>>>generators.city()'Vancouver'>>>generators.city()'Chicago'>>>generators.state()'Rhode Island'>>>generators.state(abbrev=True)'RI'>>>generators.province()'Alberta'>>>generators.province(abbrev=True)'AB'>>>generators.lorem_ipsum()'Lorem ipsum dolor sit amet...'>>>generators.first_name()'Lucia'>>>generators.last_name()'Rossi'>>>generators.full_name()'Theo Santos'>>>generators.url()'https://www.wordpress.org'
Package: randre
randreGenerate random text from regular expression patternsWhat is this?This is a Python module that exploits the internals of Pythonremodule generate random text that matches a given regular expression pattern. I made this mostly for fun. Most patterns will work, but feel free to send feedback if you need something better. Contributions are welcome.Usage>>>randre(r'a[bc]+a')'accbbccbbcccbcccbbbbcccccbbbccbcbbbbbbbcccbcbbccbcbbcbbbcbbccccbcbbccbbccba'>>>randre(r'a[bc]+a')'abbcbcbbbbbccbcbcccbbcbcbbccbcbcbcbbccca'>>>randre(r'a[bc]+a')'abbcbcbbbbcccbccba'>>>randre(r'a([a-z]{1,3})\1')'aufuf'>>>randre(r'a([a-z]{1,3})\1')'assussu'>>>randre(r'INTERNALDATE "'...r'(?P<day>[ 123][0-9])-(?P<mon>[A-Z][a-z][a-z])-'...r'(?P<year>[0-9][0-9][0-9][0-9])'...r' (?P<hour>[0-9][0-9]):(?P<min>[0-9][0-9]):(?P<sec>[0-9][0-9])'...r' (?P<zonen>[-+])(?P<zoneh>[0-9][0-9])(?P<zonem>[0-9][0-9])'...r'"')'INTERNALDATE "36-Wap-0255 18:61:83 +0201"'Command line usage$ python -m randre "(foo|bar)+"
barbarfoofoofoobarfoofoobarbarbarbarbarbarfoobarfoofoofoofoofoobarfoobarfoobarfoofoobarbarbarbarfoobarbarbarbarfoobarfoofoofoobarbarbarfoofoofoofoofoofoobarbarfoofoobarbarbarbarfoofoobarbarbarbarfoobarbarfoobarbarbarfoobarbarfoofoofoofoofoobarbarbarbarbarfoobarbarbar
Package: randseal
randsealSimple package that can produce a seal image. The image is then output as adiscord.Fileordiscord.Embedfor discord.py or py-cord.Usage example. Bot can be a commands.Bot in discord.py or a discord.Bot in py-cord.importrandsealimportdiscordbot=discord.Bot(intents=discord.Intents.default())client=randseal.Client()@bot.command()asyncdefsealimg(ctx):file=awaitclient.asyncFile()awaitctx.respond(file=file)@bot.command()asyncdefsealembed(ctx):awaitctx.respond(embed=client.Embed())bot.run("token")This package also contains several utility functions for making discord bots.
Package: randsecret
RandsecretGenerate a secure randomly generated secret, that is preserved through restarts.fromrandsecretimportcreate_secretSECRET=create_secret("./test.secret",32)>>>b'W;\xd8&\r9\x1e\xc3\xfa\xdc\xa0\xc6\x05+\xde\x84\xd1\x8a\xbe\xcf`-$\xc1\x9d-n\x07P\xa1\x95N'Deleting A secretfromrandsecretimportcreate_secretcreate_secret("./test.secret",32)>>>b'g\x05\x8d\xd2\x83\x1el\xe3\x05\xbfr\xe0)\x9dn\xe5\xe2X\x14\x0c)\xf1sZ\xad\xb4\xeed\x0c\xd6p\x90'importosos.unlink("./test.secret")create_secret("./test.secret",32)>>>b'\x90\xe5\\?%\xab\xba\xbb\xe7,\xf9\xe1\x9e\xa8\x11y\x0f\xce\xc4a\xbd\xbaq}x\x11\xea\x8a\xc9/\x12\xd7'
Package: randSelector
Description:
..\randSelector\randSelector\rand_selector module contains a function select_rand_item,
that can select a random a item from a data set with its associated probabilitypip instalattion:
give the following command to add the module to your environment:
'pip install randSelector'get access to the functions by adding the following to the top of your script:
'from  randSelector import rand_selector'to test, run command:
select_rand_item( ((1, 0.6), (3, 0.4))), seed_num=10) from any scriptOR

run ..\MsAssesment\randSelector\unitTest\test_rand_selector.py from the zipped folder after installing pip package above
this will unit test the module.Also, additional tests can be written to extend test covergage
Package: randssl
randssl - 随机sslA Python library for generating random SSL. Used to bypass TLS fingerprint checking rules generated by algorithms such as JA3.一个可以生成随机SSL的Python库，可以被用来绕过JA3等算法生成的TLS指纹检查规则。Quick start - 快速开始Install - 安装pipinstallrandsslUsage - 使用requestsimportrequestsfromrandsslimportrandsslfromrequests.adaptersimportHTTPAdapterclassRandsslAdapter(HTTPAdapter):definit_poolmanager(self,*args,**kwargs):context=randssl()kwargs["ssl_context"]=contextreturnsuper(RandsslAdapter,self).init_poolmanager(*args,**kwargs)withrequests.Session()assess:sess.mount(prefix="https://www.baidu.com",adapter=RandsslAdapter())resp=sess.get(url="https://www.baidu.com")print(resp.content)aiohttpimportaiohttpimportasynciofromrandsslimportrandsslasyncdefmain():asyncwithaiohttp.ClientSession()assess:asyncwithsess.get(url="https://www.baidu.com",ssl=randssl())asresp:print(awaitresp.content.read())asyncio.run(main())Todo 未来Collect the TLS blacklist of WAF - 收集WAF的TLS黑名单
Package: rand-string
rand-stringGenerates a random string of a specified length.UsageCurrently there are 5 types:uppercaselowercaseupperloweralphanumericalasciiYou can probably guess what each one would createThe function requires 2 parameters type and length; Type of course is the above.importrand_string.rand_stringasrandrand.RandString(type,length)Now lets look at some examplesuppercase:print(rand.RandString("uppercase",10))# Output: TPDROEAVRYlowercase:print(rand.RandString("lowercase",10))# Output: mdvsewzkwfupperlower:print(rand.RandString("upperlower",10))# Output: YjHFGzysFxalphanumerical:print(rand.RandString("alphanumerical",10))# Output: Fy0Nbqno6Bascii:print(rand.RandString("ascii",10))# Output: jtj-NV<PSV
Package: randStringify
Can generate random strings of upper and lowercase alphabets.
Requires length of string or number of words as input.## INSTALLATION
pip install randStringifyFunctions :
withLength(length , custom=’str’)
withWords(wordlimit , custom=’str’)Import :
from genstr as rUse :
r.generate.withLength(50)
r.generate.withWords(10)prototype = ‘asdfwe234’
r.generate.withWords(10 , custom=prototype)