Saravanan666/pypi-org huggingface dataset:
Package: rainbow-imager-readfile
Rainbow All-Sky Imager Raw PGM Data Readfile (GO-Canada AGO/CGSM Rainbow)Python library for reading Rainbow All-Sky Imager (GO-Canada AGO/CGSM Rainbow) stream0 raw PGM-file data. The data can be found athttps://data.phys.ucalgary.ca.InstallationThe rainbow-imager-readfile library is available on PyPI:$python3-mpipinstallrainbow-imager-readfileSupported Python Versionsrainbow-imager-readfile officially supports Python 3.8+.ExamplesExample Python notebooks can be found in the "examples" directory. Further, some examples can be found in the "Usage" section below.UsageImport the library usingimport rainbow_imager_readfileWarning: On Windows, be sure to put anyreadcalls into amain()method. This is because we utilize the multiprocessing library and the method of forking processes in Windows requires it. Note that if you're using Jupyter or other IPython-based interfaces, this is not required.Read a single file>>>importrainbow_imager_readfile>>>filename="path/to/data/2015/01/01/fsmi_rainbow-11/ut06/20150101_0600_fsmi_rainbow-11_full.pgm.gz">>>img,meta,problematic_files=rainbow_imager_readfile.read(filename)Read multiple files>>>importrainbow_imager_readfile,glob>>>file_list=glob.glob("path/to/files/2015/01/01/fsmi_rainbow-11/ut06/*full.pgm*")>>>img,meta,problematic_files=rainbow_imager_readfile.read(file_list)Read using multiple worker processes>>>importrainbow_imager_readfile,glob>>>file_list=glob.glob("path/to/files/2015/01/01/fsmi_rainbow-11/ut06/*full.pgm*")>>>img,meta,problematic_files=rainbow_imager_readfile.read(file_list,workers=4)Read with no output>>>importrainbow_imager_readfile,glob>>>file_list=glob.glob("path/to/files/2015/01/01/fsmi_rainbow-11/ut06/*full.pgm*")>>>img,meta,problematic_files=rainbow_imager_readfile.read(file_list,workers=4,quiet=True)Read only the first frame of each file>>>importrainbow_imager_readfile,glob>>>file_list=glob.glob("path/to/files/2015/01/01/fsmi_rainbow-11/ut06/*full.pgm*")>>>img,meta,problematic_files=rainbow_imager_readfile.read(file_list,first_frame=True)Exclude reading the metadata>>>importrainbow_imager_readfile,glob>>>file_list=glob.glob("path/to/files/2015/01/01/fsmi_rainbow-11/ut06/*full.pgm*")>>>img,meta,problematic_files=rainbow_imager_readfile.read(file_list,no_metadata=True)DevelopmentClone the repository and install dependencies using Poetry.$gitclonehttps://github.com/ucalgary-aurora/rainbow-imager-readfile.git$cdrainbow-imager-readfile/python$makeinstallTesting$maketest[ or do each test separately ]$maketest-flake8$maketest-pylint$maketest-pytest
Package: rainbowline
rainbowlineA simple library for plotting lines with color gradients in matplotlib.UsageThe functionrainbow_line()has the following arguments:x: the x values to ploty: the y values to plotc: the values to map to a color using the specifiedcmap. If not provided, the index of x or y will be used if possible.cmap: (optional) colormap to apply to thecvalues. Defaults to 'jet'.norm: (optional) normalization forcvalues. If not given, the min and max values ofcwill be used. One of the following:matplotlib norm object.float or int: in this case, values will be normalized to the range (0, norm)tuple defining the min and max values to which to normalizeax: (optional) matplotlib Axes object on  which to plotautoscale_view: whether to scale the axes to the extents of the plot. Default True.**kwargs: (optional) kwargs which will be passed to matplotlibLineCollectionconstructor.
Package: rainbowlog
Rainbow LogFormat your python logs with colours based on the log levels.InstallationYou can instll the package with pip or conda.$pipinstallrainbowlog$condainstallrainbowlog-cabrahammurciano$condainstallrainbowlog-cconda-forgeLinksDocumentationGithubPyPIUsageHere's a basic example of a script that logs colorfully to the console, but regularly to a file.importloggingimportrainbowloglogger=logging.getLogger(__name__)# This one will write to the consolestream_handler=logging.StreamHandler()# This one will write to a filefile_handler=logging.FileHandler("output.log")# Here we decide how we want the logs to look likeformatter=logging.Formatter("%(asctime)s-%(name)s-%(levelname)s-%(message)s")# We want the stream handler to be colorfulstream_handler.setFormatter(rainbowlog.Formatter(formatter))# We don't want the file handler to be colorfulfile_handler.setFormatter(formatter)# Finally we add the handlers to the loggerlogger.addHandler(stream_handler)logger.addHandler(file_handler)if__name__=="__main__":logger.debug("This is a debug message")logger.info("This is an info message")logger.warning("This is a warning message")logger.error("This is an error message")logger.critical("This is a critical message")If you want to change the format of the logs for each log level, you can use any callable that takes a string and returns the same string with ANSI codes surrounding it. There are many libraries you can use to provide such callables.importloggingfromrainbowlogimportFormatter# Here are some libraries you can use to get a style callable without dealing with ANSI codesfromconstyleimportStyle,AttributesasAttrsimporttermcolorfromfunctoolsimportpartialformatter=logging.Formatter("%(asctime)s-%(name)s-%(levelname)s-%(message)s")color_formatter=Formatter(formatter,log_styles={logging.DEBUG:Style(Attrs.BLUE,Attrs.FAINT),# An example using constylelogging.INFO:lambdas:f"\033[32m{s}\033[0m",# An example using lambdaslogging.WARNING:termcolor.red,# An example using termcolor's predifined functionslogging.ERROR:partial(termcolor.colored,color="red",on_color="on_white",attrs=["bold"]),# An example using functools.partiallogging.CRITICAL:Attrs.RED+Attrs.ON_YELLOW+Attrs.BOLD+Attrs.UNDERLINE,# An example using constyle's added attributes}exception_style=lambdas:f"{Attrs.RED+Attrs.ON_WHITE+Attrs.BOLD}{s}{Attrs.RESET}"# An example using lambdas and constyle,stack_style=Attrs.RED,# An example using a single constyle attribute)
Package: rainbow_logging_handler
Ultimate Python colorized logger.UsageGeneric usage exampleUsage with DjangoFeaturesColumn-by-column colored logUser custom colorHigh portabilityInstallInstall from PyPIInstall from Github repoAuthorLicenseUsageGeneric usage exampleThis script runs like above screenshot.importsysimportloggingfromrainbow_logging_handlerimportRainbowLoggingHandlerdefmain_func():# setup `logging` modulelogger=logging.getLogger('test_logging')logger.setLevel(logging.DEBUG)formatter=logging.Formatter("[%(asctime)s]%(name)s%(funcName)s():%(lineno)d\t%(message)s")# same as default# setup `RainbowLoggingHandler`handler=RainbowLoggingHandler(sys.stderr,color_funcName=('black','yellow',True))handler.setFormatter(formatter)logger.addHandler(handler)logger.debug("debug msg")logger.info("info msg")logger.warn("warn msg")logger.error("error msg")logger.critical("critical msg")try:raiseRuntimeError("Opa!")exceptExceptionase:logger.exception(e)if__name__=='__main__':main_func()Usage with DjangoDjangois a popular Python web framework.Put the following to yoursettings.pyto get more pleasant development server console output:# Add this to your settings.py
if DEBUG:
    # Install rainbow logging handler when running Django in develoment mode
    import sys
    LOGGING["handlers"]["rainbow"] = {"level": "DEBUG", "class": "rainbow_logging_handler.RainbowLoggingHandler", 'stream': sys.stderr}
    LOGGING["loggers"]['']["handlers"].append("rainbow")More about configuring loggers for Django.FeaturesColumn-by-column colored logAs apparent from above screenshot, each column of logs are differently colored.
Even default coloring should make log reading easier.User custom colorEvery column colors arecustomizable.formatter=logging.Formatter('%(pathname)s[%(module)s] -%(funcName)s:L%(lineno)d:%(message)s')handler=RainbowLoggingHandler(sys.stderr,# Customizing each column's colorcolor_pathname=('black','red',True),color_module=('yellow',None,False),color_funcName=('blue','white',True),color_lineno=('green',None,False),)handler.setFormatter(formatter)logger.addHandler(handler)logger.info("hello custom world")Above code produces output like this.High portabilityLinux, BSD, Mac OS, and Windows are supposed to be supported.Runs with both Python 2.6 or higher & Python 3.2 or higher.InstallInstall from PyPI$pipinstallrainbow_logging_handlerInstall from Github repo$gitclonehttps://github.com/laysakura/rainbow_logging_handler.git$cdrainbow_logging_handler$./setup.pyinstallAuthorMikko Ohtamaa <mikko@opensourcehacker.com>, Sho Nakatani <lay.sakura@gmail.com>And special thanks to10srfor advice.LicenseThis is free and unencumbered public domain software. For more information,
see <http://unlicense.org/> or the accompanyingLICENSE.txtfile.
Package: rainbownum
rainbownumProgram used to generate colorings and the anti-Schur numbers for a given equation.An anti-Schur number, denoted aS([n], k, [a], b), is defined as the smallest number of colors r such that every coloring of [n] if guaranteed to have a rainbow sum to the equations a_1x_1 + a_2x_2 + ... + a_kx_k = b.https://pypi.org/project/rainbownum/#historyInstall notes:pip install rainbownumpip install --upgrade rainbownum
Package: rainbow-print
Rainbow PrintInspired by Rainbow CSV -Rainbow Printadds colors to the standard outputs to ease the process of monitoring respective data / metricsMain featuresHighlights data points in different colors to ease monitoring capabilitiesBy default provides 7 colors (light and dark each) for N Variables(rolling). Supports N colorsSupport for Dark and Light backgroundsSupports string print based on separator / dictionary's key-value based printSupports custom colors based onsty.fgpackageSupports use of python logging frameword for advance usecasesDemoHow rainbow print helpsDefault print a dictionary of metrics for 10 stepsDefault print a string of metrics for 10 stepsRainbow Print - Dark ModeRainbow Print - Light ModeRequirementspython >3styInstallationpipinstallrainbow-printUsage# Printfromrainbow_printimportprintrdata={"Episode":10,"Episode Len":5,"Cost":0.95,"Reward":135,"Mode":"Explore"}printr(data)data=f"Episode:{10}, Episode Len:{5}, Cost:{0.95}, Reward:{135}, Mode:{'Explore'}"printr(data,sep=',')# Loggingfromrainbow_printimportrlogginglogger=rlogging.getLogger(__name__)data={"Episode":10,"Episode Len":5,"Cost":0.95,"Reward":135,"Mode":"Explore"}logger.info(data)data=f"Episode:{10}, Episode Len:{5}, Cost:{0.95}, Reward:{135}, Mode:{'Explore'}"logger.debug(data,sep=',')# Get information regarding current configurationprintr.info()>>Theme:dark>>Colors:['\x1b[38;2;5;152;154m','\x1b[38;2;116;162;103m','\x1b[38;2;179;128;168m','\x1b[38;2;255;127;0m','\x1b[38;2;112;154;180m','\x1b[38;2;255;255;0m','\x1b[38;2;255;0;0m']Configuration# By default printr works in dark modefromrainbow_printimportprintr# Switch to light paletteprintr.set_light_palette()# Switch to dark paletteprintr.set_dark_palette()# Set colors for dark palettecolors=[sty.fg(0,0,0),sty.fg(255,255,255)]printr.update_dark_palette(colors)# Set colors for light palettecolors=[sty.fg(0,0,0),sty.fg(255,255,255)]printr.update_light_palette(colors)
Package: rainbowpy
statusrainbowpysome of my own custom color toolspipinstallrainbowpyquick introrainbowpy is a simple tool to handle building color maps from a list of colors. There will likely me more features in the future.You can create a YAML file and place it in:$HOME/.rainbowpy/custom_maps.ymlwhich will be read on import will add the created color maps to your mpl library:The format isapples:-"#28CC5F"-"#29D48"-"#F3232"iri:-"#FEFBE9"-"#FCF7D5"-"#f5f3c1"-"#eaf0b5"-"#ddecb5"-"#d0e7ca"-"#c2e3d2"-"#b5ddd8"-"#a8d8dc"-"#9bd2e1"-"#8dcbe4"-"#81c4e7"-"#7bbce7"-"#7eb2e4"-"#88a5dd"-"#9398d2"-"#9b8ac4"-"#9d7db2"-"#9a709e"-"#906388"-"#805770"-"#684957"-"#46353a"importmatplotlib.pyplotaspltimportrainbowpyN=1000array_dg=np.random.uniform(0,10,size=(N,2))colors=np.random.uniform(-2,2,size=(N,))fig,ax=plt.subplots()ax.scatter(array_dg[:,0],array_dg[:,1],c=colors,cmap="iri")Icons made bySmashiconsfromwww.flaticon.com
Package: rainbowrunners
Awesome rainbow test runners!!1
See demo with Nyan Cat onShelr.tv!Available runnersNyanCatRunner:>>> from rainbowrunners.runner import NyanCatRunner
>>>
>>> suite = unittest.TestLoader().loadTestsFromTestCase(Tests)
>>> NyanCatRunner().run(suite)
>>>

% python tests_ok.py
 20  -_-_-_-_-_-_-_-_-_-__,------,
 0   -_-_-_-_-_-_-_-_-_-__|  /\_/\
 0   -_-_-_-_-_-_-_-_-_-_~|_( ^ .^)
     -_-_-_-_-_-_-_-_-_-_ ""  ""
----------------------------------------------------------------------
Ran 20 tests in 3.04s

OKDjango support# settings.py
TEST_RUNNER = 'rainbowrunners.djrunner.NyanCatDiscoverRunner'LicenseRainbow Runners is distributed under theMIT license.
Package: rainbow-saddle
Rainbow Saddlerainbow-saddle is a wrapper aroundGunicornto
simplify code reloading without dropping requests.InstallationInstall from pypi:$ sudo pip install rainbow-saddleOr from source:$ sudo ./setup.py installWhy?Sometimes doing akill-HUP<gunicorn PID>is not sufficient to reload your
code. For example it doesn’t work wellif you host your code behind a symlink, or if a.pth in your
installation is updated to point to a different directory.The correct way to reload code in such situations is a bit complicated:# Reexec a new master with new workers
/bin/kill -s USR2 `cat "$PID"`
# Graceful stop old workers
/bin/kill -s WINCH `cat "$PIDOLD"`
# Graceful stop old master
/bin/kill -s QUIT `cat "$PIDOLD"`It also has the downside of changing the “master” process PID, which confuses
tools such as supervisord.rainbow-saddle handles all of this for you, and never changes its PID.
Reloading code becomes as simple as sending aSIGHUPagain:$ rainbow-saddle --pid /tmp/mysite.pid gunicorn_paster development.ini --log-level debug
$ kill -HUP `cat /tmp/mysite.pid`News0.4.0Support new binary upgrade method used by Gunicorn, since version 19.6.0. Drops
support for all previous versions of Gunicorn. See commitbenoitc/gunicorn@418f140for more info, thanks to Jacob Magnusson.0.3.1Minor Python3 compatibility fix, thanks to Justin Locsei.0.3.0Thanks to Rafael Floriano da Silva for the following:add –gunicorn-pidfilefix race condition for slow starting appsupdate psutil
Package: raincloudy
RainCloudy is a library written in Python 3.x that manages the Melnor RainCloud Smart Garden Watering Irrigation Timer.Currently Melnor WifiAquaTimer not provide an official API. The results of this project are merely from reverse engineering. This project does not have any official relationship or support by Melnor.com. Use it at your own risk.Melnor RainCloud official page:http://www.melnor.com/16043-raincloud-smart-water-timerSource code documentation:http://raincloudy.readthedocs.io/Usagefromraincloudy.coreimportRainCloudyraincloudy=RainCloudy('username@domain','secret')# list controllers linked with accountraincloudy.controllers[<RainCloudyController:control_unit:abdcd1234valve_unit:a123>]# show valve unit battery statusraincloudy.controller.faucet_battery99%# show statusraincloudy.controller.status'Online'raincloudy.controller.name'MelnorC001'raincloudy.controller.faucet.name'Backyard'raincloudy.controller.faucet.status'Online'# 4 zones controlled per faucetlen(raincloudy.controller.faucet.zones)4# show details from zone1raincloudy.controller.faucet.zone1{'auto_watering':True,'manual_watering':False'next_cycle':'Delayed','rain_delay':1,'watering_time':0}# update attributes and show all zonesraincloudy.controller.update()raincloudy.controller.faucet.zones{'zone1':{'auto_watering':True,'droplet':'https://wifiaquatimer.com/static/images/blank.gif','is_watering':False,'next_cycle':'Delayed','name':'Backyard Flowers','rain_delay':1,'watering_time':0},'zone2':{'auto_watering':True,'droplet':'https://wifiaquatimer.com/static/images/blank.gif','is_watering':False,'next_cycle':'Delayed','name':'Tree Patio','rain_delay':2,'watering_time':0},'zone3':{'auto_watering':True,'droplet':'https://wifiaquatimer.com/static/images/blank.gif','is_watering':False,'next_cycle':'3:17 AM','name':'Grass Backyard','rain_delay':0,'watering_time':0},'zone4':{'auto_watering':True,'droplet':'https://wifiaquatimer.com/static/images/blank.gif','is_watering':False,'next_cycle':'4:00 AM','name':'Grass Front yard','rain_delay':0,'watering_time':0}}# set faucet nameraincloudy.controller.faucet.name='Outside Left'raincloudy.controller.faucet.name'Outside Left'# enable automatic program for zone1raincloudy.controller.faucet.zone1.auto_watering=True# run water for 15 minutes on zone3raincloudy.controller.faucet.zone3.manual_watering=15# set rain delay for 2 days on zone2raincloudy.controller.faucet.zone2.rain_delay=2Current LimitationsOnly 1 (one) controller is supported.Only 1 (one) valve unit is supported.
Package: raincoat-jackett
RaincoatRaincoat is a CLI tool to search torrents usingJackett's indexers and send them directly to your client.Installationpip install raincoat-jackettRequirementsPython 3.6+Jackett and configured indexersqBittorrent, Transmission or Deluge (or use local download option)libtorrent if you use local downloader and magnet links.Arch:pacman -S libtorrent-rasterbarUbuntu:apt-get install python-libtorrent -yFedora:dnf install rb_libtorrent-python2Usageraincoat "Terms to search"Parameters-k, --keySpecify a Jackett API key-l, --lengthMax number of characters displayed in the "Description" column.-L, --limitLimits the number of results displayed.-c, --configSpecifies a different config path.-s, --sortChange the sorting criteria. Valid choices are: 'seeders', 'leechers', 'ratio', 'size' and 'description'. Default/not specified is 'seeders'.-i, --indexerChange the indexer used for your search, in cases where you want to only search one site. Default is "all".-d, --download xGrab the first x resultd and send to the client immediately. Defaults to 1.-K, --insecureDon't verify certificates--localForce use of "local" file download.--listSpecify a file to load search terms from. One term per line.--verboseExtra verbose logging sent to log file.Configuration fileUpon installation, a config file is created in your home directory. Before you can use Raincoat, you will need to modify it.{"jackett_apikey":"","jackett_url":"http://your_base_jackett_url","jackett_indexer":"all","description_length":100,"exclude":"words to exclude","results_limit":20,"client_url":"http://your_torrent_client_api","display":"grid","torrent_client":"qbittorrent","torrent_client_username":"admin","torrent_client_password":"admin","download_dir":"/some/directory/"}jackett_apikey (string)The api key provided by Jackett, found on the dashboard.jackett_url (string)The base url for your jackett instance. (default:http://127.0.0.1:9117)jackett_indexer (string)The jackett indexer you wish to use for searches.description_length (int)The default description lengthexclude (string)Words to exclude from your results seperated by a space.results_limit (int)Max number of lines to show.client_url (string)The url to your torrent client's APIdisplay (string)The display style of the results table. You can view available choicesheretorrent_client (string)Your torrent client. Valid options are: local, qbittorrent, transmission and deluge.torrent_client_username (string)Your torrent client's login username.torrent_client_passwordYour torrent client's login password. Note: Only Transmission accepts empty passwords.download_dirWhere to save the torrent files when using "local" downloader.Built withrequestsjustlogcoloramatabulatetransmission-clutchdeluge-clientpython-qbittorrentAll available on Pypi.LicenseThis project is licensed under the MIT License
Package: raincoat-umbrella
This package is not very interesting :)I feel a little bad to upload a “useless” package to the real PyPI, but the
existence of this package will allow writing a much clearer tutorial in the
documentation ofRaincoat.Thank you !UsageLaunch the commandumbrella.Move and open/close the umbrella with the arrow keys.Stare at the rain and find you inner peace.When you’re done, quit withq.
Package: raindancers-network.raindancers-cdk
Raindancers Network Construct Library...The raindancers network package contains  constructs that construct to provide easy to use abstractions, particually for using in an enterprise network, with Transit Gateways, Cloudwan, Network Firewalls.Note: This Construct Library is functional, but there is no promise thate that breaking changes could occur.    While this construct is highly opinionated, it seeks to solve a wide set of scenerios that its author has faced, and problems that others have described.   The author of this construct encourages and welcome PR's.  Please raise an issue to startThe EnterpriseVPC provides addtional methods from the standard ec2.Vpc construct, while maintaining compatiblity, so it can be used with other constructs that use the ec2.VpcA getting started example provides guidence in using the constructs in typescript cdkGetting StartedDeploying VPC with CloudwanCreate A shared Egress VPC, using AWS Network FirewallsTransit Gateways and IPSec over DXSlack:  A good way to to get help with this construct, is to join the [cdk.dev] (https://cdk.dev/) slack channel.This construct is published as a ready to import module for both typescript and python, via npm and pypi. Look here for detailsconstructs.dev
Package: raindancesvi
Welcome to RainDancesVI!RainDancesVI is TensorFlow-based implementation of Independent Classifier Networks (InClass nets) in Python 3. InClass nets can be used forNonparametric estimatimation of conditional independence mixture modelsUnsupervised classificationProject website:https://prasanthcakewalk.gitlab.io/raindancesvi/References and citation guideIf you use the techniques implemented in RainDancesVI in your work, please consider citing the original paper that introduced them.Konstantin K. Matchev, Prasanth Shyamsundar,"InClass Nets: Independent Classifier Networks for Nonparametric Estimation of Conditional Independence Mixture Models and Unsupervised Classification",arXiv:2009.00131 [stat.ML].CopyrightCopyright © 2020 Konstantin Matchev and Prasanth ShyamsundarRainDancesVI is licensed under the MIT License (click to expand).Permission 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: rain_disagg
==================================================This library is now part of the ambhas(http://pypi.python.org/pypi/ambhas/) library.Updates will only be made in the ambhas library.==================================================A library to disaggregate the rainfall. It uses the random multipicative cascademoethod. The approach is given in the following article:Sat Kumar, M. Sekhar, D. V. Reddy. Improving the disaggregation of dailyrainfall into hourly rainfall using hourly soil moisture