Saravanan666/pypi-org huggingface dataset:
Package: rockydb
RockyDBSimple NoSQL database written in Python. It relies on rocksdb as its storage engine. This is more of a Proof-of-concept than a production-ready database.Installationpip install rockydbContentsRockyDBInstallationContentsFeaturesDocumentationCreate collectionInsert doucmentGet documentDelete documentQueryFeaturesCurrently under active development, however here is the feature list so far:Create collectionsInsert, get and delete documentsREST APIQuery languageIndexesFull-text Search [IN-DEVELOPMENT]PerformanceDataset:NBA Players Dataset.
Computer: MacBook Pro (13-inch, 2019).
RockyDB is still in its early days, these results will likely get better in the future.DatabaseInsertGetQueryDeleteRockyDB0.000740.000380.000140.00023MongoDB0.044360.045180.000040.04264DocumentationFullDocumentation. Below are the basics:Create collectionfromrockydbimportRockyDBdb=RockyDB(path="database/")news=db.collection("news")Insert documentSupported data types:str,int,float,boolandlist. Will support more later.doc_id=news.insert({"title":"Can store strings","year":2022,"people":["lists","are","fine","too"],"pi":3.14,"real":True})Theinsertmethod will return a unique document_id._idwill be created if document does not contain it.Get documentnews.get(doc_id)Delete documentnews.delete(doc_id)Querynews.find({"pi?lt":3.14,"real":True},limit=10)Thelimitarg is optional, default is 10. Supports exact, lte, lt, gt and gte queries.
Package: rocm-docs-core
ROCm Documentation Core UtilitiesROCm Docs Core is also distributed as a pip package available from PyPi asrocm-docs-corePurposeThis repository is comprised of utilities, styling, scripts, and additional HTML content that is common to all ROCm projects' documentation. This greatly aids in maintaining the documentation, as any change to the appearance only needs to be modified in one location.UsageSetupInstall this repository as a Python package using pipFrom PyPi:pip install rocm-docs-coreFrom GitHub:pip install git+https://github.com/RadeonOpenCompute/rocm-docs-core.git.Setrocm_docs_themeas the HTML themeAddrocm_docsas an extensionOptionally, addrocm_docs.doxygenandsphinxcontrib.doxylinkas extensionsFor an example, see thetest conf.pyLegacy SetupFrom therocm_docspackage import the functionsetup_rocm_docsintoconf.pyfor the ReadTheDocs project.Call exactly the following, replacing<PROJECT NAME HERE>with the name of the project.For an example, see thetest legacy conf.pyDocumentationTherocm-docs-coredocumentation is viewable athttps://rocm.docs.amd.com/projects/rocm-docs-core/en/latest/User GuideThe User Guide describes how users can make use of functionality inrocm-docs-coreIt is viewable athttps://rocm.docs.amd.com/projects/rocm-docs-core/en/latest/user_guide/user_guide.htmlDeveloper GuideThe Developer Guide provides additional information on the processes in toolchains forrocm-docs-coreIt is viewable athttps://rocm.docs.amd.com/projects/rocm-docs-core/en/latest/developer_guide/developer_guide.htmlBuild Documentation LocallyTo build therocm-docs-coredocumentation locally, run the commands below:pipinstall-rrequirements.txtcddocs
python3-msphinx-T-E-bhtml-d_build/doctrees-Dlanguage=en._build/html
Package: roco
Roco - Runtime config generatorCommand line utility tool which prints to the standard output javascript valid
text generated from environment variables.For example, given following environment variables:PAPERMERGE__AUTH__GOOGLE_CLIENT_ID=some-id.apps.googleusercontent.com
PAPERMERGE__AUTH__GOOGLE_AUTHORIZE_URL=https://accounts.google.com/o/oauth2/auth
PAPERMERGE__AUTH__GOOGLE_REDIRECT_URI=http://localhost:11000/google/callbackwill result in the following text (valid javascript) as output:window.__PAPERMERGE_RUNTIME_CONFIG__ = {
  oauth2: {
    google: {
      client_id: 'some-id.apps.googleusercontent.com',
      authorize_url: 'https://accounts.google.com/o/oauth2/auth',
      redirect_uri: 'http://localhost:11000/google/callback',
      scope: 'openid email',
    },
  }
};Installpip install rocoUsageIf no relevant environment variables were defined just running:rocoWill result in following output:window.__PAPERMERGE_RUNTIME_CONFIG__ = {
};i.e. valid, but empty, javascript object.
In order to see current roco's pydantic settings (read from env vars)
run:roco -sThe above command will also show the env var prefix i.e.PAPERMERGE__AUTH__.Roco reads from following environment variables:PAPERMERGE__AUTH__GOOGLE_AUTHORIZE_URLPAPERMERGE__AUTH__GOOGLE_CLIENT_IDPAPERMERGE__AUTH__GOOGLE_REDIRECT_URIPAPERMERGE__AUTH__GITHUB_AUTHORIZE_URLPAPERMERGE__AUTH__GITHUB_CLIENT_IDPAPERMERGE__AUTH__GITHUB_REDIRECT_URIPAPERMERGE__AUTH__LDAP_URL
Package: rocore
Core classes and functions, reusable in any kind of Python applicationFeatures:exception classes to express common scenariosimplementation of models annotations, useful to implement validation of business objectsfriendly JSON encoder, handlingdatetime,date,time,UUID,bytesimplementation of simple in-memory cache, supporting expiration of items and capped listsutilities to work withfoldersand pathsStopWatchimplementationa base class to handle classes that can be instantiated from configuration dictionariescommon decorator to support retriescommon decorator to support logging function callscommon decorator to control raised exceptionsInstallationpipinstallrocoreDocumentationPlease refer to documentation in the project wiki:https://github.com/RobertoPrevato/rocore/wiki.Develop and run tests locallypipinstall-rrequirements.txt# run tests using automatic discovery:pytest# with code coverage:maketestcov
Package: roc-rap
RAP PLUGIN READMEThis directory contains the source files of the Rpw dAta Processor (RAP), a plugin of the ROC pipelines dedicated to process RPW L0 data into L1.RAP has been developed with thePOPPY framework.QuickstartInstallation with pipTo install the plugin using pip:pip install roc-rapNOTES:- It is also possible to install roc-rap from gitlab using the command `pip install roc-rap --extra-index-url https://__token__:<your_personal_token>@gitlab.obspm.fr/api/v4/projects/2052/packages/pypi/simple --trusted-host gitlab.obspm.fr`. A personnal access token is required to reach the package registry in the ROC Gitlab server.Installation from the repositoryFirst, retrieve theRAPrepository from the ROC gitlab server:git clone https://gitlab.obspm.fr/ROC/Pipelines/Plugins/RAP.gitThen, install the package (here using (poetry)[https://python-poetry.org/]):poetry installNOTES:- It is also possible to clone the repository using SSH
- To install poetry: `pip install poetry`
- Default branch is `develop`UsageThe roc-rap plugin is designed to be run in a POPPy-built pipeline.
Nevertheless, it is still possible to import some classes and methods in Python files.Contactsxavier.bonnin@obspm.fr
Package: roc-rpl
RPL PLUGIN READMEThis directory contains the source files of the RPW Packet parsing Library (RPL), a plugin of the ROC pipelines dedicated to parse the RPW telemetry/command packets.RPL has been developed with thePOPPY framework.QuickstartInstallation with pipTo install the plugin using pip:pip install roc-rplNOTES:- It is also possible to install plugin from gitlab: `pip install roc-rpl --extra-index-url https://__token__:<your_personal_token>@gitlab.obspm.fr/api/v4/projects/2052/packages/pypi/simple --trusted-host gitlab.obspm.fr`. A personal access token is required to reach the package registry in the ROC Gitlab server.Installation from the repositoryFirst, retrieve theRPLrepository from the ROC gitlab server:git clone https://gitlab.obspm.fr/ROC/Pipelines/Plugins/RPL.gitThen, install the package (here using (poetry)[https://python-poetry.org/]):poetry install --extras "poppy"NOTES:- It is also possible to clone the repositiory using SSH
- To install poetry: `pip install poetry`
- Default branch is `develop`UsageThe roc-rpl plugin is designed to be run in a POPPy-built pipeline.
Nevertheless, it is still possible to import some classes and methods in Python files.For instance, to test that the installation has ended correctly, run:python -c "from roc.rpl import packet_structure"No message should be returned if the import works well.AuthorsXavier BONNINxavier.bonnin@obspm.fr(maintainer)Manuel DUARTEmanuel.duarte@obspm.fr(author)Sonny LIONsonny.lion@obspm.fr(author)LicenseThis project is licensed under CeCILL-C.AcknowledgmentsSolar Orbiter / RPW Operation Centre (ROC) team
Package: roc-tools
Compute and ploting ROC charts is not easy, which usually requires a MapReduce like data proccessing code.This tools is highly optimized and run on single machine super fast. In the brenchmarking, it processed 1.1G compressed GZ data within 300 seconds on a 3.1 GHz Intel Core i7 Macbook pro.It provides both CLI and python interface.More details seehttps://github.com/fengyu05/roc.
Package: roc-utils
roc-utilsThis Python package provides tools to compute and visualizeROC curves, which are used to graphically assess the diagnostic ability of binary classifiers.Useroc_utilsto perform ROC analyses, including the calculation of the ROC-AUC (the area under the ROC curve) and the identification of optimal classification thresholds for different objective functions. In addition, it is possible to compute mean, tolerance interval (TI) and confidence interval (CI) for a set of (related) ROC curves. Finally, error bounds can be estimated and visualized by means of boostrap sampling.Installation:pip install roc-utilsUse the following commands for a quick verification of the installation.python -c "import roc_utils; print(roc_utils.__version__)"
python -c "import roc_utils; roc_utils.demo_bootstrap()"Usage:Seeexamples/tutorial.ipynbfor step-by-step introduction.importnumpyasnpimportmatplotlib.pyplotaspltimportroc_utilsasru# Construct a binary classification problemx,y=ru.demo_sample_data(n1=300,mu1=0.0,std1=0.5,n2=300,mu2=1.0,std2=0.7)# Compute the ROC curve...pos_label=Trueroc=ru.compute_roc(X=x,y=y,pos_label=pos_label)# ...and visualize itru.plot_roc(roc,label="Sample data",color="red")plt.show()# To perform a ROC analysis using bootstrappingn_samples=20ru.plot_roc_bootstrap(X=x,y=y,pos_label=pos_label,n_bootstrap=n_samples,title="Bootstrap demo");plt.show()Build from source:To fetch the project and run the tests or examples:gitclonehttps://github.com/hirsch-lab/roc-utils.gitcdroc-utils
pythontests/test_all.py
pythonexamples/examples.pyTo create distribution packages (a source archive and a wheel):pythonsetup.pysdistbdist_wheelTo install the newly created Python package from the source archive:pipuninstallroc-utils
pipcacheremoveroc_utils
pipinstalldist/roc_utils*.tar.gz# Verify installationpython-c"import roc_utils; print(roc_utils.__version__)"python-c"import roc_utils; roc_utils.demo_bootstrap()"
Package: rodacom.buildout.npm
Azc.buildoutrecipe to install NodeJS packages locally using npm.This recipe will install wanted packages in the localnode_modulesdirectory, and create a link to binaries
in the buildoutbindirectory.Optionspackages:required, a list of package names to install (can specify a version with the syntaxname@version).node_path:absolute path to thenodeexecutable, by default thebin/nodein buildout directory.npm_path:absolute path to thenpmexecutable, by default thebin/npmin buildout directory.strip_extension:set to ‘true’ to strip the.jsextension sometimes present on binaries (default is ‘false’).ExamplesUsing a locally compiled NodeJS:[nodejs]
recipe = zc.recipe.cmmi
url = http://nodejs.org/dist/v0.10.21/node-v0.10.21.tar.gz
bin_node = ${buildout:parts-directory}/nodejs/bin/node
bin_npm = ${buildout:parts-directory}/nodejs/bin/npm

[coffee]
recipe = rodacom.buildout.npm
node_path = ${nodejs:bin_node}
npm_path = ${nodejs:bin_npm}
packages = coffee-script@1.6.3Known bugsThe links generated in the ‘bin’ directory are not removed on uninstall.
Package: rodatabase.py
Rodatabase.pyHow to install?pip install rodatabase.pyHow to start using the Library?from robase.imports import DatabaseClient

DB = DatabaseClient(universeId=YOUR_ID_HERE, token="YOUR_API_TOKEN_HERE", ROBLOSECURITY="YOUR_.ROBlOSECURITY_HERE")All functionsawait DB.get_datastores()
Datastore = await DB.get_datastore("Test1")
await Datastore.get_keys(datastore="ExampleDatastore", limit=99)
await Datastore.set_data(datastore="ExampleDatastore", key="ExampleKey", data="ExampleData") 
await Datastore.increment_data(datastore="ExampleDatastore", key="ExampleKey", incrementby=1)
await Datastore.delete_data(datastore="ExampleDatastore", key="ExampleKey")
await Datastore.get_data(datastore="ExampleDatastore", key="ExampleKey")For calling set_data data must be a JSON object.All JSON objects:
    String
    Number
    JSON object
    Array
    Boolean
    null
Package: rodder
rodderA distro-independent (or distro-agonistic if you wanna be fancy), non-system package manager with custom repos, similar to HomebrewFAQWhy "rodder"?Because a fishing rod grabs fish, similar to how a package manager grabs packages.NotesPyPI CLI InterfaceIf you want to run the command line app from the PyPI installer, please use the commandpython -m rodder.rodder [command]I've no fucking idea how to fix this, so deal with it I guess.PyPI LibrarySimilarly (although less bad), if you want to import the package and use it, I recommend usingimport rodder.rodder as rodderso you can dorodder.help(),rodder.install('package'), etc. etc.I'll have some docs up on the library soonish, but it's pretty simple, just look at the code
Package: rodent
# Rodent
A simple CLI utility that can add license headers to your files.## Motives
Attempted using the Apache RAThttps://creadur.apache.org/rat/apache-rat/index.htmland failed. Had to download the Java SDK, executed the thing and got a
Java error.# Featuresrodent list: lists the files that are in scope (git-aware, only includes
files tracked by git)rodent check: allows to break a build when a new file without
header is introduced in the code base, logs all non-compliant filesrodent apply: mass inserts Apache license headers throughout largecode basesAll commands receive a-f–file-regexargument that allow to filter
files that are affected.## LimitationsCurrently only works for py/js/jsx, can easily be extended to support
more file types
Package: rodeometric
Robust Detection Outcome (RoDeO)Official Repository of "Robust Detection Outcome: A Metric for Pathology Detection in Medical Images"
RoDeO is an easy to use object detection metric useful for (but not limited to) applications in medical imaging, such as pathology detection in Chest X-ray images.
It evaluates three sources of errors (misclassification, faulty localization, and shape mismatch) separately and combines them to one score.
RoDeO better fulfills requirements in medical applications through itsinterpretability, notion ofproximityand strong penalization of over- and under-prediction,encouraging precise models.InstallationRoDeO is available as a python package for python 3.7+ asrodeometric. To install, simply install it with pip:python-mpipinstallrodeometricUsageimportnumpyasnpfromrodeoimportRoDeO# Init RoDeO with two classesrodeo=RoDeO(class_names=['a','b'])# Add some predictions and targetspred=[np.array([[0.1,0.1,0.2,0.1,0.0],[0.0,0.3,0.1,0.1,1.0],[0.2,0.2,0.1,0.1,0.0]])]target=[np.array([[0.0,0.0,0.1,0.1,0.0],[0.0,0.2,0.1,0.1,1.0]])]rodeo.add(pred,target)# Compute the scorescore=rodeo.compute()forkey,valinscore.items():print(f'{key}:{val}')Advantages of RoDeOAP@IoU benefits from severe overprediction at higher thresholdsRoDeOAP@IoUacc@IoUAcc@IoU achieves high scores with underprediction due to the dominance of true negativesRoDeOAP@IoUacc@IoUCompared to threshold-based metrics (like Average Precision @ IoU), RoDeO degrades more gracefully and has a better notion of proximityAP@IoUacc@IoU
Package: rodi
Implementation of dependency injection for Python 3Features:types resolution by signature types annotations (type hints)types resolution by class annotations (type hints)types resolution by names and aliases (convention over configuration)unintrusive: builds objects graphwithoutthe need to change the
source code of classesminimum overhead to obtain services, once the objects graph is builtsupport for singletons, transient, and scoped servicesThis library is freely inspired by .NET StandardMicrosoft.Extensions.DependencyInjectionimplementation (ref.MSDN,
Dependency injection in ASP.NET
Core,Using dependency injection in a .Net Core console
application).
TheContainerProtocolfor v2 is inspired bypunq.InstallationpipinstallrodiEfficientrodiworks by inspecting codeonceat runtime, to generate
functions that return instances of desired types - as long as the object graph
is not altered. Inspections are done either on constructors
(__init__) or class annotations. Validation steps, for
example to detect circular dependencies or missing services, are done when
building these functions, so additional validation is not needed when
activating services.Flexiblerodioffers two code APIs:one is kept as generic as possible, using aContainerProtocolfor scenarios
in which it is desirable being able to replacerodiwith alternative
implementations of dependency injection for Python. The protocol only expects
a class being able toregisterandresolvetypes, and to tell if a type
is configured in it (__contains__). Even if other implementations of DI
don´t implement these three methods, it should be easy to usecompositionto
wrap other libraries with a compatible class.one is a more concrete implementation, for scenarios where it's not desirable
to consider alternative implementations of dependency injection.For this reason, the examples report two ways to achieve certain things.ExamplesFor examples, refer to theexamples folder.Recommended practicesAll services should be configured once, when an application starts, and the
object graph shouldnotbe altered during normal program execution.
Example: if you build a web application, configure the object graph when
bootstrapping the application, avoid altering theContainerconfiguration
while handling web requests.Aim at keeping theContainerand service graphs abstracted from the front-end
layer of your application, and avoid mixing runtime values with container
configuration. Example: if you build a web application, avoid if possible
relying on the HTTP Request object being a service registered in your container.Service life style:singleton - instantiated only once per service providertransient - services are instantiated every time they are requiredscoped - instantiated only once per root service resolution call
(e.g. once per web request)Usage in BlackSheeprodiis used in theBlackSheepweb framework to implementdependency injectionfor
request handlers.DocumentationUnder construction. 🚧
Package: ro-diacritics
RO Diacritics moduleRO Diacriticsis a straightforward diacritics restoration module for Romanian Languagefromro_diacriticsimportrestore_diacriticsprint(restore_diacritics("fara poezie, viata e pustiu"))or correcting a pandas dataframe:fromro_diacriticsimportrestore_diacriticsdf['text-diacritice']=df['text'].apply(restore_diacritics)Installing$python-mpipinstallro-diacriticsor$pipinstallro-diacriticsRequirementstorch and torchtextnumpynltk and scikit-learn (for training)needs nltk.download('punkt') for tokenizationReferencesRuseti, S., Cotet, T. M., & Dascalu, M. (2020). Romanian Diacritics Restoration Using Recurrent Neural Networks. arXiv preprint arXiv:2009.02743.https://github.com/teodor-cotet/DiacriticsRestoration
Package: rodin-helpers
Rodin HelpersБиблиотека с набором функций для наглядного вывода данных в Jupyter NotebookУстановкаpipinstall-Ugit+https://github.com/madiedinro/rodin_helpers_pyimportrodin_helpersasrhВ jupyer перед командой добавляется префикс!Вывод ссылки в заданном форматеrh.show_link('https://digitalgod.be')Результат:ClickAuthorizeor openhttps://digitalgod.bein your browserВывод YouTube видео по idrh.video('2-gboBo3MtY')Отображение структурированных данных с указанием типовdata=[{'date':'2019-01-11','metrics':{'visits':1534,'impressions':2345}},{'date':'2019-01-12','metrics':{'visits':1324,'impressions':2132}}]rh.walk(data)Результат:[list[dict0|0>date=2019-01-11[dict0>metrics|0>metrics>visits=1534|0>metrics>impressions=2345[dict1|1>date=2019-01-12[dict1>metrics|1>metrics>visits=1324|1>metrics>impressions=2132Представление построчных данных (к примеру, из бд)rh.print_rows(data)Результат:campaign_iddateutm_termutm_sourceaccount_idspentutm_campaignclicksutm_contentimpressionsad_idreach10108194232019-01-20retarg-mobvk1603421955Nonedr4Nonekiborg-vid1249726084810108194232019-01-21retarg-mobvk1603421955Nonedr4Nonekiborg-vid15497260841310108194232019-01-22retarg-mobvk160342195513.00dr4Nonekiborg-vid749726084710108194232019-01-23retarg-mobvk1603421955Nonedr4Nonekiborg-vid949726084810108194232019-01-24retarg-mobvk1603421955Nonedr4Nonekiborg-vid549726084510108194232019-01-25retarg-mobvk16034219554.60dr4Nonekiborg-vid449726084310108194232019-01-26retarg-mobvk1603421955Nonedr4Nonekiborg-vid449726084310108194232019-01-27retarg-mobvk1603421955Nonedr4Nonekiborg-vid649726084510108194232019-01-28retarg-mobvk1603421955Nonedr4Nonekiborg-vid349726084310108194232019-01-29retarg-mobvk1603421955Nonedr4Nonekiborg-vid549726084510108194232019-01-30retarg-mobvk1603421955Nonedr4Nonekiborg-vid2497260842campaign_id|date|utm_term|utm_source|account_id|spent|utm_campaign|clicks|utm_content|impressions|ad_id|reach
---|---|---|---|---|---|---|---|---|---|---|---1010819423|2019-01-20|retarg-mob|vk|1603421955|None|dr4|None|kiborg-vid|12|49726084|81010819423|2019-01-21|retarg-mob|vk|1603421955|None|dr4|None|kiborg-vid|15|49726084|131010819423|2019-01-22|retarg-mob|vk|1603421955|13.00|dr4|None|kiborg-vid|7|49726084|71010819423|2019-01-23|retarg-mob|vk|1603421955|None|dr4|None|kiborg-vid|9|49726084|81010819423|2019-01-24|retarg-mob|vk|1603421955|None|dr4|None|kiborg-vid|5|49726084|51010819423|2019-01-25|retarg-mob|vk|1603421955|4.60|dr4|None|kiborg-vid|4|49726084|31010819423|2019-01-26|retarg-mob|vk|1603421955|None|dr4|None|kiborg-vid|4|49726084|31010819423|2019-01-27|retarg-mob|vk|1603421955|None|dr4|None|kiborg-vid|6|49726084|51010819423|2019-01-28|retarg-mob|vk|1603421955|None|dr4|None|kiborg-vid|3|49726084|31010819423|2019-01-29|retarg-mob|vk|1603421955|None|dr4|None|kiborg-vid|5|49726084|51010819423|2019-01-30|retarg-mob|vk|1603421955|None|dr4|None|kiborg-vid|2|49726084|2
Package: rodlayout
Canvas Backend to Cadence Rod ObjectsInstallpipinstallrodlayoutRead more in thefull documentation.fromskillbridgeimportWorkspacefromgeometryimportRect,GroupfromrodlayoutimportCanvas,LayerWorkspace.open().make_current()r=Rect[0:2,0:4,Layer('M1','drawing')]c=Canvas()c.append(r)rod,=c.draw()print(rod)# rect@...r2=Rect[0:4,0:2,Layer('M2','drawing')]c=Canvas()c.append(Group([r,r2]))db,=c.draw()print(db)# figGroup@...
Package: rodos
This is a port of the rodos middleware to PythonRODOS is dependable real-time operating system used in satellitessee rodos gitlab. The rodos middleware Python package was created to facilitate the development of PC software, that connects to a remote microcontroller. E.g. debugging embedded applications, displaying data, easier development in python instead of c++. It is writte in pure python dependent on pyserial and the operating system's UDP/rfcomm(bluetooth) stackinstall the package withpip install rodos. Here is an example how to use in conjunction with the struct package, that comes handy for parsing data#!/bin/python3
import time
import struct

import rodos

# from rodos import *

def topicHandler(data):
    try:
        unpacked = struct.unpack("qI4b", data)
        print("timeNow = ", unpacked[0])
        print("msgIndex = ", unpacked[1])
    except Exception as e:
        print(e)
        print(data)


luart = rodos.LinkinterfaceUART(path="/dev/rfcomm2")
gwUart = rodos.Gateway(luart)
gwUart.run()

linux2rodos = rodos.Topic(1002)
rodos2linux = rodos.Topic(1003)

rodos2linux.addSubscriber(topicHandler) # <<<<<< register callback

cnt = 0
while True:
    cnt += 1
    time.sleep(1)