Saravanan666/pypi-org huggingface dataset:
Package: rhino-health
Rhino Health SDKProgrammatic interface for interacting with theRhino HealthFederated Learning Platform.Example UsagePlease see the sample notebook files provided to you by the Rhino Health Team for additional use cases.Create a sessionimportrhino_healthmy_username="rhino_user@rhinohealth.com"# Replace memy_password="ASecurePasswordYouSet321"# Replace mesession=rhino_health.login(username=my_username,password=my_password)There will be three ways to interact with the API after you have a sessionUse defined endpoints under lib/endpoints for single actionsUse our library functions for commonly performed advanced featuresUse our low level API Interface (advanced users)Interact with the API via defined endpointsWe've included convenience functions for our most commonly used endpoints in the library with required input and output
data classes. These can be found inrhino_health/lib/endpoints.my_projects=session.project.get_projects()my_first_project=my_projects[0]my_first_project.add_collaborator(collaborating_workgroup_uid)my_dataset=session.dataset.get_dataset(my_dataset_uid)dataset_project=my_dataset.projectmy_dataset_info=my_dataset.dataset_infoLibrary FunctionsRhinoHealth also provides library functions which combine our basic building blocks to perform common actions.Example:fromrhino_health.lib.metricsimportRocAucWithCImetric_configuration=RocAucWithCI(y_true_variable="label",y_pred_variable="pred",confidence_interval=95,timeout_seconds=600)"""data_filters=[{"filter_column":"is_roc","filter_value":1}]"""result=my_dataset.get_metric(metric_configuration)print(f"{result.output}")Interact using the low level APIPlease contact us for support with interacting with our low level API.Rate LimitsThe Rhino SDK handles rate limits of the API for you if you use the same session between threads and will attempt to queue requests.
Excess requests will be sent with exponential backoff. If you send requests to our server from multiple locations
then you may run into exceptions.Development NotesYou may need to usepip install -r requirements.txt --no-cache-diron M1 Macs
Package: rhinoinside
rhinoinside python packageEmbed Rhino in CPythonpip install --user rhinoinsideRequirements:Rhino 7Windows64 bit version of CPython (2.7, 3.5, 3.6, 3.7)Join the discussionhttps://discourse.mcneel.com/t/rhino-inside-python/78987How to useimport rhinoinside
rhinoinside.load()
import System
import Rhino

# for now, you need to explicitly use floating point
# numbers in Point3d constructor
pts = System.Collections.Generic.List[Rhino.Geometry.Point3d]()
pts.Add(Rhino.Geometry.Point3d(0.0,0.0,0.0))
pts.Add(Rhino.Geometry.Point3d(1.0,0.0,0.0))
pts.Add(Rhino.Geometry.Point3d(1.5,2.0,0.0))

crv = Rhino.Geometry.Curve.CreateInterpolatedCurve(pts,3)
print (crv.GetLength())
Package: rhinopics
rhinopicsRhinopics, let the fat unicorn rename your pics!Python CLI application to rename pictures.The date of the pictures is retrieved from the metadata of the files and concatenate with a given word to create the new name.Example of output:word_20190621_001A number is added at the end in chronological order, the number of digits depends on the number of pictures having the same date or being in the folder.InstallationpipinstallrhinopicsUsage exampleExamples are available in the docstrings of the functions. Official documentation will soon come out, or not.Development setupDescribe how to install all development dependencies and how to run an automated test-suite of some kind. Potentially do this for multiple platforms.gitclonehttps://github.com/axelfahy/rhinopics.gitcdrhinopics
python-mvenvvenv-devsourcevenv-dev/bin/activate
pipinstall-rrequirements_dev.txt
pipinstall-e.TestsSoon to come.pythontests/test_rhinopics.pyRelease History0.2.1ADD: Default argument for the keyword is the name of the directory.0.2.0ADD: Flag to modify the extension to lowercase.ADD: Add support for video files.ADD: Restructuration of project.ADD: Progress bar when renaming the files.ADD: Logger0.1.0Initial release.MetaAxel Fahy –axel@fahy.netDistributed under the MIT license. SeeLICENSEfor more information.https://github.com/axelfahyContributingFork it (https://github.com/yourname/yourproject/fork)Create your feature branch (git checkout -b feature/fooBar)Commit your changes (git commit -am 'Add some fooBar')Push to the branch (git push origin feature/fooBar)Create a new Pull RequestVersion numberThe version of the package is link to the tag pushed.To set a new version:gittagv0.1.1
gitpush--tags
Package: rhino-shapley-interop
rhino_shapely_interopA python package for converting rhino geometry (https://www.rhino3d.com/) into shapely geometry (https://pypi.org/project/Shapely/).Installation$ pip install rhino-shapley-interopSupported Geometry:Rhino Points -> Shapely PointsRhino Curves -> Shapely LineStringsRhino Breps  -> Shapely Polygon (limited to planer single surface breps)Current Limitations:One way (Rhino to Shapely)Rhino is 3D, Shapely is 2D (effectively)Breps are limited to planer single surface brepsA shapely plane is definedInstanceDefinition geometries are ignored (geometry listed in rhino3dm.File3dmInstanceDefinitionTable)BlocksAnnotationsExamples:Seeexample1.py, andexample3.pyfor importing from a fileexample2.pyfor importing from serialized brepDevelopment/ContributionsFork and clone to a local working directorySetup a virtual environment$ python -m venv env
$ source env/bin/activateInstall in editable mode$ pip install -e .[dev]Testing$ python -m unittest test.unittests
Package: rhizo-client
rhizo-clientThis is a client library for communicating withrhizo-server.InstallationFor ordinary usage, the library may be installed using pip (pip install rhizo-client).To work on the library itself, install it in editable mode (pip install -e .) which will install the required dependencies.To use a local copy of the library in a different project, install it in editable mode.cd /path/to/other/project
pip install -e /path/to/rhizo-clientConfigurationThe rhizo controller reads aconfig.yamlfile and optionallylocal.yamlfile in the current directory.
Typically theconfig.yamlfile can be stored in version control whilelocal.yamlcontains system-specific
settings and items such as secret keys that should not be in version control. Entries in thelocal.yamlfile
override settings inconfig.yaml.A minimal sample configuration file (sample_config.yaml) is included in the distribution.Alternately, config values can be set in environment variables. The variables should be upper-case forms of the config keys with a prefix ofRHIZO_. For example,RHIZO_SERVER_NAMEfor theserver_namesetting.The values are parsed as YAML to allow structured values to be specified in the environment. (JSON is valid YAML, so you can use JSON format too.) One specific gotcha to be cautious of is that strings containing colons will need to be enclosed in quotation marks or they'll be interpreted as a key/value pair.export RHIZO_SERVER_NAME='"localhost:5000"'TestsThere are two test directories:testscontains standalone tests andtests_with_serverhas tests that require a running rhizo-server instance.To run the standalone tests, first install the test dependencies (you only need to do this once):pip install -r tests/requirements.txtThen runpytest tests.To run the server-based tests, createtests_with_server/local.yamlwith your server settings and runpytestfrom thetests_with_serverdirectory.
(Note: currently this requires some steps to be completed on the server; we'll work on streamlining/documenting this.)PackagingTo build a package for public release, followthe usual procedure:pip install wheel
python setup.py sdist bdist_wheelThe project is configured to build as a universal wheel since it supports both Python 2 and Python 3 and does not include compiled extensions.To upload new releases to PyPI, seethe Python packaging documentation.
Package: rhizom
Rhizom is a web application that can display efficiently a network of relationships.It is based onFlask, and the graph is displayed usingD3.js.Authentication is handled byMozilla Persona.Download it from PyPI:https://pypi.python.org/pypi/rhizomGet the source and report bugs on GitLab:https://gitlab.com/abompard/rhizomRhizom is licensed under theAffero GPL v3or any later version.InstallationIf you are unfamiliar with the way Flask applications are usually deployed,
check outthe official documentationon Flask’s website.Rhizom provides some configuration examples to help you get started with common
deployment cases, check out thedeploysubdirectory.QuickstartThis is how you can quickly check out Rhizom. Those steps are not fit for a
proper production deployment.Install Rhizom’s dependencies. Do do that you can either use your
distribution’s package manager or create a Python VirtualEnv with the following
commands:$ virtualenv venv
$ source ./venv/bin/activate
$ pip install -r requirements.txtCreate a configuration file calledconfig.pywith the following content:import os
basedir = os.path.abspath(os.path.dirname(__file__))
DEBUG = True
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'rhizom.db')
BROWSERID_AUDIENCE = ["http://127.0.0.1:5000"]
SECRET_KEY = 'JustHavingALook,ThankYou'
ADMINS = ("your-email-address@your-domain.com")
PROPAGATE_EXCEPTIONS = TrueNow initialize the database with the follwing command:$ RHIZOM_SETTINGS=`pwd`/config.py python rhizom/scripts.py initdbFinally, start Rhizom with the following command:$ RHIZOM_SETTINGS=`pwd`/config.py python rhizom/scripts.py runserverThe console should show you the URL to visit, usuallyhttp://127.0.0.1:5000. You can now login (using the Persona button) and
start creating graphs.I hope you’ll like it. Feedback is very welcome!Contributing to the projectIf you like Rhizom and want to help the project, you can do so in the following manner (in no particular order):installing and testing: see Quickstart above, report bugs on the Gitlab project page.fixing bugs and adding features: checkout the code and use merge requests.documentation: if things seem unclear or could be explained better, please do so.design: if you think the UI could be made more intuitive, I’m very open to suggestions.translations: Rhizom is currently translated into English, French, and Catalan. If you want to add a new translation or join a translation team, please contact us.spreading the word: if you like Rhizom, tell your friends! :-)
Package: rhizopathy
Procesing tools for Winrhizotron data.Free software: BSD licenseInstallationpip install rhizopathyDocumentationhttps://rhizopathy.readthedocs.io/DevelopmentTo run the all tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.1.0 (2017-02-03)First release on PyPI.
Package: rhkpy
RHK STM data analysis toolBased on thespym project(version 0.9), for use in our research group.Documentation can be found here:https://zrbyte.github.io/rhkpy/If you use this package in your publication, consider citing it:
Peter Nemes-I., & Mirco Panighel. (2023). zrbyte/rhkpy: v1.3.3 (v1.3.3). Zenodo.https://zenodo.org/doi/10.5281/zenodo.10143224Main featuresAble to handle spectroscopy measurements (both dI/dV and I(z)):dI/dV mapsspectra along a lineindividual spectraResample dI/dV maps along a line (seemapsection)Quick, interactive visualization of spectroscopy data (seeqplot)Recreating the "navigation" window in Rev9, by plotting the relative positions of measurements (see thenavigationfunction).Generating thumbnails of your measurements (seegenthumbs)Peak fitting (seepeakfit)Installationpip install rhkpySimple exampleimportrhkpy# Load an sm4 filedata=rhkpy.rhkdata('filename.sm4')# "quick plot" of the datadata.qplot()# make thumbnails of the sm4 files in the current working directoryrhkpy.genthumbs()Also take a look at thedemo.ipynbandtutorial.ipynbJupyter notebooks in this repository.To make the most of rhkpy, also consult the xarray documentation and check out plotting examples, with HoloViews. The HoloViews website has examples on how to customize plots, as well as tutorial notebooks.
Package: rhoban-cmeel-jsoncpp
JsonCppJSONis a lightweight data-interchange format. It can represent
numbers, strings, ordered sequences of values, and collections of name/value
pairs.JsonCpp is a C++ library that allows manipulating JSON values, including
serialization and deserialization to and from strings. It can also preserve
existing comment in unserialization/serialization steps, making it a convenient
format to store user input files.DocumentationJsonCpp documentationis generated usingDoxygen.A note on backward-compatibility1.y.zis built with C++11.0.y.zcan be used with older compilers.00.11.zcan be used both in old and new compilers.Major versions maintain binary-compatibility.Special noteThe branch00.11.zis a new branch, its major version number00is to show that it is
different from0.y.zand1.y.z, the main purpose of this branch is to make a balance
between the other two branches. Thus, users can use some new features in this new branch
that introduced in 1.y.z, but can hardly applied into 0.y.z.Using JsonCpp in your projectThe vcpkg dependency managerYou can download and install JsonCpp using thevcpkgdependency manager:git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh
./vcpkg integrate install
./vcpkg install jsoncppThe JsonCpp port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, pleasecreate an issue or pull requeston the vcpkg repository.Amalgamated sourcehttps://github.com/open-source-parsers/jsoncpp/wiki/Amalgamated-(Possibly-outdated)The Meson Build SystemIf you are using theMeson Build System, then you can get a wrap file by downloading it fromMeson WrapDB, or simply usemeson wrap install jsoncpp.Other waysIf you have trouble, see theWiki, or post a question as an Issue.LicenseSee theLICENSEfile for details. In summary, JsonCpp is licensed under the
MIT license, or public domain if desired and recognized in your jurisdiction.
Package: rh-ocp-build-data-validator
Validation ofocp-build-dataImage & RPM declarationsInstallation$ pip install rh-ocp-build-data-validatorUsageValidating a single file:$ validate-ocp-build-data path/to/ocp-build-data/images/or/rpms.ymlValidating the wholeocp-build-datarepository:$ validate-ocp-build-data path/to/ocp-build/data/{images,rpms}/*ValidationsYAML FormatYAML Schema (supported schemas:ImageandRPM)Presence of correspondingDistGitrepository
(needs to match YAML filename)Presence of correspondingbranchonDistGitPresence ofGitHubrepository (if declared)Presence ofbranchonGitHub(if declared)Presence ofdockerfileonGitHub(if declared)Presence ofmanifests-dironGitHub(if declared)Stream is supported (if declared, value must match one of the entries instreams.yml)Member exists (if declared, member must be another existing declaration underimages/)
Package: rho-crypto
# Rho-CryptoBasic cryptographic utilties for common tasks.## AES CipherUtility class for encrypting and decrypting a string.Sample use:from rho_crypto.aes import AESCipherAES_SECRET_KEY = os.environ.get(‘AES_SECRET_KEY’, None)
cipher = AESCipher(AES_SECRET_KEY)# Encrypt a password
cipher.encrypt(‘plaintext-password’).decode(‘utf-8’)# Decrypt a password
cipher.decrypt(‘encrypted-password’)## HashingCreate consistent SHA1 hash of a file.Sample use:from rho_crypto.hashing import Hashermy_hasher = Hasher()
sha1_hash_val = my_hasher.hash_from_path(‘tests/fixtures/test-file.txt’, ‘SHA1’)
Package: rhodb
# RhoDBCore Database-related classes that typical Rho AI
Applications will need.  ‘Typical’ meaning using flask,
sqlalchemy/postgres, and redis.## ExamplesExample code include db initialization, helper functions,
and base classes for models.## TestingTo run the tests we need to install pyenv and tox.Follow the instructions for [pyenv](https://github.com/pyenv/pyenv#installation)
and [pyenv-virtualenv](https://github.com/pyenv/pyenv-virtualenv#installation)
to install pyenv.After pyenv is intalled, then install tox$ pip install toxThen install the different python versions in pyenv$ pyenv install 2.7.13 3.6.7Ensure testable databases are running. Remove-dif you want to run in
foreground…Redis
*docker run –name rhodb-redis -d -p 6379:6379 redis:4MySQL == 5.7
*docker run –name rhodb-mysql -d -p 3306:3306 -e MYSQL_ALLOW_EMPTY_PASSWORD=yes mysql:5.7Postgres
*docker run –name rhodb-postgres -d -p 5432:5432 -e POSTGRES_DB=rhodb_test -e POSTGRES_HOST_AUTH_METHOD=trust postgres:10Elasticsearch
*docker run –name rhodb-elasticsearch -d -p 9200:9200 -p 9300:9300 -e “discovery.type=single-node” docker.elastic.co/elasticsearch/elasticsearch:6.5.4Now, run the tests:$ tox
Package: rhodes
Rhodes is a library designed to make creatingAWS Step Functionsstate machines
simple and less error prone.
Rhodes is designed to integrate tightly withTroposphereto provide a seamless experience
for building state machines in yourAWS CloudFormationtemplates.For some examples of what this looks like, check out theexamples.ImportantThis project is a work in progress and is not ready for production use.
The low-level API is unlikely to change,
but the higher-level helper APIs might as I find better patterns.
Package: rho-django-user
A “RKM’s Humble Opinion” package for Django’s Custom User model.A custom Django user model that encompasses best practices:Email-based login“Full name”/”Short name”, rather than the “First name”/”Last name”antipatternUsage:AddrhousertoINSTALLED_APPSAddAUTH_USER_MODEL=”rhouser.User”to yoursettings.pyfile.To run tests:Run:> python runtests.py
Package: rho-pdf-diff
rho-pdf-diffPackage forked fromhttps://github.com/JoshData/pdf-diffInstallationThis package relies on the system dependencypdftotext.  After that is
installed, simply install usingsetup.pywith `pip install -e .[dev,test].UsageScriptThere is an included script for generating a text diff between two PDF
documents,rho-pdf-diff.  The simplest usage is:rho-pdf-diff <old-pdf-path> <new-pdf-path> <output-path>To see additional options runrho-pdf-diff --help.  There are a number of
flags for disabling some filters which attempt to remove unimportant diffs.LibraryThe main workflow for creating diff images from raw documents can be found in
the source of therho-pdf-diffscript.  This essentially involves creating aDocumentobject for both of the old and new PDFs, and passing these to
initialize aDiffResult.DiffResultalso can take a sequence ofDiffFilterobjects, which are essentially rules for using information
available at theDocumentlevel for removing unwanted diffs from being
included in the final result.After the text diff is created by the logic inDiffResult, a searchable PDF
containing the side-by-side documents with diffs marked is generated using theDiffImageWriterclass.  Note: the page alignment step is currentlyveryslow
for long documents with many diffs.
Package: rh.osx
Python bindings to access native macOS APIsSpecificsI created this library to provide access to native macOS APIs to other Python code I’ve written.
It usesctypesto bind to the underlying C APIs, and generally just exposes the APIs ‘as is’
without attempting to Python-ify them.It does, however, provide several facilities to make working with the APIs a little easier, but they
are entirely optional. Several types (e.g.CFTypeRef,io_object_t) have anautorelease()method which will automatically call the appropriate function to release the object when the Python
object holding the reference is destroyed.Additionally, strings can be automatically converted to/fromCFStringRef. The aforementioned
autorelease method is used to ensure that the ephemeralCFStringRefdoes not leak.There is anIOIteratorclass which can adapt anio_iterator_tinto a Python iterator.The bindings are NOT comprehensive and I generally just add stuff as I need it.The code is tested with Python 2.7 and 3.6.Examples>>> from rh.osx import corefoundation
>>> string_copy = corefoundation.CFStringCreateCopy(None,
... """The Python string object is automatically converted to a CFStringRef.
... The returned CFStringRef copy will automatically be released.""").autorelease()
>>> print(str(string_copy))
The Python string object is automatically converted to a CFStringRef.
The returned CFStringRef copy will automatically be released.LicenseThis library is distributed under the MIT license, as described in the LICENSE file.
Package: rh.osxdiskutils
Utilities to work with disks on macOSSpecificsThis library provides some functions for working with disks and mountpoints on macOS. It can
enumerate block devices and look up the mount points for attached media.The code is tested with Python 2.7 and 3.6.RequirementsMy macOS API binding libraryrh.osxis required.Examples>>> import rh.osxdiskutils
>>> all_drives = rh.osxdiskutils.find_block_devices()
>>> for drive in all_drives:
...     all_media = rh.osxdiskutils.find_media(drive)
...     for media in all_media:
...         bsd_name = rh.osxdiskutils.get_bsd_name(media)
...         mount_point = rh.osxdiskutils.get_mount_point(bsd_name)
...         if mount_point:
...             print(bsd_name, mount_point)
...
disk1 /
disk6 /Volumes/Storage
disk8 /Volumes/Storage2
disk7 /Volumes/Storage3LicenseThis library is distributed under the MIT license, as described in the LICENSE file.
Package: rhpaste
Red Hat Pastebin CLI ToolThis tool is made to allow Red Hat Employees to quickly and easily upload files to the Red Hat internal Pastebin instance (https://pastebin.test.redhat.com).InstructionsInstall with pip$pip3installrhpasteUsage:$catmyfile.txt|rhpaste
http://pastebin.test.redhat.com/xxxxxxxExpanded usage:$rhpaste--help
usage:rhpaste[-h][-fFORMAT][-eEXPIRY]Tooltouploadtextcontentfromtheclitopastebin.test.redhat.com.

optionalarguments:-h,--helpshowthishelpmessageandexit-fFORMAT,--formatFORMATformatoftext:text,html,bash,python...-eEXPIRY,--expiryEXPIRYexpiryofpaste:f=Forever,m=Month,d=Day
Package: rh-sec-data
rh-sec-dataPython wrapper Red Hat Security Data APIIt simply provides Python wrapper API forRed Hat Security Data APIInstallationpip install rh-sec-dataUsageWrapper API:You can import methods fromrh_sec_dataIn[1]:fromrh_sec_dataimportget_cveIn[2]:cves=get_cve()# Call without any filter. It will return list of dict for first 1000 CVEs.In[3]:len(cves)Out[3]:1000In[4]:cves=get_cve(advisory="RHSA-2016:0614")# Filter with specific advisory.In[5]:len(cves)Out[5]:8In[6]:get_cve(advisory="RHSA-2016:0614",bug="1317990")# Filter with specific advisory and bug.Out[6]:[{'CVE':'CVE-2016-2118','severity':'important','public_date':'2016-04-12T00:00:00Z','advisories':['RHSA-2016:0618','RHSA-2016:0619','RHSA-2016:0623','RHSA-2016:0612','RHSA-2016:0613','RHSA-2016:0624','RHSA-2016:0625','RHSA-2016:0614','RHSA-2016:0620','RHSA-2016:0621','RHSA-2016:0611'],'bugzilla':'1317990','bugzilla_description':'CVE-2016-2118 samba: SAMR and LSA man in the middle attacks','cvss_score':6.8,'cvss_scoring_vector':'AV:N/AC:M/Au:N/C:P/I:P/A:P','CWE':'CWE-300','affected_packages':['samba4-0:4.2.10-6.el6_2','samba4-0:4.2.10-6.el6_4','samba4-0:4.2.10-6.el6_5','samba3x-0:3.6.23-12.el5_9','samba4-0:4.2.10-6.el6_6','samba4-0:4.2.10-6.el6_7','samba-0:3.6.23-30.el6_6','samba3x-0:3.6.23-12.el5_11','samba-0:3.6.23-30.el6_7','samba-0:4.2.11-2.el6rhs','samba-0:3.6.23-30.el6_2','samba-0:4.2.10-6.el7_2','samba-0:3.6.23-30.el6_4','samba-0:3.6.23-30.el6_5','samba-0:3.0.33-3.41.el5_11','samba-0:4.2.11-2.el7rhgs','samba-0:3.0.33-3.40.el5_9','samba-0:4.2.10-5.ael7b_1','samba-0:3.0.33-3.37.el4'],'resource_url':'https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2016-2118.json'}]CLI:It's in WIP state.❯❯❯rh-sec-data
Usage:rh-sec-data[OPTIONS]COMMAND[ARGS]...RedHatSecurityDataAPI.

Options:--helpShowthismessageandexit
Package: rhsolpy
Rankine-Hugoniot relation solver for anisotropic plasmas.Install/uninstallUsageTheoretical descriptionInstall/uninstallinstallpipinstallrhsolpy==1.0.0a0uninstallpipuninstallrhsolpy==1.0.0a0Usageimportrhsolpy.rankine_hugoniotasrhobj=rh.AnisotropicMHD()obj.set_param(beta1=1e-2,eps1=1.0,eps2=0.6)obj.solve()obj.plot()Theoretical description$$\begin{align*}
\Lambda_a(\epsilon_2,\theta_1,M_{A2}^2)\cdot\epsilon_1^2M_{A1}^4
&+2\Lambda_b(\epsilon_1,\epsilon_2,\theta_1,\beta_1,M_{A2}^2)\cdot\epsilon_1M_{A1}^2\
&+\Lambda_c(\epsilon_1,\epsilon_2,\theta_1,\beta_1,M_{A2}^2)=0.
\end{align*}$$