Saravanan666/pypi-org huggingface dataset:
Package: random-profile
ðŸ‘‰ Python Module To Generate Random Profile Data ðŸ‘ˆRandomProfileis a powerful and simple tool to generate fake data. You can use it to mock classes, populate databases and much more. You can check the full documentation here. Check onPypiDocumentationDocumentation is available atReadTheDocsUpcoming FeaturesSupport for more languagesChangelogCheck theChangelogfor the latest changes.ContributingCheck theContributingfor the contribution guidelines.LicenseThe project is licensed under theMITlicense.Contributors
Package: random-prompt
Random PromptA simple python library for fast random prompt generation.RequirementsLinux, Windows, MacOSPython 3.8.+Install packagepipinstallrandom_promptInstall the latest versiongitclonehttps://github.com/bes-dev/random_prompt.gitcdrandom_prompt
pipinstall.Examplefromrandom_promptimportRandomPromptGeneratorgenerator=RandomPromptGenerator()# generate single promptprint(generator.random_prompt())# generate batch of promptsprint(generator.random_prompts(10))
Package: randomproto
randomproto: Random protobuf object generatorRefer to thedocumentationfor API reference.Installationpip install randomprotoUsageAn example of pre-compiled Python file can be found
inexample2_pb2.py.>>>importrandomproto>>>proto=example2_pb2.TypeMessage>>>msg=randomproto.randproto(proto)>>>msgutm_source:"qv"utm_medium:"dr"utm_campaign:"sj"bwp_lp:""usergroup:""step:-15511cartTime:-61655buyTime:64308searchTime:59939landingTime{value:1533581008scale:MINMAX}stepsAfterBuy:13140lastSessionTime{value:118924455scale:SECONDS}landingReferrerDomain:"n"adGroupID:-30428initiateCheckoutTime:11859
Package: random-proxies
random_proxiesPython package to generate a random proxy on the fly!FeaturesSupportsHTTP,HTTPSorSOCKSproxy.Currently support SOCKS over HTTP only with version 4.Fetch specific country proxy by using country name or country code.Fetch elite / transparent / anonymous proxies respectively.Fetch directly fromfree-proxy-list.For better response time, fetch from an elasticsearchcache_server.cache_serveris updated via routines describedhereExample usage$gitclonehttps://github.com/2knal/random_proxies.git`$cdrandom_proxies/$pipinstall-rrequirements.txtOpen python interpreter. (Supports version 3.7+)>>>fromrandom_proxiesimportrandom_proxy>>>random_proxy()'23.101.2.247:81'Refer more exampleshereTODOPort to MongoDBPublish package version 0.0.1Return meta data, response structure foundhereScrape proxies from other sourcesAdd support for SOCKS version 5Implement REST API to allow other languages to interface with itSetup documentation pageAdd unit testsContributingWe are open toenhancements&bug-fixes😊. Take a lookhereto get startedFeel free to add issues and submit patchesAuthorKunal Sonawane -2knalLicenseThis project is licensed under the MIT - see theLICENSEfile for details.
Package: randompw-generator
Random Password GeneratorPython package to generate random passwords.UsageInstall the packagepipinstallrandompw-generatorImport the packagefromrpgimportRandomPasswordCreate an instance of the RandomPassword and generate passwordpw=RandomPassword()pw.generate()ConfigurationThe default length of the password is 15, it can be changed at the time of instantiation.# It will generate a password of the length of 20pw=RandomPassword(20)pw.generate()Length can also be increased by specifying the number of each type of character.example :pw=RandomPassword()# Set the number of lowercase character to 10.pw.set_lower(10)# Set the number of lowercase character to 9.pw.set_upper(9)# Set the number of lowercase character to 3.pw.set_digits(3)# Set the number of lowercase character to 4.pw.set_spchars(4)# It'll generate a password contaning 10 lowercase# 9 upppercase, 3 digits and 4 special characters.pw.generate()
Package: random-python-package-within-monorepo
Just random useless package for testing 1Usually, things would be undersrcdirectory.
But we are going to name it with the package name as this is a monorepo...?InstallationRun the following to install:pipinstallhelloworldUsagefrompython_package_1importrandom_number# Generate random numberrandom_number.RandomNumberGenerator().run()Developing python_package_1To install this, along with the tools you need to develop and run tests, run the following in your virtualenv:$pipinstall-e.[dev]We are installing current package with the dev extras.
Package: random-quote-generator-by-eduuardoperez
Random quote generatorRandom quote generator to return a randomly selected quote from a set of quotes. Created fromPython Project WorkflowGenerate documentationTo generate thedocsfolder you can execute Sphinx with Poetry:poetry run sphinx-quickstart docsPublic documetation on Read The Docshttps://random-quote-generator-by-eduuardo-perez.readthedocs.io/en/latest/
Package: random-quotes-generator
random-quotes-generatorA Python package to generate random quotes.IntroductionTherandom-quotes-generatorpackage is designed to provide users with a simple and easy way to generate famous random quotes. By using this package, you can easily integrate random quotes into your Python projects.InstallationTo install the package, use the following command:pipinstallrandom-quotes-generatorUsageImport therandom_quotes_generatormodule and call theget_random_quotes()function:importrandom_quotes_generatorquote=random_quotes_generator.get_random_quotes()print(quote)ExampleHere's an example of how to use therandom_quotes_generatorpackage:importrandom_quotes_generatorquote=random_quotes_generator.get_random_quotes()print("Random Quote:")print(quote)ContributingWe welcome contributions from the community. If you have any suggestions, bug reports, or feature requests, please create an issue or submit a pull request.AcknowledgmentSpecial thanks toSeun Fashinafor developing this package.LicenseThe MIT License (MIT)Copyright (c) 2023 Seun FashinaPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: random-readline
random-readlineRandomized fast readline for large text files.Installpipinstallrandom_readlineUsagefromrandom_readlineimportreadline# lines are shuffled by default.n_lines,read=readline("text.txt")forlineinread():print(line)Sequencial readfromrandom_readlineimportreadline# lines are not shuffled as it is.n_lines,read=readline("text.txt",shuffle=False)forlineinread():print(line)Gzipped fileimportgzipfromrandom_readlineimportreadlinen_lines,read=readline("text.txt.gz",opener=gzip.open)forlineinread():print(line)Control the frequency of seekingSince random seeking can be very slow with gzipped files, the readline function has an optionchunk_sizeto control the frequency of seeking.This value is set to1by default, which means that a seeking is performed every single line to read the entire file completely at random.Increasing the value ofchunk_sizewill reduce the frequency with which seekings are performed, thus improving performance in exchange for randomness.importgzipfromrandom_readlineimportreadline# lines will be randomized by every 100 linesn_lines,read=readline("text.txt.gz",opener=gzip.open,chunk_size=100)forlineinread():print(line)
Package: random-recipes
Random RecipesRecipes to generate random instances of various types, beyond the scope ofrandom.Python'srandomimplements generators for pseudo-random bytes, integers, and sequences.
Inrandom-recipeswe collect additional functions to generate random instances of common object types, collection types, and file types that may be useful.RecipesObjectsObject TypeFunctionboolrandom_boolbytesrandom_bytesdecimal.Decimalrandom_decimaldatetime.daterandom_datedatetime.datetimerandom_datetimefloatrandom_floatfractions.Fractionrandom_fractionintrandom_intstrrandom_strCollectionsCollection TypeFunctiondictrandom_dictcollections.abc.Iterable[dict]random_dictsFilesFile ExtensionFunction.csvrandom_csvInstallationInstall the library withpipfromPyPi:pip install random-recipesDevelopmentrandom-recipesis developed by@ipear3.
This is a low-commitment project for practicing Python packaging, but it does try to contribute something of value.
Suggestions, comments, and contributions are welcome.This project draws inspiration frommore-itertools, a well-designed, simple extension to a Python'sitertools.Packaging & Dependency ManagementGet started with development by installing the project withdevandtestdependency groups viaPoetry:poetry install --with devFormattingWe useBlackto format our Python code.
We enforce black through apre-commithook defined in.pre-commit-config.yaml.TestingWe usepytestfor testing, and our tests are located in/tests.
We run our tests during the pre-push hook,pytest.We usecoveragefor test coverage, and we assert our test coverage is 95%.
Test coverage is checked during the pre-push hook,coverage.DocumentationWe usegenbadgeto generate ourtestsandcoveragebadges.
Badges are generated during the pre-push hooksgenbdage-testsandgenbadge-coverage.Releases, Tagging, and VersioningReleases are automatically versioned by the poetry project's version inpyproject.toml.
Developers are responsible for incrementing the project version manually when they modify source code.
If they forget, the pre-push hook,poetry-auto-semverwill increment the patch version by 1.To create a release onGitHubandPyPi, push a commit to themainbranch that affects any of the paths:random_recipes/**pyproject.tomlpoetry.lockTherelease actionwill automatically:Install the projectTest the projectAssert test coverage is 95%Build the project for distributionCreate a GitHub releaseAutogenerate release notesUpload distribution filesPublish the project to PyPi
Package: random-regex
regex_generatorGenerate Random RegexInstallpipinstallrandom-regexUsageimportrefromrandom_regeximportRegexGeneratorfromrbloomimportBloom# This is a faster bloom filter implemented in rust.sregex_generator=RegexGenerator(bloom_cls=Bloom).generate()defassert_all_match(examples,regex):re_com=re.compile(regex)forexinexamples:assertre_com.fullmatch(ex)isnotNonefori,instanceinenumerate(regex_generator):ifi>1000:breakregex=instance['regex']complexity=instance['complexity']length=instance['length']examples=instance['examples']re.compile(regex)assertlen(regex)==lengthassertlen(examples)==complexityassert_all_match(examples,regex)print(regex)((?:(([\s]C\s))))
((\sR2{1,3}\+[m]))
((3{1}[\(-y]a\[))
((\d{1,1}[^08]1A))
(([3-c]))
(([^Rp][CJ]f))
(((G[/]){4,7}))
((.))
(((?:(D2[Qh]))?))
(((!\s)){3})
(([9d])([9d]))
((\s))((\s))
((\d))
((a\s)(a\s)(a\s))
...
Package: random-RFE
随机递归特征消除1、概述为了提高模型性能，我们通常会给数据进行降维，一种有效的方法就是删掉一些无用的或者无效的特征，以达到8。递归特征消除就是这样方法之一，即通过不断训练模型，每次训练都将重要性最小的特征删除，直到满足停止条件。这是一种贪心策略，不断删除最不重要的特征并不能保证一定能够获得最优子集，一种有效的方式是在删除特征的时候加入一些随机因素。随机递归特征消除在递归特征消除的过程中加入了随机因子，随机因子用于控制当前特征删除是执行随机删除还是将最不重要的特征删除，当执行随机特征删除时，将随机删除一个特征，每个特征被删除的概率不同，越重要的特征具有越小的被删除概率，其中特征重要性有模型的coef_属性或feature_importances_属性决定，其值做了取绝对值处理以防止权重为负，导致负概率的发生。2、用法fromfeature_selectors.RFEimportRandomRFEimportpandasaspdfromsklearn.model_selectionimporttrain_test_splitdf=pd.read_csv('your_datasets_path.txt')X=df.drop(columns=['label'])y=df['label']X_train,X_test,y_train,y_test=train_test_split(X,y)# 构建一个选择器实例，其他参数请参考请help一下，代码有注释。fs=RandomRFE(percent_of_random=0.1)selected_feature=fs.auto_select(X_train,y_train)3、后续其他特征选择方法，后续陆续加入，争取做个特性选择器，欢迎大神指正，并完善特征选择器，方便你我他！
Package: randomroller
# Random RollerA not very interesting die & dice rolling simulator.This is mostly so I can play with different of randoms## RequirementsCurrently requires a TrueRNG device plugged into the machine## Libraryin randomroller there is Die (a single die),and Dice (a group of die all with the same side)```pythonfrom randomroller import Died = Die(100)print(d.roll())from randomroller import Diced2 = Dice(2, 20)print(d2.roll())print('Show me each die roll instead of the total: ', d2.rolls())```## CliTHis adds the `rr` command that takes two arguments* dice count* number of sides for the diceex: `rr 1 6` rolls 1d6
Package: random-route-generator
A Python package to generate a random route with a specified length.Utilizes the openrouteservice API to generate the routing and the Overpass API for picking a random location.InstallationRandom-Route-Generator releases are available as wheel packages for macOS, Windows and Linux onPyPI. Install it usingpip:pipinstallrandom-route-generatorExampleThis script generates a random route which ismaximum 25kmlong and starts at the coordinate(51.846812, 6.242033). It usesmountain-bikingroute generation and utilizes4 random points. The route alsoavoids ferriesandstepsand isself-contained.fromrandomRouteGenerator.route_generatorimportRouteGeneratorfromrandomRouteGenerator.coordinateimportCoordinategenerator=RouteGenerator()#Manually set the openrouteservice API keygenerator.api_key=""#OR read the API key from a file#generator.read_api_key("ors_api.key")#What type of route generation should be used? (See README)generator.routing_profile="cycling-mountain"#How many random points should be generated?"generator.point_amount=4#How should the origin and end point be handled (See RouteGenerator.ROUTE_MODE)?generator.route_mode=generator.ROUTE_MODE.START_END_ORIGIN#Which features should be avoided in the route?generator.avoids=["ferries","steps"]#Generate the route with the given origin point and maximum lengthp=generator.generate_route(Coordinate(51.846812,6.242033),25000)length=p.get_length()duration=p.get_duration()elevation=p.get_elevation()#Retrieve information about the road-types in the route i.e. gravel, paved, ...print(p.get_way_info())#Print all routing points (all points generated by the routing)forxinp.routing_points:print(x)#Print all way-points (ONLY the random points whose amount is specified in generator.point_amount)forxinp.points:print(x)#Generate a GPX file containing the routep.generate_gpx_file(filename="out.gpx")Profilesdriving-car (Regular car routing)driving-hgv (Routing for heavy-trucks)cycling-regular (Routing for regular cycling)cycling-road (Routing for road bikes)cycling-mountain (Routing for mountain bikes, prefers offroad tracks)cycling-electric (Routing for E-bikes)Creditsopenrouteservice- Used to generate the routing between the pointsOverpass-API- Used for picking a random locationgpxpy- Used for exporting to a GPX fileoverpy- Used for communicating with the Overpass-APIhaversine- Used for coordinate calculationsLicenseGPL v3.0
Package: randomscm
randomSCMThe Bootstrap aggregating version of the great SCMInstallationfrom PyPI :pip install randomscmfrom source code :git clone git@github.com:thibgo/randomscm.git
python -m pip install .Usagefrom randomscm import RandomScmClassifier

classifier = RandomScmClassifier()Classifier implements most of scikit-learn standard methods.ContributorsThibaud Godon(maintainer)Elina Francovic-FontaineBaptiste Bauvin
Package: random-scraper
random_scraperTools for WebscrapingThis package provides simple methods for scraping data anonymously and avoid getting your IP blocked by web servers. In particular, a better approach consists in using proxy servers to change IP addresses over time as well as user agents. There are both free and paid proxy servers available online. Unfortunately, the free proxies may be slow and unreliable which may result in missing data.This package automatically collects and updates available free proxies online. It also provides a list of user agents and a user-friendly tool to request a page anonymously.Please send feedback and comments tomab2343@columbia.edu.Next steps:Write a detailed documentation and examplesUpdate the request_page function to scrape AJAX websitesNote: We are not responsible for the wrongful usage of the tools provided. Please scrape content responsibly.
Package: randomsdss
RandomSDSSGenerate random points in the Sloan Digital Sky Survey (SDSS) DR8 to DR16 footprints.This is a small wrapper around the packagepymanglethat facilitates
the creation of random points in the SDSS fields. I included
SDSS polygons for its diferent data releases (DR8 to DR16).Basic Usageimportmatplotlib.pyplotaspltimportrandomsdssdr12=randomsdss.DR12(catalog="BOSS")ra,dec=dr12.sky_random(size=10_000)plt.figure()plt.scatter(ra,dec,s=1)plt.xlabel('RA [deg]')plt.ylabel('DEC [deg]')Alternatively you can get the same result without the need to
instantiate an object using:ra,dec=randomsdss.sky_random(dr="DR12",catalog="BOSS",size=10_000)If you also need a random redshift distribution you can provide a sample
of redshifts and a random set will be generated from the underlying
Probability Density Function (PDF):z=randomsdss.z_random(z_array,size=10_000)The z_random is a complementary function since it doesn't use any information
from the SDSS catalogs, only the provided redshift array.AuthorMartin Chalela - email:tinchochalela@gmail.com
Package: randomsearch
Random search algorithmA simple n-dimensional random search algorithm.IntroductionThe Random search algorithm was the first method that based its optimization strategy on a stochastic process.
Only one solutionis kept during the evolution process. In each iteration, the solutionis modified by adding a random vector. In this way the new solution is modeled under the following expression:Considering that the solutionhasddimensions, each coordinate is modifiedby the random disturbancemodeled by a
Gaussian probability distribution defined as:whereand, represent the standard deviation and the mean value,
respectively for dimensioni. Since the value ofadds a modification around, the mean value is considered zero.Oncehas been calculated, it is tested whether the new position improves the quality of the previous solution.
In this way, if the quality ofis better than, the value ofis accepted as the new solution, otherwiseremains unchanged.InstallationGitHubTo install this library from GitHub run the following commands in the terminal:$ git clone https://github.com/angelgaspar/randomsearch.git
$ cd randomsearch
$ python setup.py installPyPiIf you have pip installed run the following commands in the terminal:$ pip install randomsearchUsageThis is an usage example:importrandomsearchasrsdefyour_function(x):return-(x[0]**2+x[1]**2)+4a,b=rs.optimize(function=your_function,dimensions=2,lower_boundary=[-14,-14],upper_boundary=[10,10],max_iter=10000,maximize=True)print(a,",",b)Note: The optimize function returns the best fitness and the best solution.
If you want to minimize a function maximize should be False.
Package: random-spanish
Random Spanish InformationWhat is that?This library is my first library created for Python (so sorry if there are any bugs).
With this library you will be able to obtain both names (for men and women) and Spanish surnamesHow can I install it?Just install with:pip install random-spanishorpip3 install random-spanishHow can I use it?You've got two ways:Download the CSVs locally (Recommended)I recommend you download and import the csv file locally, otherwise the library will load the CSV from my online hosting, which can slow down the speed of your program.
Just download the CSV here:MensWomensSurnamesThen, import files to your project and pass it in the third parameter of each function (files' parameter)mens_csv="./path/to/your/mans.csv"surnames_csv="./path/to/your/surnames.csv"print(getRandomMaleName(2,True,["men.csv","apellidos.csv"]))# Return an array with two full namesUse it without download CSV (Unrecommended)If you prefer, you can ignore the third parameter and then the library will load the CSV from my online hosting and then continue working.print(getRandomMaleName(2,True))# Return an array with two full namesDocumentationIn this library you've got three functionsGet random male namegetRandomMaleNameexpects three optional parameters:First oneexpects a integer with the number of the names you need. Default is 1If you pass 1, function will return a string. Otherwise, It'll return an array of stringsSecond oneexpects a boolean to return a full name or not. Default is FalseIf you pass True, function will return a full name with name and surname. Otherwise It'll return just the nameThird oneexpects a array string with the path to the CSV. Default is my website host.See theDownload the CSVs locally (Recommended)point for more infoGet random female namegetRandomFemaleNameexpects three optional parameters:First oneexpects a integer with the number of the names you need. Default is 1If you pass 1, function will return a string. Otherwise, It'll return an array of stringsSecond oneexpects a boolean to return a full name or not. Default is FalseIf you pass True, function will return a full name with name and surname. Otherwise It'll return just the nameThird oneexpects a array string with the path to the CSV. Default is my website host.See theDownload the CSVs locally (Recommended)point for more infoGet random surnamegetRandomSurnameexpects three optional parameters:First oneexpects a integer with the number of the surnames you need. Default is 1If you pass 1, function will return a string. Otherwise, It'll return an array of stringsSecond oneexpects a boolean to return a pair of surnames or not. Default is FalseIf you pass True, function will return a pairs of surnames as in Spain everybody got two surnames. Otherwise It'll return just one surnameThird oneexpects a array string with the path to the CSV. Default is my website host.See theDownload the CSVs locally (Recommended)point for more info
Package: random-standup
🎲random-standup-py🐍Do you have awkward pauses in your standups because no one wants to give their
update next? Why not have a defined order? To make it fair, why not also
🎲randomize🎲 that order!Youreallyshould usethe Go versionof this tool. This Python version was developed solely as a comparison exercise for the package publishing process.Do you find this useful?Star this repo!Do you find thisreallyuseful?You can sponsor mehere!UsageGet the tool withpip install random-standup.Create a team roster in a TOML file, following the format inexample-roster.toml:[Subteam-1]members=["Alice",# TOML spec allows whitespace to break arrays"Bob","Carol","David"]["Subteam 2"]# Keys can have whitespace in quoted stringsmembers=["Erin","Frank","Grace","Heidi"]standup example-roster.tomlOutput$ standup example-roster.toml
2021-03-25
## Subteam-1
Alice
Bob
David
Carol

## Subteam 2
Erin
Grace
Frank
HeidiBuilding frommainClone andcdinto the repo.InstallPoetry.poetry installpoetry run standup example-roster.tomlRun tests withpoetry run pytest -v