Saravanan666/pypi-org huggingface dataset:
Package: random-names
random_namesConvert int to random name, like tree_dance and convert it back to same int.Likegit-namewhich converts hashes to memorable names and back.Also like theMnemonic Major Systemwhich converts
strings of numbers it phrases to aid in memorization, implemented heremnemonic-major-encoderIn action here:https://major-system.info/en/Usagefrom random_names.make_names import number_to_name,number_from_name

# TODO: needs a user specified separator
name = number_to_name(100,"prefix","q")
print(name) # prefix_q_activated

number = number_from_name(name)
assert number==100WhyLets say that your users need to type in a long number, 48342342. It would be easier to
type in tree_dance. But your app still needs that number, so you need to convert it
back. This is similar todocker container names, except reversable.HowI map 10,000 words to 4 digits, twice. That yields two words
covering 100,000,000 numbers.If you use a short word list, you can't generate enough names.If you use any dictionary, you get a lot of funny, obscene or offensive names. So
I ran the world list through cuss word detection & removed most of the worst.DocsTo doRelated Pypi PackagesCrypocurrency relatedmnemonicWords to cryptocurrency "wallet"Mneumonic Major Systemmajor_systemmnemonic-major-encoderConverting arabic numbers, e.g. 22, to spoken equivalent, e.g. twenty-two and back.inflectConverts, 22 to twenty-twowords2numConverts twenty-two to 22.num2wordsConverts 22 to twenty-twotext2numConverts twenty-two to 22. Multilingualnum2rusConverts 22 to Russian currencynum2fawordsConvert number to Persianzahlwort2numConvert german to 22.Converting numbers to a shorter string, likeAscii85num-shortyascii85Random names, just random names. No way to convert to a numberpypi searchTo many to list, mostly just a function or two.
Package: randomness
Randomness Sources for PythonCurrent Featuresunified API to randomness sourcesAPI access to the system's true randomness generatora list of randomness providers to choose fromprovider flags which you can filter forPlanned Featurescomprehensive tests for randomness quality (dieharder, ENT, ...)more PRNGs (Wichmann-Hill, xorshift, ...)more TRNGs (VIA Padlock RNG, external hardware, ...)better API to filter and sort providerschoice between wasteful and conserving usage of random bits,
the latter most likely with a mixinadapter to provide the Numpy API for all randomness sources,
most likely by way of a mixinUsageYou can instantiate a randomness source directly if you know it's there
(or if you handle the exception in case it's not):fromrandomnessimportURandomtry:fromrandomnessimportRandomexceptImportError:passrandom=URandom()Or you can peruse the list of providers and select one out of those
(possibly filtering the list first):fromrandomnessimportPROVIDERS,ProviderFlag# filter randomness providersmy_providers=[providerforproviderinPROVIDERSifprovider.flags&ProviderFlag.NEVER_BLOCKING]# dump provider namesforproviderinmy_providers:print(provider.name)# instantiate a randomness contextchosen_provider=my_providers[0]random=chosen_provider.cls()From this point forward usage is the same as if you had donefrom random import Random; random = Random().# perform a die rolldie_result=random.randint(1,6)print(die_result)# select a random cheeseCHEESE_SHOP_PRODUCTS=["Tilsit","Cheddar","Roquefort","Gouda"]cheese=random.choice(CHEESE_SHOP_PRODUCTS)print(cheese)# draw lottery numbersamount_of_numbers=49amount_to_draw=6series=random.sample(range(1,amount_of_numbers+1),amount_to_draw)print(series)
Package: randomness_beacon
This is a python module to simplify using the [NIST randomness beacon](http://www.nist.gov/itl/csd/ct/nist_beacon.cfm), a public source of truly random numbers.From the project description:> The Beacon will broadcast full-entropy bit-strings in blocks of 512 bits every 60 seconds. Each such value is time-stamped and signed, and includes the hash of the previous value to chain the sequence of values together.Using the python wrapper is easy. To generate a random number:b = Beacon()
print b.last_record()[‘outputValue’]The Beacon object will cache the timestamp of the last call and use that for the basis of next() and previous() calls.There’s also a generator for convenience:for num in random_nums(3):print num[‘outputValue’](Note, as the documentation says,WARNING: DO NOT USE BEACON GENERATED VALUES AS SECRET CRYPTOGRAPHIC KEYS.)
Package: random-neural-net-models
random neural netsImplementations of a random selection of artificial neural net based models and methods.Python versionDevelopment is done usingpyenv, pinning the python version to the one in the file.python-version.Installation (on Linux)Package + notebooks:git clone https://github.com/eschmidt42/random-neural-net-models.git
cd random-neural-net-models
make installPackage only:pip install random-neural-net-modelsUsageSee jupyter notebooks innbs/for:perceptron:perceptron.ipynbbackpropagation:backpropagation_rumelhart1986.ipynbconvolution:convolution_lecun1990.ipynbcnn autoencoder:mnist:cnn_autoencoder_fastai2022.ipynbfashion mnist:cnn_autoencoder_fastai2022_fashion.ipynbvariational autoencoder:dense:dense_variational_autoencoder_fastai2022.ipynbcnn+dense:cnn_variational_autoencoder_fastai2022.ipynboptimizers:stochastic_optimization_methods.ipynbresnet:resnet_fastai2022.ipynbunet:unet_fastai2022.ipynbdiffusion (unet + noise):diffusion_fastai2022.ipynbmingpt:mingpt_sort.ipynbmingpt_char.ipynbmingpt_adder.ipynb
Package: random-nipple-player
Random Nipple Player音声作品「乳首オナ指示でカリカリタイム」(RJ323807)用のプレイヤーWindows, Linuxで動作確認Macは音声が出ない場合がある使い方事前に上記の音声作品を購入し、分割ファイルをダウンロードして解凍しておく【2021.07.01】乳首オナ指示でカリカリタイムのみに対応(以下の画像参照)下記の方法で起動した画面で作品フォルダを指定ダウンロードした実行ファイルから起動Releasesから対応する OS(Windows, Macos, Linux)のファイルをダウンロード, 解凍し実行pipからインストールして起動# 必要: libasound2-dev, tk-inter >= 8.6pipinstallrandom-nipple-player
rnp# 実行すると画面が起動する作者Haruna (eggplants)ライセンスMIT
Package: random-number-list
random_number_listCreates a list of randomly drawn numbers from a larger list.  Can be used to pick lottery numbers.InstallationRun the following to install:pipinstallrandom-number-listUsagefrom random_number_list import RandomNumberList

new_list = RandomNumberList.return_list(number, pick, put_back)

print(new_list)

print(RandomNumberList.verify_number(number))
print(RandomNumberList.verify_pick(number, pick))Examplenew_list = RandomNumberList.return_list(15, 5, False)

print(new_list)returns:[12, 9, 1, 8, 4]Basis of operationWhen the object is called, you pass the following variables:number:The number of items in the pool to be picked from.example:number = 5 will create a pool [1, 2, 3, 4, 5]pick:The number of items to be randomly drawn from the pool.example:pick = 2 will return a list of the randomly drawn items, say [4, 2]put_back:Whether an item is put back into the pool prior to the next draw.Input as a boolean True or False, with a default of False.error_text:Optional Boolean variable with a default of False.If True is passed, a simple explanatory error message is output.Note:digits after a decimal point are ignored.5, 5.0, 5.2 & 5.9 all equate to 5MethodsRandomNumberList.return_list(number, pick, put_back, error_text)Used to create the list of randomly drawn numbers:RandomNumberList.verify_number(number, error_text)Validates that a number greater than or equal to one has been passed.RandomNumberList.verify_pick(number, pick, error_text)Validates that:number: is greater than or equal to onepick:   is greater than or equal to oneANDless than or equal tonumberInstall RequiresThis package uses the following standard library packages:randomIn ClosingThis package has been built as part of my learning Python so may contain coding that is not best practice.  I am happy for more experienced Python users to feedback any areas that could be improved.  Once I get to understand uploading packages to PyPI I will set up development dependencies.
Package: randomnwn
Random NWNsPython package for modelling and analyzing random nanowire networks. This package was a summer research project lasting from May 2021 to August 2021 under the supervision of Dr. Claudia Gomes da Rocha.For future additions, feel free to fork the repository, but please give credit where it's due, either here or to Marcus Kasdorf.Table of ContentsInstallationUsageUninstallationInstallationRandom NWNs can be installed from PyPI for quick use or installed manually for development.LatestThe latest version can be installed from PyPI:pip install randomnwnDevelopmentFor convenience, one can use theenvironment.ymlfile with Anaconda to create a new
virtual environment with all the required dependencies.conda env create -f environment.ymlThis will create a new environment namedrandomnwn. To activate the environment, use:conda activate randomnwnThen, to install the package, use pip. One can install the package in the usual way
above, or install it in editable mode to allow for local development. Navigate to the
base folder and run:pip install -e .UsageNanowire network objects are simplyNetworkXgraphs with various attributes stored in the graph, edges, and nodes.>>>importrandomnwnasrnwn>>>NWN=rnwn.create_NWN(seed=123)>>>NWN<networkx.classes.graph.Graphat0x...>>>>rnwn.plot_NWN(NWN)(<Figuresize800x600with1Axes>,<AxesSubplot:>)See thewiki pagesfor more detail on usage.UninstallationTo uninstall the package, use:pip uninstall randomnwn
Package: random-object-id
Random ObjectIdMotivationThis is a toy project without any outlandish goals. Occasionally I
needed a MongoDB ObjectID for a unit test. This saves a DB query,
startingmongolocally, writing more than a line of Python, or
visiting a website. I also wanted to learn more about writing &
deploying Python packages.DependenciesNoneSupportspy36+. See GitHub workflowhere.Installation$pipinstallrandom-object-idUsage$random_object_id-husage: random_object_id [-h] [-l]Generate a random MongoDB ObjectIdoptional arguments:-h, --help      show this help message and exit-l, --longform  prints the ID surrounded by ObjectId("...")fromrandom_object_idimportgenerategenerate()# => '5ecd3bbf875e60b4166f6699'Examples$random_object_id55348611a56c10449ab80a4f$random_object_id-lObjectId("553486125ed592a10c4e8e6b")
Package: random-open-port
random-open-portThe random open port provides some helpful functionality for getting a random port that isn't
tracked identified as a known port inhttps://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers#Registered_ports.Installationpip3 install random-open-portRequirementsPython 3+Using from the command line.Simply runfoo@bar:~$random-portRandom Port: 36952ExamplesGetting a random port.from random_open_port import random_port
port = random_port()Getting the affiliated ports.from random_open_port import get_taken_ports
taken_ports = get_taken_ports()Getting the ports directly from Wikipedia.from random_open_port import get_wiki_ports
wiki_ports = get_wiki_ports()Getting the ports from the cached file.from random_open_port import read_ports_file
cached_ports = read_ports_file()
Package: random-otp
Random OTP GeneratorTherandom-otppackage is a Python library for generating random OTPs of various types. It can generate numeric, alphabetic, or alphanumeric OTPs of a specified length.InstallationYou can installrandom-otpusingpip:sh
pip install random-otpUsageTo userandom-otp, you can import thegenerate_numeric_otp,generate_alphabetic_otp, andgenerate_alphanumeric_otpfunctions from therandom_otp.generatormodule:python
from random_otp.generator import generate_numeric_otp, generate_alphabetic_otp, generate_alphanumeric_otpnumeric_otp = generate_numeric_otp(6) # generates a 6-digit numeric OTP
alphabetic_otp = generate_alphabetic_otp(8) # generates an 8-character alphabetic OTP
alphanumeric_otp = generate_alphanumeric_otp(10) # generates a 10-character alphanumeric OTP
Alternatively, you can use the command line interface provided by therandom-otp-generatorscript. To generate an OTP, run:sh
random-otp-generator
You will be prompted to enter the length and type of OTP you want to generate.LicenseThis package is licensed under the MIT License. See theLICENSEfile for details.
Package: random-otp-generator
Random OTP GeneratorThe Random OTP Generator is a Python package that provides a simple and secure way to generate One-Time Passwords (OTPs). It utilizes cryptographic random number generation to ensure the randomness and security of the generated OTPs. This package can be useful in various scenarios, such as authentication systems, verification codes, and more.InstallationYou can install the package using pip:pipinstallotp-generator# Usage```shell
fromotp_generator.otpimportgenerate_otplength=6otp=generate_otp(length)print("Generated OTP:",otp)PleasecopyandpastetheabovecontentintoyourREADME.mdfile,makingsuretoadjusttheURLsandrepositoryinformationaccordingly.# AttentionPermissionisherebygranted,freeofcharge,toanypersonobtainingacopy
ofthissoftwareandassociateddocumentationfiles(the"Software"),todealintheSoftwarewithoutrestriction,includingwithoutlimitationtherights
touse,copy,modify,merge,publish,distribute,sublicense,and/orsell
copiesoftheSoftware,andtopermitpersonstowhomtheSoftwareis
furnishedtodoso,subjecttothefollowingconditions:

Theabovecopyrightnoticeandthispermissionnoticeshallbeincludedinall
copiesorsubstantialportionsoftheSoftware.

THESOFTWAREISPROVIDED"AS IS",WITHOUTWARRANTYOFANYKIND,EXPRESSOR
IMPLIED,INCLUDINGBUTNOTLIMITEDTOTHEWARRANTIESOFMERCHANTABILITY,
FITNESSFORAPARTICULARPURPOSEANDNONINFRINGEMENT.INNOEVENTSHALLTHE
AUTHORSORCOPYRIGHTHOLDERSBELIABLEFORANYCLAIM,DAMAGESOROTHER
LIABILITY,WHETHERINANACTIONOFCONTRACT,TORTOROTHERWISE,ARISINGFROM,
OUTOFORINCONNECTIONWITHTHESOFTWAREORTHEUSEOROTHERDEALINGSINTHE
SOFTWARE.
Package: randomouse
RandoMouseJust make my mouse move randomly.Author: Mark PradoRequirements:Windows 10Python 3.7+PipInstallation:pip install randomouseorgit clone https://github.com/mrkprdo/RandoMouse.gitThen use it as a regular python module.Usage:fromrandomouseimportRandoMouserm=RandoMouse()#Runs the default setup timer=60secs and speed=0.001secs (mouse travel)rm.start()#set timerrm.set_timer(600)#set speedrm.set_speed(1)
Package: random-partition-py
Generate random integer partitionsThis is a python wrapper for the rust craterandom-partitionfor generating integers partitions with a given number of parts.Exampleimportrandom_partition_pyasrpp# generates a single partition of 20 into 5 partsprint(rpp.random_partitions(20,5))# generates multiple partitionsprint(rpp.random_partitions(20,5,3))# same thing but with an additional seed (note that the seed is kw-only)print(rpp.random_partitions_seeded(20,5,3,seed=0))
Package: random_password
# random_password
Create a random password.## Usage` >>> from random_password import random_password >>> random_password() 'Vs6ieNxR' >>> random_password(length=16) 'BdeBxlOdSboH59zI' >>>random_password(characters='helloworld') 'rrelhodd' >>> random_password(length=4,characters=['hello','there', 'my','world'])'hellomytherethere' `
Package: random-password-generator
Random password GeneratorA minimal and custom random password generator.No dependencies.Generate a simple password of default length 6-16.Generate a password with custom properties.Generate a password from given characters.Generate Non Duplicate Password.Available athttps://random-pg.herokuapp.com/(API and WEB versions are available @https://github.com/suryasr007/rpg-webrepo)[NOTICE] API and WEB versions are now moved tohttps://github.com/suryasr007/rpg-webUsageInstall the package.Import the package.Create an instanceModify the default properties. (Optional)Generate the password (Default length of password 6-16 unless specified via properties).pipinstallrandom-password-generatorfrompassword_generatorimportPasswordGeneratorpwo=PasswordGenerator()pwo.generate()ConfigurationpropertyDescriptionDefaultminlenMinimum length of the password6maxlenMaximum length of the password16minucharsMinimum upper case characters required in password1minlcharsMinimum lower case characters required in password1minnumbersMinimum numbers required in password1minscharsMinimum special characters in the password1Update V2.2.0Application is now minimal(No dependencies). The API and WEB version are moved tohttps://github.com/suryasr007/rpg-webUpdate V2.1.0Application usessecretsmodule instead ofrandommodule on Python environments above 3.6.Update V1.1.0From version 1.1.0, Characters can be excluded from the required password by setting the properties on PasswordGenerator objectexample:pwo=PasswordGenerator()pwo.excludeuchars="ABCDEFTUVWXY"# (Optional)pwo.excludelchars="abcdefghijkl"# (Optional)pwo.excludenumbers="012345"# (Optional)pwo.excludeschars="!$%^"# (Optional)Generate a custom passwordpwo=PasswordGenerator()# All properties are optionalpwo.minlen=30# (Optional)pwo.maxlen=30# (Optional)pwo.minuchars=2# (Optional)pwo.minlchars=3# (Optional)pwo.minnumbers=1# (Optional)pwo.minschars=1# (Optional)pwo.generate()Generate a password from given characterspwo=PasswordGenerator()# It takes two arguments# required characters and length of required passwordpwo.shuffle_password('sdafasdf#@&^#&234u8',20)Generate Non Duplicate Passwordpwo=PasswordGenerator()# length of required passwordpwo.non_duplicate_password(20)ContributionsContributions are welcomed via PR.LicenseMIT
Package: random-password-generator-cli
Random Password GeneratorWhat is rpg?Rpgstands forRandomPasswordGenerator, it's a utility command line tool that allows you to generate random entropic and safe password.
Rpg check by default every single password that generates intoHave I Been Pwned Passwordsleaks database.Installationpip3 install random-password-genrator-cliUsagerpg [OPTIONS] <pass-length><pass-length>it's your desire password length, please note that it MUST BE between 12 and 90 characters
We do this to ensure to provide strong passwords.
In our opinion you should never use a password lower then 16 characters.[OPTIONS]are:-n, --number <pass-number>: generate<pass-number>passwords-o, --output <out-file>: write generated passwords into<out-file>--exclude-charsets [l,u,d,p]: removelowercase,uppercase,digits orpunctuation charsets *--no-safe:  don't check passwords validity inHave I Been Pwned Passwords*-v, --verbose: print verbose output-V, --version: print rpg version-h, --help: print help text*: Using this option will print a warning message. The execution will then proceed as defined by the user.ExamplesGenerate a 20 character password:$ rpg 20
Passwords:
y2-1Uf/XAR5K<2[2x~gb

The entropy of generated password is: 131.09177703355275Generate five 20 character passwords$ rpg -n 5 20
Generating passwords  [####################################]  5/5
Passwords:
87VuRR4{O1?5=ngBzm(-
$.G9D-t7~8Y2M0mk>uZw
AL74H2tM-8a|0(D'z{gf
4[+WfS9\6u3FeP"Gzf%6
"Blox37j8`\^T3h2ALH)

The entropy of generated password is: 131.09177703355275Generate a 20 character password without lower-case charsets:$ rpg --exclude-charsets l 20
You are going to generate passwords without one or more of default charsets!
RPG cares a lot for your security, it's recommended to avoid this practice if possible!

Passwords:
>C1#8A`7D7V|]]95RB\7

The entropy of generated password is: 121.7492568250068You can see here the warning messageGenerate five 20 character passwords and save them into pw-out.txt$ rpg -n 5 -o pw_out.txt 20
Generating passwords  [####################################]  5/5pw-out.txt$ cat pw_out.txt 
Passwords:
8YvW(8m5Gy'\i1G_U!2e
l64@%`V27kOE^rCyG2o]
El_0@19$#reG2ncLK^O4
WAAP;7`8=f{3gy4He8x&
4Y<zl2-4Xi*e*X11(VTz

Entropy: 131.09177703355275

Password strength is determined with this chart:
< 28 bits       = Very Weak; might keep out family members
28 - 35 bits    = Weak; should keep out most people, often good for desktop login passwords
36 - 59 bits    = Reasonable; fairly secure passwords for network and company passwords
60 - 127 bits   = Strong; can be good for guarding financial information
128+ bits       = Very Strong; often overkillAdviceUserpgto generate random entropic passwordAvoid to use a short password, try to use only passwords with 16+ characters.Do not share your passwords with any one.Do not reuse a password.
Package: randompasswords
A simple GUI program that takes user input for keywords, minimum password length,
maximum password length, and any special characters to generate random password possibilities
derived from the input.InstallationSave the .py files under randompasswords and run it with python3. See requirements.txt for any module requirements and install them with pip
Requires python3. Check python version withpython --versionIf not installed, install python3 on this urlhttps://www.python.org/downloads/Or use pip to install randompasswords directlypip install randompasswordsUsageRun __main__.py and follow instructions on GUI windowAcknowledgmentThank you to Brett Beekley, my mentor for encouraging me and
helping me think up this idea for a side projectLicenseMIT
Package: random-permutation
Random PermutationThis module provides a classRandomPermutationthat can be used to
generate a random permutation of a given length in O(1) time and space.InstallationTo install the module, run:pip install random_permutationUsageTo use theRandomPermutationclass, import it from therandom_permutationmodule:fromrandom_permutationimportRandomPermutationn=2**20p=RandomPermutation(n)forxinp:print(x)# orforiinrange(n):print(p[i])This will output the elements of theRandomPermutationobject. You can
use theseedparameter to vary the permutations and thenum_ciphersparameter to control the number of ciphers used.TestingTo run the unit tests for theRandomPermutationclass, run:python -m unittest tests.test_permutationLicenseThis module is licensed under the MIT License.
Package: random-pesel
Random PESELRandom PESEL number generator.PESEL is the national identification number used in Poland.Instalationpip3 install random-peselUsagefrom random_pesel import RandomPESEL
pesel = RandomPESEL()

# Generate random PESEL number
pesel.generate()

# Generate random male PESEL number
pesel.generate(gender='m')

# Generate random female PESEL number
pesel.generate(gender='f')

# Generate random PESEL number with min age defined
pesel.generate(min_age=18)

# Generate random PESEL number with max age defined
pesel.generate(max_age=30)
Package: random-points-on-polygon
random-points-on-polygonA simple Python library based onShapelyto generate random points on Polygon or MultiPolygonInstallationFromPyPIdirectly:pip install random-points-on-polygonExamplesGenerate 10 random points on a polygonfromrandom_points_on_polygonimportPointsGeneratorfromrandom_points_on_polygon.samplesimportPOLYGON_SAMPLE_1pg:PointsGenerator=PointsGenerator(POLYGON_SAMPLE_1)pg.generate(10)Get Polygon (or MultiPolygon) including generated points as GeoJSON.geojson_output:dict=pg.geojson()Get generated points as GeoJSONgeojson_output:dict=pg.points_as_geojson()Get Polygon (or MultiPolygon) as GeoJSONgeojson_output:dict=pg.polygon_as_geojson()Graphically view the resultYou can copy and paste thegeojson_outputcontent intogeojson.ioto graphically view the result
Package: random-prefix-generator
Random IP/Prefix Generatorrandomprefixgeneratoris a simple Python module for generating random IPv4 and IPv6 addresses and subnets.FeaturesGenerate random IPv4 or IPv6 addresses.Generate random IPv4 or IPv6 subnets with a specified prefix length.Control the range of prefix lengths for generated subnets.InstallationYou can install myIp using pip:pip install randomprefixgeneratorUsagefrom randomprefixgenerator import RandomPrefixGenerator

# Create a new myIp object for generating IPv4 addresses
ipv4_gen = RandomPrefixGenerator(4, mode='ip')

# Generate a random IPv4 address
ipv4_addr = next(ipv4_gen)

# Create a new myIp object for generating IPv6 subnets with prefix lengths between 64 and 120
ipv6_gen = RandomPrefixGenerator(6, mode='prefix', min_length=64, max_length=120)

# Generate a random IPv6 subnet
ipv6_subnet = next(ipv6_gen)DependanciesPython 3.xipaddressmodule