Saravanan666/pypi-org huggingface dataset:
Package: rh-s-pytool
关于Rh-s-PyToolRh-s-PyTool是一系列python工具方法的合集，包含了一些有关行政区域名称查询与补全、坐标查询以及综合指标评价方法等方面的内容。主要功能目前，Rh-s-PyTool主要包含了两个大的模块：cp_lookup和index_calmeth，二者又分别包含了若干个小模块。前者的功能描述大致描述如下：将区域（省、市、区县）简称补充为全称根据区域名（市、区县）查询其上级行政区域的名称根据地区（省、市、区县）名称获取行政中心的经度和纬度计算两个地区（省、市、区县）行政中心间的球面距离后者则主要包含以下功能：将非正向指标转换为正向指标使数据指标无量纲化计算指标权重计算评估对象的综合评价分数分数下载可以从该项目的GitHub仓库中找到并下载最新的release本地安装，或者从PyPI获取该模块：pip3 install Rh-s-PyTool也可以使用pdm包管理系统（推荐）：pdm add Rh-s-PyTool
Package: rh-test-grnotebook
Gradio NotebooksGradio Notebookis a Gradio custom component that creates a notebook playground on Hugging Face Spaces with only8-lines of code!You can use this in your Hugging Face space by addinggradio-notebookto your Space'srequirements.txtfile, and then the following lines to yourapp.pyfile:importgradioasgrfromgradio_notebookimportGradioNotebook# AICONFIG_FILE_PATH also be empty or None if you don't have an AIConfig file!AICONFIG_FILE_PATH="./my_app.aiconfig.json"withgr.Blocks()asdemo:GradioNotebook(config_path=AICONFIG_FILE_PATH)demo.queue().launch()Please see ourdocumentation pagefor full details.For the remaining commands for local development, please follow the
instructions from theREADME-dev.mdfile!
Package: rhttp-python
RHTTP-pythonPython interface for RHTTP serverInstallationInstall the latest version ofrhttp-pythonwith running installation command:pipinstallrhttp-pythonUsageFirst you need to import required package:# RHTTP serverfromrhttp_pythonimportRHTTPServerFirst you need to create server by passing redis host and port:server=RHTTPServer("127.0.0.1",6379)Then you can define endpoints usingroutedecorator@server.route("/","GET")defhome(req,res):print(req)returnres.status(200).content_type("text/html").send("<h1>test</h1>")First parameter of decorator is "path" of endpoint and second is http methodAt the end you need run server:server.listen()LicenseThis project is licensed under the terms of the MIT License. See theLICENSEfile for details.
Package: rhubarb-graphql
Rhubarb - The Funky Sweet Python ORM built on Strawberry GraphQL That's Totally AwesomeRhubarb is an experimental ORM baked from scratch focused on automatic optimizations with Postgres data using GQL.Strawberry-Rhubarb Pie... Tasty!Rhubarb at a glanceAsyncio NativeBuild SQL functions with PythonBuilt on GraphQL for optimization layer on nested queriesMigrations - Automatically generate Schema changes as your data model updates.Intuitively Solve N+1 without even realizing itSimplify Aggregations / Joins / SubqueriesHeavily inspired by Django and built with the philosophy of take the best parts.Native Public / Private Schema dichotomyPass User and Extra info to use in queries through Strawberry Info's context.Doesn't use any other Python ORM for DB access, only Psycopg3Extra Rhubarb FeaturesRhubarb comes with some extra integrations to make using the ORM easy...HTTP - FastAPI / StarletteRedis - Rate Limiting / CachingAuth - Impersonate / Sessions / Users / WebAuthN / PasswordSecurity - CORS / CSRF / TrustedHostNames / Auth Rate LimitsAuditing - Record all Mutations / Queries / Subscriptions / Custom EventsPackage StatusThis is an experimental package for researching new ways in Python to interact with Postgres and build apps. Take care.Researched by GetDynastyThis package was created with the help of research resources provided byDynasty Living Trusts. GetDynasty is the only online platform that offers instant Living Trust Creation. GetDynasty is not actively involved in the maintenance or development of this project.
Package: rhumbix-csv-uploader
# DataLoaderThe Rhumbix DataLoader provides a basic utility to import data into your Rhumbix account.  It reads in csv files from the `csv_directory` provided in the invocation, and updates or inserts the data to the Rhumbix company identified.There are three types of Rhumbix data that can be imported, Projects, Cost Codes, and Worker information. Each data has different required fields and identifiers that roughly follow the csv templates provided by Rhumbix.This utility requires a Rhumbix account and access to the API. The Rhumbix company is authenticated through the public API the `company_key` and `api_key`. More documentation on the Public API can be found at http://docs.rhumbix.com/## Setup```pip install rhumbix_csv_processor```## Usage### Process CSV directoryThe script can be invoked as follows:`rhumbix_csv_uploader csv_directory company_key api_key`This will process files matching `rhumbix_employee*.csv` as employee files, `rhumbix_project*.csv` as project files, and `rhumbix_cost_code*.csv` as the cost code files.Optionally, you may provide a `config.json` in your current directory with any of the following parameters:```json{"company_key" : "YOUR_COMPANY_KEY","api_key" : "YOUR_API_KEY","employee_filename_pattern" : "YOUR_EMPLOYEE_FILENAME_REGEX","project_filename_pattern" : "YOUR_PROJECT_FILENAME_REGEX","cost_code_filename_pattern" : "YOUR_COSTCODE_FILENAME_REGEX"}```### Employee CSV#### File FormatThe employee processor expects a csv file with no headers and columns formatted in the following order:`company_supplied_id, first_name, last_name, classification-role, trade, is_active`### Project CSV#### File FormatThe project processor expects a csv file with no headers. the `Customer Number` is currently not used in Rhumbix. The columns are formatted in the following order:`job_number, Customer Number - unused, name, is_active`### Cost Code CSV#### File FormatThe cost code processor expects a csv file with no headers. The `phase` is concatenated with the `cost_code` inside the Rhumbix system.  The columns are formatted in the following order:`job_number, name, cost_code, phase, description`### Direct UsageIf desired, the individual loaders can be called directly with the following format.```pythonfrom rhumbix_csv_uploader import employee_processoremployee_processor.process_csv("rhumbix_csv_uploader/test/exampleCSVs/rhumbix_payroll.csv", COMPANY_KEY, API_KEY)``````pythonfrom rhumbix_csv_uploader import project_processorproject_processor.process_csv("rhumbix_csv_uploader/test/exampleCSVs/rhumbix_wo.csv", COMPANY_KEY, API_KEY)``````pythonfrom rhumbix_csv_uploader import cost_code_processorcost_code_processor.process_csv("rhumbix_csv_uploader/test/exampleCSVs/rhumbix_job_cost_2.csv", COMPANY_KEY, API_KEY)```
Package: rh-util
RH_Util is a simple Django application containing support libraries for HR projects.Quick startAdd “rh_util” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'rh_util',
]Include the rh_util URLconf in your project urls.py like this:path('rh_util/', include('rh_util.urls')),Runpython manage.py migrateto create the rh_util models.
Package: rhvhauto-common-utils
Common utils for RHVH automation projectPrerequisitePython == "^3.7"usepoetryfor dependency management and packagingFor devinstall dependenciesdnf install -y python3-devel libcurl-devel libxml-devel libxslt-develinstall poetrycurl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | pythonthen follow theDocumentfor next setupcd to $PROJECT root$> poetry install && poetry shellfor detail usage, please seeDocumentuse this package for other project$> poetry add rhvhauto-common-utilsor$> pip install rhvhauto-common-utilscommon_utils/rhva simple ovirt-sdk4 wrapperHE Dashboardadd hostmigrate vmUpgradeadd data-centerremove data-centeradd clusterremove clusteradd hostlist hostdeactivate hostremove hostcheck_update_availableupgrade_hostupdate_networkadd_plain_storage_domainremove_storage_domaincreate_vm_from_tpllist_vm(self, vm_name)start_vm(self, vm_name)operate_vm(self, vm_name, operation)remove_vm(self, vm_name)create_vm_image_disk(self, vm_name, sd_name, disk_name, disk_sizeattach_disk_to_vm(self, disk_name, vm_name, bootable=False)migrate_vm(self, vm_name)ExamplesBasic Usagefromrhvhauto_common_utils.rhv.baseimportBaseRhvAPIif__name__=='__main__':url="https://FQDN/ovirt-engine/api"api=BaseRhvAPI(url)ret=api.add_data_center("atv_dc_01",local=False,wait=True)print(ret)ret=api.del_data_center("atv_dc_01")print(ret)ret=api.add_cluster("atv_cl_01",data_center_name="atv_dc_01",cpu_type="Intel Skylake Server Family")print(ret)ret=api.del_cluster("atv_cl_03")print(ret)ret=api.add_host("atv_host_01",address="10.73.73.69",root_password="redhat",cluster_name="atv_cl_01",deploy_hosted_engine=False)print(ret)ret=api.deactivate_host("atv_host_01")print(ret)ret=api.activate_host('atv_host_01')print(ret)ret=api.add_iscsi_storage("name",data_center_name="dc_name",host_name="host_name",lun_id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",address="0.0.0.0",target="iqn.xxxxxxx:xxxx.xxxxxx.xxxxx",port=3260)print(ret)
Package: rhvoice-wrapper-bin
rhvoice-wrapper-binProvidesRHVoicelibraries forrhvoice-wrapper. Depends onrhvoice-wrapper-data, that contains languages and voices.If this package installed,rhvoice-wrapperwill automatically use it by default.Install on LinuxThis will download and build RHVoice and may take many timeapt-getinstall--no-install-recommendsbuild-essentialpython3-pippython3-setuptoolspython3-wheellibspeechd-dev
pip3installsconslxml
pip3installrhvoice-wrapper-binAlternatively, you may install auto build wheel packages from githubreleases(may not work).Install on WindowsBinarypython3-mpipinstallwheel
python3-mpipinstallrhvoice-wrapper-bin--only-binaryrhvoice-wrapper-binBuildInstall manually: git, Unicode NSIS and Visual Studio 2015 (2013+ must works)python3-mpipinstall--upgradepipsetuptoolswheel
python3-mpipinstallsconslxml
python3-mpipinstallrhvoice-wrapper-bin--no-binaryrhvoice-wrapper-binUsagerhvoice-wrapperwill automatically use path to library and data path fromrhvoice-wrapper-bin(data, of course, providedrhvoice-wrapper-data).Get info from libraryimportrhvoice_wrapper_bin# All the paths will None in error# Contains path to the RHVoice libraryprint(rhvoice_wrapper_bin.lib_path)# Contains path to the RHVoice dataprint(rhvoice_wrapper_bin.data_path)# Contains path to the RHVoice libraries.print(rhvoice_wrapper_bin.LIBS_PATH)# Contains path to the rhvoice-wrapper-binprint(rhvoice_wrapper_bin.PATH)
Package: rhvoice-wrapper-data
This package contain only data,rhvoice-wrapper-binwill install it itselfProvidesRHVoicevoices and languages forrhvoice-wrapper-bin. Also, you may set data_path inrhvoice-wrapperinstead.This package contains 24000 Hz voice sampling rate, excluded 16000 Hz for reduce size.Installpip3 install rhvoice-wrapper-data --only-binary rhvoice-wrapper-dataInstall from sourceInstall git (apt install gitorrun exe>next>next>done)python3-mpipinstall--upgradepipsetuptoolswheel
python3-mpipinstallrhvoice-wrapper-data--no-binaryrhvoice-wrapper-dataAPIimportrhvoice_wrapper_data# Contains path to the RHVoice dataprint(rhvoice_wrapper_data.data_path)# Contains path to the rhvoice-wrapper-dataprint(rhvoice_wrapper_data.PATH)LicenseSome voices use non-free licenses, exploreecho $(python3 -c 'import rhvoice_wrapper_data as d; print(d.PATH)')/licensesdirectory or\and RHVoice repo for more info.
Package: rhymediscovery
rhymediscoveryA python package for detecting rhyme schemes in poetry. With standard configuration, it achieves about 65% accuracy in therhymedatacorpus.Basic usagepip install rhymediscovery>>>fromrhymediscoveryimportfind_schemes>>>find_schemes.find_schemes([['herz','welt','geld','schmerz'],...])[(('herz','welt','geld','schmerz'),(1,2,1,2)),...]Command lineThe command line toolfind_schemesexpects a file formatted like the.pgoldfiles in therhymedatacorpus. A sample file can be foundhere in the repo.To demonstrate the tool, we clone therhymedatacorpus:git clone https://github.com/sravanareddy/rhymedata.gitThen we run:find_schemes rhymedata/english_gold/1415.pgold 1415.outThe1415.pgoldfile from the corpus has been manually annotated with the correct rhyme schemes. Thus we can evaluate our result file  using:evaluate_schemes1415.outrhymedata/english_gold/1415.pgoldCreditsThis package implements the following paper:Sravana Reddy and Kevin Knight. “Unsupervised discovery of rhyme schemes.” Proceedings of ACL 2011. (pdf)It is a fork of the reference implementation by@sravanareddywhich is available in its original formhere.
Package: rhymepy
rhymepyA simple CLI program that highlights rhymes in a given text, using either the Datamuse API or the pronouncing module.Usageusage: rhymepy [-h] [-l N | -a] [-p | -d {0,1,2}] file

required arguments:
  file                  a txt file

optional arguments:
  -h, --help            show this help message and exit
  -l N, --lines N       number of lines to match rhymes (default: 2)
  -a, --all-lines       match all lines
  -s, --stanzas         match each stanza  

backends:
  -p, --pronouncing     use pronouncing as the backend for fetching rhymes
  -d {0,1,2}, --datamuse {0,1,2}
                        use datamuse as the backend for fetching rhymes. 0: match perfect rhymes. 1: match approximate rhymes. 2: match bothExamplePoem byvoodooattack.InstallationUsing pip$ pip install rhymepyCloning the repository$ git clone https://github.com/dimeritium-foil/rhymepy
$ cd rhymepy
$ python setup.py installDependenciesrequestspronouncing(optional)colored
Package: rhyton
Rhyton- R to Python transpiler📜 What isRhytonRhytonis a type of ancient Greek drinking vessel that is in the shape of an animal's head or horn and has a hole in the bottom for pouring the liquid. It was often used in religious ceremonies or feasts.The name came after combination of language names:RandPythonThis library helps you to move R codebase to Python. Right now it supports conversion ofmath equations,expressions,conditions,function definitionsandcalls🧲 InstallationThe project is published onPyPi, so you can install it viapip$:pipinstallrhyton🚀 LaunchUsetranspileortranspile_fileto translate yourRcodefromrhytonimporttranspile,transpile_filetranspile('x <- 7')# returns transpiled string# ortranspile_file(in_path='<path to your R file>.r',out_path='<Path to generated Python file>.py')🛠 How it worksRhytonuses tree-sitter under the hood, to computeAST(Abstract Syntax Tree), after that it converts it to newASTthat is valid for Python. After that it generates a code, usingast moduleandastor📊 Feature plan✅ Add tree parsers✅ Semantic analysis forAST✅ Statements and expressions✅ Math operations✅ Conditions:if,else✅ Function definitions✅ Function calls❌ Cycles while and for❌ Arrays and operations❌ Function analogs❌ Import statements❌ Nested transpilation✅ Package demo publication✅ Project site
Package: ria
Radio Intelligence AppsStay tuned for the upcoming release ofRadio Intelligence AppsbyQoherent! 📡🚀Note: We are currently in the testing phase, and the current functionality is limited to making a cat meow. 🐱Getting StartedRIA's open-source core is avaiable atPyPI, and can be installed with pip:pipinstallriaExploring the Command Line Functionalitymeow--name"Whiskers"--age3--colour"gray"Exploring the Import Functionalityfromria.CatimportCatmy_cat=Cat(name="Whiskers",age=3,color="gray")my_cat.meow()
Package: riadiff
The Rich Internet Application (RIA) regression testing tool,riadiff, allows you to easily take a snapshot of the look, feel,
behaviour, and workflow of a web application’s user interface. Then,
as you make changes to your application, riadiff will help you ensure
that your application changes only in those ways that you intended.Warning2013/11/01: riadiff is currently being refactored – come back in a
couple of weeks.Project InfoProject Page:https://github.com/cadithealth/riadiffBug Tracking:https://github.com/cadithealth/riadiff/issues
Package: riak
Python Client for RiakBuild StatusDocumentationDocumentation for the Riak Python Client
Libraryis
availablehere.Documentation for Riak is availablehere.Repository CloningNOTE: please clone this repository using the--recursiveargument
togit cloneor follow the clone withgit submodule update--init. This repository uses two submodules.InstallationThe recommended versions of Python for use with this client are Python2.7.8(or greater,2.7.11as of2016-06-21),3.3.x,3.4.xand3.5.x. The latest version from each series should be
preferred. Older versions of the Python2.7.Xand3.Xseries
should be used with caution as they are not covered by integration
tests.Riak TS (Timeseries)You must use version2.7.11,3.4.4or3.5.1(or greater
within a version series). Otherwise you will be affected bythis Python
bug.From Sourcepythonsetup.pyinstallThere are additional dependencies on Python packagessetuptoolsandprotobuf.From PyPIOfficial packages are signed and published toPyPI.To install fromPyPIdirectly
you can usepip.pipinstallriakTestingUnit TestsUnit tests will be executed viatoxif it is in yourPATH,
otherwise by thepython2and (if available),python3executables:makeunit-testIntegration TestsYou have two options to run Riak locally - either build from source, or
use a pre-installed Riak package.SourceTo setup the default test configuration, build a Riak node from a clone
ofgithub.com/basho/riak:# check out latest release taggitcheckoutriak-2.1.4makelocked-depsmakerelSource build
documentation.When building from source, the protocol buffers port will be8087and HTTP will be8098.PackageInstall using your platform’s package manager
(docs)When installing from a package, the protocol buffers port will be8087and HTTP will be8098.Running Integration TestsEnsure you’ve initialized this repo’s submodules:gitsubmoduleupdate--initRun the following:./tools/setup-riakmakeintegration-testContributorsAndrew ThompsonAndy GrossArmon DadgarBrett HazenBrett HoernerBrian RoachBryan FinkDaniel LindsleyDaniel NériDaniel ReverriDan RootDavid BasdenDavid DelassusDavid KoblasDmitry RozhkovEric FlorenzanoEric MoritzFilip de WaardGilles DevauxGreg NelsonGregory BurdGreg SteinIan PloskerJayson BairdJeffrey MassungJon MeredithJosip LisecJustin SheehyKevin SmithLuke BakkenMark ErdmannMark PhillipsMathias MeyerMatt HeitzenroderMatt LohierMikhail SobolevReid DraperRussell BrownRusty KlophausRusty KlophausScott Lystig FritchieSean CribbsShuhao WuSilas SewellSocrates LeeSoren HansenSreejith KesavanTimothée Peignier`tobixx<https://github.com/tobixx>`__Tin TvrtkovićVitaly ShestovskiyWilliam KralYasser Souri
Package: riakcached
A Memcached like interface to the Riak HTTP Client.Read The
DocsInstallingFrom PyPIpipinstallriakcachedFrom Gitgitclonegit://github.com/brettlangdon/riakcached.gitcd./riakcachedpipinstall-rrequirements.txtpythonsetup.pyinstallUsageBasic Usagefromriakcached.clientsimportRiakClientclient=RiakClient("my_bucket")client.set("hello","world")printclient.get("hello")# 'hello'client.delete("hello")printclient.get("hello")# Nonevalues={"hello":"world","foo":"bar",}client.set_many(values)keys=["hello","foo","test"]printclient.get_many(keys)# {'foo': 'bar', 'hello': 'world'}client.close()Connection Pool Settingsfromriakcached.clientsimportRiakClientfromriakcached.poolsimportUrllib3Poolpool=Urllib3Pool(base_url="http://my-host.com:8098/",timeout=1)client=RiakClient("my_bucket",pool=pool)client.get("foo")Custom Connection Poolfromriakcached.clientsimportRiakClientfromriakcache.poolsimportPoolclassCustomPool(Pool):__slots__=["connection"]defconnect(self):self.connection=make_a_connection()defclose(self):ifself.connection:close_connection(self.connection)defrequest(self,method,url,body=None,headers=None):results=make_request(self.connection,method,url,body,headers,timeout=self.timeout)returnresults.status,results.data,results.headerscustom_pool=CustomPool(base_url="http://my-host.com:8098",timeout=1)client=RiakClient("my_bucket",pool=pool)Threaded ClientThe exists ariakcached.clients.ThreadedRiakClientwhich inherits
fromriakcached.clients.RiakClientand which uses threading to try
to parallelize calls toget_many,set_manyanddelete_many.DocumentationThe documentation can be found in the/docsdirectory in this
repository and should be fairly complete for the codebase.Building Documentationgitclonegit://github.com/brettlangdon/riakcached.gitcdriakcachedpipinstall-rdocs-requirements.txtcd./docsmakehtml
Package: rialtic-data-dev-py
Rialtic-Data DEV SDK (Python)This repo contains an implementation of therialtic-datainterface as first implemented in
theopen-insight-marketplace/rialtic-data-pythonrepository.As a development implementation, the content of this repository differs from the one mentioned above in two main ways:The code in this repository is not capable of communicating with the production environmentThis repository will contain implementations that allow for easy testing in development, with features such as
loading data from a local file or databaseAny other differences (such as the testing framework used) are in the effort of bringing this repository more in line
with our other Python repos under therialtic-communityorg, and with our emerging practices and standards in this
org.Most crucially, it is important that the interface maintains consistency with whichever implementation is currently used
by the platform team in production.UsageIn order to connect to the development data servers, an API key is needed. The tests currently expect environment
variable calledAPIKEYcontaining the key. Seetest_rialtic_data.pyfor an example of how to load and use this key.
Package: rialtic-engine-lib-py
Rialtic Engine Development Library (Python)This repository contains common modules for developing Rialtic Insight Engines with Python.API Documentation (Sphinx)The code in this repository is documented usingsphinxandautodoc. This
documentation can be generated locally.autodocwill generate basic documentation automatically from code, and
docstrings in the code can be used to add additional information to the generated documentation.Documentation PracticesDocstring FormatWe usesphinx.ext.napoleon, which allows us to use a simpler, more concise format for docstrings
(popularized by NumPy and Google projects). See
theNumPy documentationfor an overview of how to use this style of docstrings.NOTE:One main way that our docs differ from the standard described in the NumPy docs is with regard to
theReturnssection. We do not need to specify return type in our docs—we have thesphinx_autodoc_typehintsextension, which automatically reads return type from type annotations in code.Docstring GuidelinesAny docstrings written will eventually need to be edited or rewritten. With this in mind, it is valuable for our
docstrings to be concise and minimal, providing only necessary information, to reduce the work required to maintain
these docs.For simple methods and functions, the generated function signature docs may even be sufficient. In these cases a
docstring can consist of only a single line summary.If you find yourself writing a very long complex docstring, consider whether the object being documented could use a
refactor, or needs to be simplified in some way.Generating HTML Documentation LocallyThe generated documentation will be hosted somewhere accessible on the web, but can also be generated locally in several
formats including HTML and PDF. Follow the instructions below to generate HTML documentation locally:$gitclonegit@github.com:rialtic-community/rialtic-engine-lib-py.git
$cdrialtic-engine-lib-py/docs
$makehtmlOpen the following file in a browserrialtic-engine-lib-py/docs/_build/html/index.htmlEngine Data SDKPublishing to Nexus repositoryThis is likely to change quite a bit before it stabilizes, so we are
keeping only one set of instructions as
a source of truth.For a step by step, please, refer to the instructions in theREADME.mdin
branchrelease-makefilein the schema repository.schema repositoryIn addition to the environment variables that have to be defined (as explained in the link above),
for this repository, we also have to define:exportAPIKEY=...exportRIALTIC_REF_DB=demodbexportRIALTIC_DATA_ENV=local