Saravanan666/pypi-org huggingface dataset:
Package: rick-vfs
rick-vfsMinio/S3 client VFS abstraction libraryRick-vfs is a high-level abstraction library for file operations on local repositories (a locally accessible folder) and
Minio/S3 object storage systems. The main goal is to provide a set of common interface functions with analogous behaviour,
to interact with both scenarios.The intention of "analogous behaviour" is to mimick overall intent and response type, when possible. There will always
be differences between invoking a given method on two different backends.Example:fromioimportBytesIOfromminioimportMiniofromrick_vfs.s3importMinioBucket,MinioVfsclient=Minio("localhost:9010",secure=False,access_key="SomeTestUser",secret_key="SomeTestPassword",)# initialize bucketvolume=MinioBucket(client,'my-bucket')# initialize VFS objectvfs=MinioVfs(volume)# create directoryvfs.mkdir("contents/files")# create file from bufferbuf=BytesIO(b'the quick brown fox jumps over the lazy dog')vfs.write_file(buf,'contents/files/my_test_file')# read filecontents=vfs.read_file('my_test_file')# print contentsprint(str(contents.getbuffer().tobytes(),'utf-8'))# list bucket contentsprint("Bucket contents:")foriteminvfs.ls():print(item.object_name)
Package: rickylim
rickylimHi, I am Ricky Lim!Free software: GNU General Public License v3Documentation:https://rickylim.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2020-09-26)First release on PyPI.
Package: ricochet
Ricochet - IoC simplifiedThis is still in concept stage. No implementation exists yetRicochet is designed to be an architectural design framework for Python applications which utilises inversion of
control. Built with the aim of making complex designs simpler to implement, this framework will allow you to specify
dependencies between components in a simple way and allow the framework to handle wiring the references together.It is designed to be simple, easy to learn, fast to use, but powerful when you need it, and aims to provide utilities
for wiring up a Python application using tagged components (similar to Java annotations) and configuration classes.
The recoil runner context will then manage dependency injection for you on startup, creating singletons of each
class you tag.
Package: ricochet-robots
RicochetRobotsA simple implementation of Alex Randolph's board game Ricochet Robots including solver.CompileCompile the Java code with the command:mkdir--parentsbin
javac-classpathjava/lib/commons-cli-1.3.1.jar\-dbin\java/src/info/riemannhypothesis/ricochetrobots/*.javaRunTo run, type./solve.sh-b<board>-gThis will place four robots in random positions on the board, pick one of the
targets and one of the robots to reach it, try to find a solution (within the
move and time contraints specified), and then give a graphical representation
of the moves.E.g., if you want to solve the board 3 in the repository, simply run./solve.sh-bboards/3.txt-gFor a full description of all available command line options, simply type./solve.sh
Package: ricoh-ldap-sync
Ricoh LDAP SyncCreates an address book CSV file that can be imported by Device Manager NX Lite into a Ricoh Copier.Install# pip install ricoh-ldap-syncUsageYou will need theDistinguished NameorDNof a group in Active Directory where the members are users you want in the address book of the copier.
You will also need a file share or something where you want scans to go.$ ricoh-sync <Distinguished Name of group of members in Active Directory> <Path to folder where user folders will be scanned to> --csv addressbook.csvExampleCreate a CSV in this directory calledaddressbook.csvcontaining the users that are members of the groupScanner Address Bookin theGroupsOU.
The-fmeans that folders will be created for each user in the destination (\\fileserver\Scans) by first name. So this will create folders named\\fileserver\Scans\Alice,\\fileserver\Scans\Bob, etc.$ ricoh-sync "CN=Scanner Address Book,OU=Groups,DC=example,DC=com" "\\fileserver\Scans" --csv "./addressbook.csv -fRequiresThese packages are installed automatically by pip.pyadpywin32LicenseMIT
Package: rics
RiCS: my personal little ML engineering library.What is it?An assorted collections of generic functions that used to live in a Dropbox folder where I used to keep useful snippets.
RiCS, pronounced"rix", is short forRichard'sCodeStash. I started this project with the purpose of
learning more about Python best practices, typing and the Python ecosystem. It has grown organically since then, and now
provides a wide variety of utility functions. Theid-translationsuite
(installed separately) relies heavily onrics.mapping, as well as a number of other functions provided herein.Highlighted FeaturesMultivariateperformance testing.Highly configurableelement mapping;Provides a wide variety of filtering, scoring and heuristic functions.Powers Name-to-source mapping for theid-translationsuite (installed separately).Various otherutilities, ranging fromloggingtoplottingto specializeddictfunctions.Time-based cross-validationsplitter for heterogeneous data,
includingpandasandscikit-learnintegrations.InstallationThe package is published through thePython Package Index (PyPI). Source code
is available on GitHub:https://github.com/rsundqvist/ricspipinstall-UricsThis is the preferred method to installrics, as it will always install the
most recent stable release.If you don't havepipinstalled, thisPython installation guidecan guide
you through the process.LicenseMITDocumentationHosted on Read the Docs:https://rics.readthedocs.ioContributingAll contributions, bug reports, bug fixes, documentation improvements, enhancements, and ideas are welcome. To get
started, see theContributing GuideandCode of Conduct.
Package: ricsdl
RIC SDLShared Data Layer in the RAN Intelligent ControllerShared Data Layer (SDL) provides a lightweight, high-speed interface for
accessing shared data storage. The purpose is to enable utilizing clients to
become stateless, conforming with, e.g., the requirements of the fifth
generation mobile networks.ConceptsNamespaceNamespaces provide data isolation within SDL data storage. That is, data in
certain namespace is isolated from the data in other namespaces. Each SDL
client uses one or more namespaces. Namespaces can be used, for example, to
isolate data belonging to different use cases.Keys and DataClients save key-data pairs. Data is passed as abytestype. SDL stores the
data as it is. Any structure that this data may have (e.g. a data structure
serialized bypickle) is meaningful only to the client itself. Clients are
responsible for managing the keys. As namespaces provide data isolation,
keys in different namespaces always access different data.Backend Data StorageBackend data storage refers to data storage technology behind SDL API, which
handles the actual data storing. SDL API hides the backend data storage
implementation from SDL API clients, and therefore backend data storage
technology can be changed without affecting SDL API clients. Currently, Redis
database is used as a backend data storage solution.NotificationsNotifications functionality provide SDL clients the possibility to receive
notifications about data changes in SDL namespaces. SDL client receiving
notifications about data changes is referred to as "subscriber", while the SDL
client modifying data and publishing notifications is referred to as
"publisher".InstallInstall from PyPipython3 -m pip install ricsdlInstall using the sourcepython3 setup.py installUsageInstructions how to use SDL can be found from O-RAN Software Community (SC)
Documentation under Near Realtime RAN Intelligent Controller (RIC) section:O-RAN SC Documentation HomeUnit TestingTo run the unit tests run the following command in the package directory:python3 -m pytestExamplesSee theexamplesdirectory.CIThe ci is done with thetoxtool. Seetox.inifile for details.
Package: riddle
RiddleRiddle is a Python library for encryption.InstallationpipinstallriddleUsageRiddlefromriddleimportRiddleriddle=Riddle(key=1245)encrypted=riddle.encrypt(obj=['Hello World!',123])print('Encrypted:\n\n',encrypted,'\n\n')decrypted=riddle.decrypt(encrypted)print('Decrypted:\n\n',decrypted)produces:Encrypted:wpLCr8OCfFjDjcKowqnDqcOFbcKYwrXDmcOXeMK6woZuwpVbw47DpMKiQ8OHwpnCr8Khw5XDpcKVw43Dm8Kdwr_Cq3N5wrrCokDCpsKJwpt1woXCmFjDmMOFwo7Cp8KIwoHCgcKNwprCocKhf8KKwpdobMKSwqTCpG_CosKGVMKWwpc=Decrypted:['Hello World!', 123]SecretKeeperfromriddleimportSecretKeeperfrompandasimportDataFramedata=DataFrame({'name':['John','Jack','Joe'],'age':[12,13,14],'random':[[1,2,3],[1,2,3],[1]]})data['age_divided_by_ten']=data['age']/10keeper=SecretKeeper()anonymized_data=keeper.anonymize(data=data)identified_data=keeper.identify(data=anonymized_data)data.equals(identified_data)# returns True
Package: rideology2gpx
$ rideology2gpxA simple command line program to transform log files obtained with theKawasaki Rideology Appinto.gpxfiles.RefrencesSource code in GithubPackage from Python package index (PyPI)RequirementsPython 3.6+InstallationFrom the Python package index (PyPI)Run:$pip3installrideology2gpxFrom sourceDownload fromGithubStanding inside the folder, run:$pip3install-rrequirements.txtFor install the dependencies and then run:$pip3install.Usageuser@host:~/tmp/rideology2gpx$rideology2gpx--help
Usage:rideology2gpx[OPTIONS][CSV_FILE][OUTPUT_DIR]AsimplecommandlineprogramtotransformlogfilesobtainedwiththeKawasakiRideologyAppintoGPXfiles.CSV_FILE-FileobtainedwiththeKawasakiRideologyApp.OUTPUT_DIR-Optionaloutputdirectorywherethefileswillbecreated.Formoreinfo:https://github.com/jbokser/rideolgy2gpxAuthor:JuanS.Bokser<juan.bokser@gmail.com>Version:1.0

Options:-v,--versionShowversionandexit.-d,--date[%Y-%m-%d%H:%M:%S]StartingdatetimeforthetrackintheGPXfiles.-f,--filterFILTERFilterappliedtowaypoints.-g,--graphMakegraphsandmdreport.-h,--helpShowthismessageandexit.Thevalidvalues​forFILTERare:from-0-to-100-kmhfrom-20-to-120-kmhfrom-100-to-200-kmhfrom-0-to-top-speedchop-1km-at-endchop-1km-at-startchop-1km-at-start-and-endchop-3km-at-endchop-3km-at-startchop-3km-at-start-and-end
user@host:~/tmp/rideology2gpx$rideology2gpxexample/ride.csv-d"1979-08-09 09:25:00"Makefile'example/ride.gpx'...Ok
Makefile'example/ride_gear_shifts.gpx'...Ok
Makefile'example/ride_speed_shifts.gpx'...Ok
Makefile'example/ride_report.txt'...Ok

Fromgasstationtonextgasstation==============================Maxenginespeed:3846rpm
Maxwheelspeed:60km/h
Maxwatertemp:101℃
Avgidlespeed:1202rpm
Avgspeed:30km/h
Totaltime:0:07:49
Distance:1.87km
Startingpoint:S034°30′29.52″E058°28′46.70″
Endingpoint:S034°29′53.65″E058°29′02.93″

Maxforeachgear
--------------Gearrpmkm/h1313729236114533784584384660user@host:~/tmp/rideology2gpx$Why? (The rationale behind this)Mainly used bymeto get info from my bike.Obtain the log files fromKawasaki Rideology AppAuthorJuan S. Bokserjuan.bokser@gmail.com
Package: ridesims
RideSimsA python package for running ride sequence automation scripts for RideSims.Working with PoetryThe commands listed below can be used to install, build, and run the package using Poetry.Add a library to the dependencies:$ poetry add <package>Install the package with its dependencies:$ poetry installCreate a wheel package:$ poetry buildTest the wheel package:$ pip install --user /ridesims/dist/ridesims-0.1.0-py3-none-any.whlMeet the RidesEverest 🏔Splash Mountain 🐰...
Package: ridgeplot-py
ridgeplot-pyThis is a simple module for plottingridgeplotwith thescipy ecosystem.Ridgeplot is a great data visualization technique to compare distributions from multiple groups at the same time, and was first introduced in 2017 as joy plot:I hereby propose that we call these "joy plots"#rstatshttps://t.co/uuLGpQLAwY— Jenny Bryan (@JennyBryan)April 25, 2017ridgeplot-pyprovides a simple API to produce matplotlib-compatible ridgeplots, as well as a handyColorEncoderclass with scikit-learn syntax for manipulating color annotations in a consistent way [through out manuscripts or presentations].Installgitclonegit@github.com:wckdouglas/ridgeplot-py.gitcdridgeplot-py
pythonsetup.pyinstallor via conda:condainstall-cconda-forgeridgeplot-pyor via pypi:pipinstallridgeplot-pyUsagefromridgeplotimportridgeplotfromridgeplot.colorsimportColorEncoder,ColorPaletteimportnumpyasnpimportmatplotlib.pyplotasplt# mocking some data# the input data should be a dict of# - keys: group names for the distributions# - values: list of valuesdata={}foriinrange(8):data['data_{}'.format(i)]=np.random.randn(100)*(i+1)# make the plotfig=plt.figure()ax=fig.add_subplot(111)ridgeplot(ax,data,xlim=(-20,20),label_size=15)ExampleAnotebookshowing quick howto is included in this repo!Build on Apple siliconscipy may cause error and may be able to solved by thethis stackoverflow answer:brew install openblas
export OPENBLAS="$(brew --prefix openblas)" 
poetry install
Package: ridt
ridtRIDT (rapid indoor dispersion tool) is a Python implementation of two different
analytical dispersion models, Eddy Diffusion and Well Mixed. It allows the
calculation of concentrations and exposures based on an arbitrary set of
instantaneous, infinite duration, and fixed duration source terms in a cuboid
bounded system. The Well Mixed model is a set of dimensionless exponential decay
equations, whereas the Eddy Diffusion model is a variant of the standard
solution to the 1D diffusion equation solved with closed boundary conditions,
combined in a separable product in three dimensions.Getting StartedWindowsInstall Python 3.8.x.The installer can be foundhere.Once you have installed it to some locationpath, add bothpathandpath/Scripts to your system path. For instructions of how to add things
to your system path, please seehere.If you open a Command Prompt or Powershell window and typepython -Vyou
should see Python 3.8.x, where x is the subversion of Python 3.8 you
downloaded.You should also have access to the Python package manager pip. If you run
the commandpip, you should see usage instructions appear.Install ridt.If you have pip installed, you can simply run the commandpip install ridtto install the latest version of ridt.UsagePlease refer to the comprehensiveuser guide.
Package: rieapie
IntroductionAn example for accessing google maps rest api using rieapie.importrieapiegmap=rieapie.Api("http://maps.googleapis.com/maps/api")args={"origin":"Toronto","destination":"Montreal","avoid":"highways","mode":"bicycling","sensor":"false"}directions=gmap.directions.json.get(**args)printdirections["routes"][0]["bounds"]An example for accessing the twitter api with the provided twitter wrapper.importrieapieparams={"consumer_key":"...","consumer_secret":"..."}# or if you want to provide an access tokenparams={"consumer_key":"...","consumer_secret":"...","access_token":"..",,"access_token_secret":".."}twitter=rieapie.wrappers.Twitter(**params)timeline=twitter.statuses.user_timeline(ext="json")# or if you prefer this syntaxtimeline=twitter.statuses["user_timeline.json"]forstatusintimeline.get(count=10,screen_name="mybestfriend"):printstatus['text']why is it ‘rieapie’?[R]est [i]s [E]asy [a]s [P]ython [i]s [E]asy[R]est [i]s [E]asy [a]s [PIE][R]est [i]s [E]asy [API]… [E]asy
Package: riego
Riego - Garden-Watering-SystemUsing MQTT-Devices and MQTT-ServerLinux Daemon with WebinterfaceDesigned for running on embedded device like RaspberryControl from Cloud Server is possibleAlready in production for testing, but Work in progressYet no documentation availableEinstellungen im Dashboard:Intervall == 0 => mittgas zusätzlichduration == 0 => keine automatische Abschaltungaktiviert == 0 => keine automatische Einschaltungis_hidden == 0 => keine automatische Ein-/ Ausschaltung
Package: riemann
riemannRiemannis a pure-Python package for computing Riemann sums of functions in $n$-dimensional space.Basic UsageRiemannprovides an intuitive syntax for calculating the Riemann sum of a function over a closed interval. The below code snippet computes the Riemann sum of $f(x) = x^{2}$ over the interval $[0, 2]$ using 10 partitions along the $x$ axis.>>>importriemann>>>fromriemannimportDimension>>>f=lambdax:x**2>>>dim_x=Dimension(0,2,10,riemann.LOWER)>>>dim_xDimension(a=0,b=2,n=10,method=Method(name='lower'))>>>riemann.rsum(f,dim_x)Decimal('2.28')However,Riemannis not restricted to computing Riemann sums only over one dimension. A similar syntax can be used to calculate the Riemann sum of a function of several real variables over a closed multi-dimensional interval. The below code snippet computes the Riemann sum of $f(x, y) = x^{2} y^{2}$ over the interval $x \in [0, 2], y \in [0, 4]$ using 10 partitions along the $x$ axis and 10 partitions along the $y$ axis.>>>importriemann>>>fromriemannimportDimension>>>f=lambdax,y:(x**2)*(y**2)>>>dim_x=Dimension(0,2,10,riemann.MIDDLE)>>>dim_xDimension(a=0,b=2,n=10,method=Method(name='middle'))>>>dim_y=Dimension(0,4,10,riemann.MIDDLE)>>>dim_yDimension(a=0,b=4,n=10,method=Method(name='middle'))>>>riemann.rsum(f,dim_x,dim_y)Decimal('56.6048')The sole requirement is that the number of parameters taken by the function passed as thefuncargument toriemann.rsumequals the number ofriemann.Dimensionobjects passed.FeaturesFast computation of Riemann sum.Support for computation of multi-dimensional Riemann sum.Built-in support for left, middle, and right Riemann sum methods.Support for custom Riemann sum methods (using the :py:class:riemann.Methodclass).RequirementsRiemannrequires Python 3.7+. This project does not require any additional dependencies.Installation$pipinstallriemannDocumentationThe documentation for this project is available onRead the Docs.
Package: riemann-fping
# riemann-fpingThis program is a wrapper around the [fping](https://fping.org/) utility. It will use the fping to collect the latency and packet loss information to multiple targets and send the collected data to a [RIEMANN](http://riemann.io/) instance.It uses the [borntyping's riemann-client](https://github.com/borntyping/python-riemann-client) to talk to RIEMANN.Both server certificate validation and custom client certificates are supported for TLS connections.## InstallingYou can install the latest released verison of the riemann-fping with pip:```bashpip install riemann-fping```## Using```$ riemann-fping --helpusage: riemann-fping [-h] [--host HOST] [--port PORT][--protocol {tcp,udp,tls}] [--timeout TIMEOUT][--keyfile KEYFILE] [--certfile CERTFILE][--ca-certs CA_CERTS] [--probe PROBE][--fping-cmd FPING_CMD] [--interval INTERVAL] [--debug]target [target ...]Pings multiple targets and sends results to RIEMANNpositional arguments:targetoptional arguments:-h, --help            show this help message and exit--host HOST           RIEMANN host (default: localhost)--port PORT           RIEMANN port (default: 5555)--protocol {tcp,udp,tls}RIEMANN protocol (default: tcp)--timeout TIMEOUT     Timeout for the TCP connection to RIEMANN (default:30)--keyfile KEYFILE     Key file for the TLS connection (default: None)--certfile CERTFILE   Certificate file for the TLS connection (default:None)--ca-certs CA_CERTS   CA certificate file to authenticate the server(default: None)--probe PROBE         Name of the probe (default: FQDN-OF-THE-HOST-RUNNING-ON)--fping-cmd FPING_CMDPath to the fping command (default: /usr/sbin/fping)--interval INTERVAL   Event interval in seconds (default: 60)--debug               Enable debug mode (default: False)```## ContributingPlease see the [CONTRIBUTING.md](CONTRIBUTING.md) file
Package: riemann_wrapper
Introductory blog post:http://www.spootnik.org/entries/2013/05/21_using-riemann-to-monitor-python-apps.htmlThis library is provided to allow timing and exception reporting
of python functions usinghttp://riemann.io.InstallingPip:pip install riemann_wrapperPypi:https://pypi.python.org/pypi/riemann_wrapperManual:python setup.py installUsageProvide a metric name and a bernhard client for timing:import bernhard
from riemann_wrapper import wrap_riemann, riemann_wrapper

riemann = bernhard.Client()

@wrap_riemann("cpu-intensive-task", client=riemann)
def do_something_cpu_intensive():
   # [...]Call options:The following keyword args may be passed towrap_riemann:client: instance ofbernhard.Clientto send events withtags: tags to attach to riemann eventshost: override hostname for the eventlogger: a standard python logger to which transport errors may be loggedAlternately, a new wrapping function can be created by callingriemann_wrapperlike-so:import bernhard
from riemann_wrapper import wrap_riemann, riemann_wrapper

riemann = bernhard.Client()
my_wrapper = riemann_wrapper(client=bernhard.Client(), prefix="myapp.")

@my_wrapper("cpu-intensive-task")
def do_something_cpu_intensive():
   # [...]The following keyword args may be passed toriemann_wrapper:client: instance ofbernhard.Clientto send events withglobal_tags: tags present in all sent events. Default:['python'].host: override hostname for all events. Default:None.logger: a standard python logger to which transport errors may be logged.
Default:None.prefix: prepend given string to all event services. Default:python.exception_state: state sent for exceptions. Default:'warning'.send_exceptions: boolean or callable that takes an exceptions as a
parameter and returns a boolean to specify whether to send that particular
exception to riemann. Default: True.
Package: riemann-zyxel-gs1200
This program collects metrics from the web interface ofZyxel GS1200PoE switches, and submits them toRiemann.
Collected metrics includepower usage per port,number of packets received and transmitted per port,link status and speed per port,total power usage, andsystem information such as firmware version and mac address.Ariemann-dashdashboard fed by this program may look like this:How to runpip3 install --user riemann-zyxel-gs1200
cp example.ini my_configuration.ini
edit my_configuration.ini
python3 -m riemann_zyxel_gs1200 my_configuration.iniLicenseCopyright (c) 2019, Martin Stensgård.
All rights reserved.riemann-zyxel-gs1200 is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, only version 3 of the License.riemann-zyxel-gs1200 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.You should have received a copy of the GNU Affero General Public License
along with riemann-zyxel-gs1200. If not, seehttp://www.gnu.org/licenses/.