Saravanan666/pypi-org huggingface dataset:
Package: randstr-plus
randstr-plusA slightly more flexible string generatorFunctionsrandstr(min_length: int = 5, max_length: int =
      25, min_tokens: int = 1, max_tokens: int = 5, lowercase_letters: bool = True,
      uppercase_letters: bool = True, punctuation: bool = True, numbers: bool = True) ->
      strReturn a single string generated from random characters according to the given parameters.Keyword Arguments:min_length {int} -- minimum total character length (default: {5})max_length {int} -- maximum total character length  (default: {25})min_tokens {int} -- minimum total tokens/words (default: {1})max_tokens {int} -- maximum total tokens/words (default: {5})lowercase_letters {bool} -- allow lowercase letters (default: {True})uppercase_letters {bool} -- allow uppercase letters (default: {True})punctuation {bool} -- allow punctuation characters (default: {True})numbers {bool} -- allow numbers (default: {True})Returns:str -- generated string
Package: randstr-random
randstr-randomPython package for generating strings with random characters.

Make sure to have the latest version of Python 3 installed although this should work with previous versions. 

To install the package with pip enter command in terminal:
    pip install randstr-random

To uninstall the package with pip enter command in terminal:
    pip uninstall randstr-randomMethodDescriptionranddigit()Generates a random digit ranging from 0 to 9 (Digits in Decimal Number System) and returns it as a string.randalpha()Generates a random lowercase letter from the english alphabet and returns it as a string.randspec()Generates a random special character and returns it as a string.generate(string_length, seed_type)Return a string with random values of designated int length (Cap of 10000).
            The random value combos are selected by using a specific string for the seed_type argument.The seed_type argument value options (not case sensitive) are as follows:"al" - (Alphabet Lower) Random lowercase alphabet letters."au" - (Alphabet Upper) Random uppercase alphabet letters."dig" - (Digit) Random digits 0-9."spec" - (Special) Random special characters."ad" - (Alphabet Lower | Alphabet Upper | Digit) Random lowercase & uppercase alphabet letters. Random digits 0-9."ads" - (Alphabet Lower | Alphabet Upper | Digit | Special) Random lowercase & uppercase alphabet letters. Random digits 0-9. Random special characters.isspec(arg)Return true if all characters in arg string are special characters.isads(arg)Return true if all characters in arg string are either upper/lower case alphabet, decimal or special characters.Back to Top
Package: randtest
RandTestA light package for quick and accurate determinations of the randomness of a sequence.OverviewIdentifying random patterns, and conversely, ordered patterns, is a major tool with applicability to a wide variety of fields, from mathematical analysis to cybersecurity. Random Test looks for randomness in sequences of numbers by searching for patterns which are inherently unpredictable. It uses an exponentially-decaying moment prediction to determine the net deviation between the predicted and actual elements of a sequence. In tests, this led to a netpredictive accuracy of 99.85% for nonrandom sequences and 96.82% for random sequences. Additionally, this package is able to provide these predictions in under a millisecond for sequences shorter than 10 elements and under 100 milliseconds for sequences shorter than 1000 elements.RequirementsRandTest is built for Python 3. It has only one requirement:- NumpyInstallationTo download randtest, use PyPI via pip:$pipinstallrandtestAlternatively, you can clone this Github repository and build from source:$gitclonehttps://github.com/sudo-rushil/randtest
$cdrandtest
$pythonsetup.pyinstallVerify your installation by running>>>importrandtest>>>randtest.random_score([0,1,2,3])'False'ExamplesRandTest is extremely simple to use. You only need to input either a list or a 1D Numpy array of numbers. The prediction returnsFalseif the sequence is ordered andTrueif the sequence is random.importnumpyasnpimportrandtestasrtordered_sequence=np.arange(10)random_sequence=np.random.randint(10,size=10)print(rt.random_score(ordered_sequence))print(rt.random_score(random_sequence))FalseTrue
Package: randua
what?randua is a random User Agent (UA) string generator, written in Python.
It’s based on thePython Random User-Agent Generatorby InvisibleMan.why?Because:every time you make a HTTP request only one Web browser gets credit.you might wish to change the UA of your browser once in a while to avoid
possible identification[1]LicensePublic domain.Footnotes[1]https://www.eff.org/deeplinks/2010/01/tracking-by-user-agent
Package: randuser
randuserThis file will become your README and also the index of your
documentation.InstallpipinstallranduserHow to usefromranduser.coreimportrandom_useruser1=random_user(gender="female",nationality='BR')user2=random_user(gender="male",nationality="US")print(user1){'gender': 'female', 'name': {'title': 'Ms', 'first': 'Ilaine', 'last': 'Aragão'}, 'location': {'street': {'number': 5151, 'name': 'Rua Treze '}, 'city': 'Campo Largo', 'state': 'Mato Grosso', 'country': 'Brazil', 'postcode': 95700, 'coordinates': {'latitude': '-5.0067', 'longitude': '-29.9712'}, 'timezone': {'offset': '+7:00', 'description': 'Bangkok, Hanoi, Jakarta'}}, 'email': 'ilaine.aragao@example.com', 'login': {'uuid': '0bc8d36f-71ce-4005-b609-8235c1ef9322', 'username': 'beautifullion602', 'password': 'happy2', 'salt': 'BgV5ccum', 'md5': '58b3fbaf0740347155fd93fbb314bfef', 'sha1': 'ca4e47d3eb8c98bd692e05dcc1eea947a3267444', 'sha256': '83dd680ab88317652f7946be2675206474cf711a3839541b1a6492ebc70c1a70'}, 'dob': {'date': '1953-07-17T15:41:16.929Z', 'age': 69}, 'registered': {'date': '2006-11-03T22:28:29.254Z', 'age': 16}, 'phone': '(70) 8952-1138', 'cell': '(70) 4938-4352', 'id': {'name': 'CPF', 'value': '744.546.024-87'}, 'picture': {'large': 'https://randomuser.me/api/portraits/women/31.jpg', 'medium': 'https://randomuser.me/api/portraits/med/women/31.jpg', 'thumbnail': 'https://randomuser.me/api/portraits/thumb/women/31.jpg'}, 'nat': 'BR'}print(user2){'gender': 'male', 'name': {'title': 'Mr', 'first': 'Corey', 'last': 'Davidson'}, 'location': {'street': {'number': 9947, 'name': 'Camden Ave'}, 'city': 'Bozeman', 'state': 'South Dakota', 'country': 'United States', 'postcode': 98170, 'coordinates': {'latitude': '68.1637', 'longitude': '-107.5021'}, 'timezone': {'offset': '+4:30', 'description': 'Kabul'}}, 'email': 'corey.davidson@example.com', 'login': {'uuid': '3af11cf9-d8bc-4fe2-9e93-cb2d57d8d891', 'username': 'tinylion310', 'password': 'filthy', 'salt': 'K2HSV94j', 'md5': '5a4729e23552e599187208b5f44e4fc4', 'sha1': '928f05d4af4a27e10b8036c1cd9920f86dcc8f42', 'sha256': 'ab92f8b0cae11c78685fb13b4a8a1fc0efa7794b8d9876ac2d041a78184694d4'}, 'dob': {'date': '1988-10-30T00:04:57.381Z', 'age': 34}, 'registered': {'date': '2016-05-27T18:11:35.274Z', 'age': 6}, 'phone': '(834) 858-5500', 'cell': '(560) 471-6729', 'id': {'name': 'SSN', 'value': '409-21-2391'}, 'picture': {'large': 'https://randomuser.me/api/portraits/men/15.jpg', 'medium': 'https://randomuser.me/api/portraits/med/men/15.jpg', 'thumbnail': 'https://randomuser.me/api/portraits/thumb/men/15.jpg'}, 'nat': 'US'}
Package: rand-useragent
rand-useragentAn up-to-date simple random user-agent with real world database.
The collections of user-agent data is pre-downloaded fromtechblog.willshouse.com.Installation$pipinstallrand-useragentUsageSimple usage example, see below for more examples:fromrand_useragentimportrandua# Get a random browser user-agent stringprint(randua())If you want to specify your own browser list, you can do that via thebrowsersargument (default is:["chrome", "edge", "firefox", "safari"]).This example will only return random useragents from Edge and Chrome:fromrand_useragentimportrandua# Get a random browser user-agent stringprint(randua(browsers=["edge","chrome"]))If you want to specify your own operating systems,
you can do that via theosargument (default is:["windows", "mac os x", "linux"]).In this example you will only get Linux useragents back:fromrand_useragentimportrandua# Get a random browser user-agent stringprint(randua(os=["linux"]))If you want to return more popular useragent strings, you can play with themin_percentargument (default is:0.0, meaning all useragents will match).In this example you get only useragents that have a minimum usage percentage of 10.0% (or higher):fromrand_useragentimportrandua# Get a random browser user-agent stringprint(randua(min_percent=10.0))You can override the fallback string using thefallbackparameter, in very rare cases something failed:fromrand_useragentimportrandua# If something went wrongprint(randua(fallback="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"))DevelopmentSince GitHub Actions is unable to reach willshouse.com and has Cloudflare protection.
We can run the script below to automatically scrape the user-agent strings from the external data source.
The script will copy theJSONlinesfile to thesrc/rand_useragent/datadirectory.
Execute:$./scripts/update-data.shThe data JSON file is part of the Python package,
seepyproject.toml.
Read more aboutData files support.rand-useragent is aBSD licensedcode.
Package: randusergen
Random User GeneratorLibrary ini memungkinkan untuk menghasilkan maksimal 5000 data pengguna acak menggunakan RandomUser API dan menyimpannya ke dalam file txt.Penggunaan ClassDataGeneratorClassDataGeneratorbertanggung jawab untuk menghasilkan data pengguna menggunakan RandomUser API.Metode:generate_users(results): Metode ini menerima argumenresultsyang merupakan jumlah data pengguna yang ingin dihasilkan. Jumlah data yang diminta akan dibatasi maksimal hingga 5000. Metode ini akan mengembalikan daftar data pengguna sesuai dengan jumlah yang diminta.FileWriterClassFileWriterbertanggung jawab untuk menulis data pengguna ke dalam file teks.Metode:save_to_txt(users): Metode ini menerima argumenusers, yang merupakan daftar data pengguna yang akan disimpan. Metode ini akan menulis data pengguna ke dalam file 'results.txt' dengan format nama depan dan belakang dari setiap pengguna di baris terpisah.APIPython Basic API wrapperhttps://randomuser.me/api/InstallationInstall my-project with npmpipinstallrandusergenUsageBasic Usage :fromrandomuserimportDataGenerator,FileWriter# Membuat objek DataGeneratordata_generator=DataGenerator()# Menghasilkan 10 data penggunausers=data_generator.generate_users(10)# Membuat objek FileWriterfile_writer=FileWriter()# Menyimpan data pengguna ke dalam file txtfile_writer.save_to_txt(users)Authors@codewithwan
Package: randwalk
NAMErandwalk - random walk agents on graph supporting several strategies.SYNOPSISDESCRIPTIONINSTALLATIONAVAILABILITYThe latest version ofrandwalkis available at PyPI
(https://pypi.org/project/randwalk/) .SEE ALSOAUTHORHiroyuki Ohsaki <ohsaki[atmark]lsnl.jp>
Package: randwire
Random Wire Antenna CalculatorThis program helps you to calculate the optimal length of wire for
building a random length antenna.You can find more info on my blog post related to this program:Random-Wire antenna.Installation$ pip install randwireUsageusage: randwire.py [-h] [-D] [-b BANDS [BANDS ...]] [-f FILE]
                   [-u {meter,feet}] [-c CSV]

Wire length to avoid

optional arguments:
  -h, --help            show this help message and exit
  -D, --debug           Print information useful for debugging
  -b BANDS [BANDS ...], --bands BANDS [BANDS ...]
                        List of bands [default: [40, 20, 15, 10]]
  -f FILE, --file FILE  Graph filename, then extention can be (.png, .pdf,
                        .svg) [default: wire.png]
  -u {meter,feet}, --unit {meter,feet}
                        Wire length [default: meter]
  -c CSV, --csv CSV     Name of the .csv file [default: no_file]Example√ % randwire
13:45:27 INFO: Bands: 40, 20, 15, 10
13:45:27 INFO: "wire.png" savedThe program generates an image showing the length of the wire to
avoid. The blue blocks represent the length of the wire that might
cause tuning problems.
Package: randword
randwordThe Python package for generating random English wordsTable of contentsInstallationUsageCredits and referencesLicenseInstallationYou can installrandwordpackage usingpiporeasy_install:pipinstallrandwordeasy_installrandwordYou can also just clone the repository and run:pythonsetup.pyinstallUsageSee thedocumentation.Credits and referencesA database of words for each part of the speech was taken fromWordNet.Splitting words into different parts of speech is made possible byChilli's answeronStack Overflow.Surnames database was taken from thisGitHub repo.Male and females names were taken from thewebsite of Carnegie Mellon University.Countries database was taken fromthis GitHub gist.Cities database was taken fromthis GitHub gist.Magic 8-Ball answers were taken fromWikipedia page.Licenserandwordspecific code is distributed underMIT License.Copyright (c) 2022 Artyom Bezmenov
Package: rand-wordpair
rand_wordpairPython module to generate a random pair of English wordsUsageTo get a random pair of words:from rand_wordpair import gen_pair
print(gen_pair()) # different every time, e.g. sudsy-pickupTo get a username-based code (e.g. for SD212 homework):from rand_wordpair import show_user_code
show_user_code() # prints code wordpair to the screenDependenciesUsesnltkfor and theWordNet database.Build instructionsFollowthis tutorial on packagingandthis quickstart for setuptools.Pip/conda/mamba packages needed:build twineTo test:python3 test.pyTo build:python3 -m buildTo publish on pypi (requires account setup andapi token):python3 -m twine upload --repository testpypi dist/*
Package: randwords
randwordsRandom word and string generators written in PythonInstallationpython -m pip install randwordsExamples:python randwords 6: Get 6 random words from the includedwordsfilepython randwords -f ~/mywords 6: Get 6 random words from a file at~/mywordspython randwords -l 6: Get 6 random words an convert them to lowercasepython randwords -A 6: Get 6 random words and remove non-ASCII characterspython randwords -a 6: Get 6 random words and remove apostrophes
Package: randy
A pure-python random number generator expander.Given a random number generator that yields numbers in the range 1-n,
create a new random number generator that yields numbers in the range
1-y where y>x, x>1, y>1, y>x**2How do I get set up?python setup.py installDependencies:sixDependencies (test):Coverage, noseHow to run tests:./runtests.shDeployment instructions:pip install shiftyContribution guidelinesI accept pull requests.What about test coverage?There is a full suite of unit-tests.Who do I talk to?Francis Horsman:francis.horsman@gmail.comExample>>> from randy import randy
>>> import random
>>> r = randy(5, 7, fn=lambda: random.randint(1, 5))

Slice it:
>>> random_value = r[2] 3

Call it:
>>> random_value = r() 1

Iterate with it:
>>> random_value = iter(r).next() 5

Print it:
>>> str(r) 'randy(7 from 5): [[1, 2, 3, 4, 5], [6, 7, 1, 2,3], [4, 5, 6, 7, 1], [2, 3, 4, 5, 6], [7, 0, 0, 0, 0]]'
Package: randydata
PurposeRandyDataserves as a simple tool to automate data handling tasks, when working with MySQL Databases and Excel tables,
storing one observation per row.It helps reading the Excel table into a MySQL database and creates custom classes for every observation. Furthermore, it
helps automate some basic formatting tasks to present your results.welcome_dataTherandydata.welcome_datamodule is made to simplify the process of importing excel files and reading SQL tables to
memory. It uses an object oriented approach and dynamically creates a class, storing the observed parameters and adding
user specified methods to make data handling more easy.data_layoutTherandydata.data_layoutmodule simplifies some more common formatting tasks to present the results you got from
analysing the observed data. It uses html to quickly add some structure to your data.DocsSphinx docs are available atreadTheDocsFeedbackI am very happy about any kind of feedback or suggestion by email:randydata@randerath.eu
Package: rangealert
This module is not intended as advice to trade, it is for use in your trading analyses and algorithms. Use at your own risk.This screener attempts to find range bound markets based on given inputs.Required data:-Pandas dataframe containing index as datetime and columns (High, Low, Open, Close) as float
-Define the number of breakout periods (default: 55 periods)
-Average True Range (ATR) window (default: 14 periods)
-ATR multiple (default: 1.5)- sensitivity used to determine a level at which the alert will provide a range signalResponse:The response returned is a tuple of the signal and a plotly chart: (signal, chart) create_chart=False is default. The signal is one of three options: 1, 01 - trading in a range0 - not trading in a rangeDependencies:pandastaplotlyInstall module:https://pypi.org/project/rangealert/pip install rangealertDetailed documentation:https://github.com/jonleonATX/range_trading_alert/blob/master/rangealert.ipynb
Package: range-anytype
range-anytypeUsageThis package is using for Range object for any type.How to use itimport it by:from range_anytype import Range, ProtectedRange. No any additional modules or packages will be installed. If you cannot install it by pip, please download the source and extract it into sys.path.To see examples, please visit example.py, or typefrom range_anytype import example.RangeCreate a range for any type that supports addition calculation.ProtectedRangeCreate a range for any type that supports addition and subtraction calculation. This can protect program because it detects the supporting of subtraction of the type. Some types likestr,list,tuple, only support addition, not support subtraction.CautionsIf you are using Python 2.1 or lower, it will import from py1compa.py (means "Python 1's compatible"). If you want to iter the object, please define these functions if the Python version does not haveiterornextfunction:iter=lambdaobj:obj.__iter__()next=lambdaobj:obj.next()If you are using a long-filename-less supported Microsoft OS(e.g. MS-DOS 5.0), please change the directory name from "range_anytype" to "rangeant".
Package: range-compression
矩阵区间压缩Quick startfromrange_compressionimportRangeCompressedMask,mask_encodefrompathlibimportPathmtx=....# 带有很多连续值的矩阵rcm=mask_encode(mtx)X,Y=...,...# 要查找的 X, Yres=rcm.find_index(X,Y)assertres.shape==X.shapeassert(mtx[Y,X]==res).all()TODO[ ] 把性能测试添加到测试和 readme 中，每个版本做性能回归测试[ ] 添加更多说明和直接能运行的快速入门Python3.12这个库严重依赖 numba：https://github.com/numba/numba/issues/9197
Package: ranged
rangetldr;-📦 ranged is a library for generating sequences of numbers
-🚀 aims to be a more feature-rich version of the built-in range function
-💪 performant and dependency-free
-🧪 currently in beta (0.x)
-🔍 full test coverage and thorough documentation coming in versions after 1.x
-😊 easy to learn and use
-💾 install with python3 -m pip install ranged
-🙏 feedback and support appreciated!introductionWelcome to ranged, a simple yet feature-rich library created with the goal of providing an alternative to the standard library's range function. Ranged is designed to be a more feature-rich version of range while still maintaining excellent performance. It is dependency-free and easy to learn, making it a great choice for any Python project.Currently, ranged is in beta (0.x), but work is underway to ensure that every version after 1.x will have full test coverage and thorough documentation. Feedback and support are appreciated as this library continues to be improved and developed. Thank you for choosing ranged!installpython3 -m pip install rangedorpip3 install rangedexamplefor i in Range(10, 90, func=lambda a:a+1, filt=lambda a:a < 15):
	print(i)
Package: rangedict
rangedict is a dict whose key is a range.Usage>>> from rangedict import RangeDict
>>> rd = RangeDict()
>>> rd[(1, 2)] = 1
>>> rd[(3, 3)] = 3
>>> rd[(5, 7)] = 5
>>> print rd[6]
5
>>> 3 in rd
True
>>> del rd[(3, 3)]
>>> 3 in rd
FalseImplemented based on red black tree provides an O(logn) complexity for
inserting, deleting and finding.
Package: range-digit
descriptionrange-digitis library of decimal digit which haslowandsup.from range_digit import RangeDigit
from decimal import Decimal

d = RangeDigit("1.240")
print(d)  # 1.240
print(d - Decimal("1.2"))  # 0.040
print(d / 2)  # 0.620
print(d.low)  # 1.2395
print(d.sup)  # 1.2405
print(d.tostr())  # <RangeDigit [1.2395 - 1.2405)>
Package: rangefinders-i2c
Rangefinders-i2cWhat the library can do?Change TOF10120 address device by usb.Get data from TOF10120 device by i2cHow installpip install rangefinders-i2cChange addressTo change the address, a usb programmer is needed.
After connecting the programmer, you can find out the address using the following codeif your programmer is the only device (connect to /dev/ttyUSB0)fromrangefinders_i2c.SensorManagmentimportSensorManagmentmanagment=SensorManagment()if there is more than one device, then you can find it using the following codeprint(SensorManagment.GetUsbDeviceList())and by selecting a device, you can specify it when initializing an instance of the classmanagment=SensorManagment('/dev/ttyUSB1')the second parameter is the port speed, by default it is 9600. To change the speed, use the second parameter when initializing the class instancemanagment=SensorManagment('/dev/ttyUSB1',4800).After that, you should call the functionsetAddressmanagment=SensorManagment()managment.setAddress(48)for all rangefinders, we use constant values: 48, 50, 52, 54, 56, 58.Calling the set Address() function with a value other than the specified constants will result in an error: ValueError('Address must be 48, 50, 52, 54, 56, 58')Get Data from TOF10120In order to get the values, you should initialize an instance of the classfromrangefinders_i2c.ReadSensorimportReadSensorsensor=ReadSensor(1)where 1 is the smbus bus number.You can also enable verbose mode (log error to console) using the following codesensor=ReadSensor(1,True)After that, you can get the value from the device by passing it the address as a parameteraddress=0x18distance=sensor.GetDistance(address)print("address:",address,"distance:",distance)oraddress=24distance=sensor.GetDistance(address)print("address:",address,"distance:",distance)
Package: range-max-query
rangeMaxQueryPython's implementation of range maximum query.InstallInstall via$ pip install range_max_query.How to use$ from range_max_query import RangeMaxQuery.>>> A = [2, 3, 4, 1, 7]         
>>> arr = RangeMaxQuery(A)      # initialize data structure
>>> arr.range_max_query(1, 4)     # maximum query in range(1, 4)
7
>>> arr.update(1, 10)           # set A[1] = 10 and update the data structure
>>> arr.range_max_query(1, 4)    # maximum query in range(1, 4)
10