Saravanan666/pypi-org huggingface dataset:
Package: rwpt
A Romanian WordPiece Tokenizer for use with HuggingFace modelsThis is a 'proper' Romanian WordPiece tokenizer, to be used with the HuggingFacetokenizerslibrary.It will do the following:replace all improper Romanian diacritics 'ş' and 'ţ' with their correct versions 'ș' and 'ț'.properly split the Romanian clitics glued to nouns, prepositions, verbs, etc.automatically enforce the current Romanian Academy rules of writing using 'â' and 'sunt/suntem/sunteți' forms of the 'a fi' verb.The tokenizer will be trained on a cleaned version of theCoRoLa corpus.
The corpus has 35.999.401 sentences and 763.531.321 words (split withwc -wLinux utility).PyPI packageThe tokenizer is now available on PyPI, and can be installed with the commandpip install rwpt.Usage examplefromrwptimportRoBertWordPieceTokenizer,get_bundled_vocab_file_pathcorola_vocab_file=get_bundled_vocab_file_path()tokenizer=RoBertWordPieceTokenizer.from_file(vocab=corola_vocab_file)input_text="\t\tSîntem OK şi ar trebui să-mi meargă, în principiu.\n\n"result_encoded=tokenizer.encode(sequence=input_text)# We have Romanian tokens such as the clitic pronoun '-mi' or# the MWE 'în principiu'. Also, the incorrect form of the verb 'Sîntem'# is normalized as 'Suntem'.assertresult_encoded.tokens[0]=='Suntem'assertresult_encoded.tokens[6]=='-mi'assertresult_encoded.tokens[9]=='în principiu'result_decoded=tokenizer.decode(ids=result_encoded.ids)assertresult_decoded=='Suntem OK și ar trebui să -mi meargă, în principiu.'Full Romanian decoding isn't currently working (please notice the space between 'să' and '-mi') becausedecoders.Decoder.custom()is not implmemented yet in thetokenizerslibrary.Transformers usage exampleIn order to use the tokenizer with the__call__method (as preferred in the Transformers documentation), do the following:fromrwptimportRoBertPreTrainedTokenizer,get_bundled_vocab_file_pathcorola_vocab_file=get_bundled_vocab_file_path()tokenizer=RoBertPreTrainedTokenizer.from_pretrained(corola_vocab_file,model_max_length=256)input_text="\t\tSîntem OK şi ar trebui să-mi meargă, în principiu.\n\n"result_encoded=tokenizer(text=input_text,padding='max_length')The example above can be simplified as:fromrwptimportload_ro_pretrained_tokenizertokenizer=load_ro_pretrained_tokenizer(max_sequence_len=256)input_text="\t\tSîntem OK şi ar trebui să-mi meargă, în principiu.\n\n"result_encoded=tokenizer(text=input_text,padding='max_length')
Package: rwrlock
This is rwrlock a yet another python re-entrant rw lockGoalsTo make a rentrant read write lock as opposed to non re-entrantWithin one thread multiple readlocks can be obtained in reality only first in stack takes lock restreference countWithin onethreadmultiple write locks can be obtained again first gets lock restreference countWithin one thread if you want a read lock and have a write lock it acts as if read lock is obtained but keeps the write lockWihin one thread if you have a read lock and want a write lock read lock is dropped a write lock acquired. But when write is release the read lock is reobtained. This can lead to read consistency issues if not used carefuly.This does not implement and priority between readers and writersUsage:
            from rwrlock import RWRLock
            
            my_obj_rwlock = RWRLock()
            
            # When reading from my_obj:
            with my_obj_rwlock.r_locked():
                do_read_only_things_with(my_obj)
                    # promote to a write lock
                    with my_obj_rwlock.w_locked():
                        mutate(my_obj)
                
            # When writing to my_obj:
            with my_obj_rwlock.w_locked():
                mutate(my_obj)
                    # ok do to do read things as has a write lock
                    with my_obj_rwlock.r_locked():
                        do_read_only_things_with(my_obj)
Package: rws-ddlpy
ddlpy(D)ata (D)istributie (L)aag is a service from Rijkswaterstaat for distributing water quantity data. This package provides an API for python.Service from Rijkswaterstaat for distributing water quantity data.Free software: GNU General Public License v3Documentation:https://ddlpy.readthedocs.io.See alsohttps://github.com/wstolte/rwsapifor the R API.InstallMake sure you have installed:pandasnumpyclickpython-dateutil>=2.8To install this ddlpy, go to the directory where this code is located and type in a console:pip install ddlpyIn the folder examples you will find the following files:minimal example.py -> minimal code to retrieve data.1_get_data_from_water_info_parallel.py -> Code to retrieve a bulk of observations per parameter and per station.This code is parallelized; therefore, you can specify the number of processors you want to use.The output of this code is the data in csv format.2_get_netcdf.py -> Code to transform the csv files run in the previous script into netcdf files.More detailed explanation on the usage of these codes are inside thenotebooksdirectory.Run ddlpy from consoleYou can also run ddlpy from the console. The options you can use are the following:Write locations metadata to output file, given input station codes and parameter codes:ddlpy locationsTo get access to the help menu, type in a terminal: ddlpy locations --help.Obtain measurements from json file containing locations and codes:ddlpy measurementsTo get access to the help menu, type in a terminal: ddlpy measurements --help.IMPORTANT: You can not runddlpy measurementsbefore runningddlpy locations, unless you already have a .json file listing the stations and the parameters you need data from.
Package: rwsdigital-utils
rwsdigital-utilsRWSdigital UtilsUtils to enhance software development in RWSdigital!Table of ContentsAbout The ProjectBuilt WithLicenseContactAbout The ProjectBuilt WithPythonGetting StartedInsert text here.InstallationInstall via pippipinstallrwsdigital-utilsEnjoyLicenseDistributed under the MIT License. SeeLICENSEfor more information.ContactSalvatore Castaldo -salvatore.cast17@gmail.comProject Link:https://github.com/sCast17/rwsdigital-utils
Package: rws-knmi-lib
Library to download KNMI weather data aggregated on a daily level or on an hourly level.How to useIn order to download data on a daily level, use the following code below.fromrws_knmi_lib.knmi_downloaderimportimport_daily_data# Returns dataframe containing information on all KNMI stations.df_daily=import_daily_data(start="20220501",end="20220505")# Returns dataframe containing only information from the nearest KNMI station.df_daily_nearest=import_daily_data(start="20220501",end="20220505",coord=(52.460770,4.625110))An example for obtaining hourly aggregated daily looks like this:fromrws_knmi_lib.knmi_downloaderimportimport_hourly_data# Returns dataframe containing information on all KNMI stations.df_hourly=import_hourly_data(start="20220501",end="20220505")# Returns dataframe containing only information from the nearest KNMI station.df_hourly_nearest=import_hourly_data(start="20220501",end="20220505",coord=(52.460770,4.625110))InstallationTo install rws-knmi-lib, do:git clone https://gitlab.com/rwsdatalab/public/codebase/tools/rws-knmi-lib
cd rws-knmi-lib
pip install .Run tests (including coverage) with:pip install .[dev]
pytestDocumentationFind the full documentation athttps://rwsdatalab.gitlab.io/public/codebase/tools/rws-knmi-libLicenseCopyright 2022-2024 RijkswaterstaatLicensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Package: rwslib
rwslibThe Goal of this library is to provide a (programmer) friendly client library to Rave Web Services (RWS).Philosophyrwslib provides a convenient interface to RWS without hiding the implementation details. For instance,
using rwslib you should have a simple way to request a list of studies from RWS but still be able to
get to the HTTP headers, content body etc returned by RWS.DocumentationDocumented with Sphinx. Seehttp://rwslib.readthedocs.org/en/latest/
Package: rws-nwb-lib
Library to download the Dutch Nationaal Wegenbestand (NWB) data from the WFS.How to useFor a nice demonstration of this library, please refer to the notebooks/NWB API Demo.ipynb.InstallationTo install rws-nwb-lib, do:git clone https://gitlab.com/rwsdatalab/public/codebase/tools/rws-nwb-lib.git
cd rws-nwb-lib
pip install .Run tests (including coverage) with:pip install -r requirements-dev.txt
python setup.py testDocumentationPlease find the full documentation here:https://rwsdatalab.gitlab.io/public/codebase/image/rws-nwb-lib/LicenseCopyright 2022 RijkswaterstaatLicensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Package: rwsuis
Python functions for ABB IRB-140Class and functions for communicating with RobotWare through Robot Web Services (Rest API)function examples;set_rapid_variable:POST request to update variables in RAPIDRequires name of variable and valuereturns http responseget_rapid_variable:GET request to get value from variable in RAPIDRequires name of variablereturns the value of the specified variableexample of usefrom rwsuis import RWS

# A session gets created:

robot = RWS.RWS("base_url")

# Excecute wanted commands:

robot.set_rapid_variable("variablename", 1)For further information be sure to check out:https://abb-robot-machine-vision.readthedocs.io/
Package: rws-waterinfo
How to useProvide user documentation here.InstallationTo install rws_waterinfo, do:pip install rws-waterinfoRun tests (including coverage) with:pip install -r requirements-dev.txt
python setup.py testExampleGet observation data from Waterinfo
Here we retrieve observation data from Waterinfo. It takes in
three arguments, two of which are optional, and returns a Pandas dataframe
or None. The first argument, params, is a list of lists that contains the
necessary parameters to retrieve observations. The second argument,
filepath, is an optional string that specifies the directory and file name
where the data will be saved. If filepath is not specified, the data will
not be saved. The third argument, return_df, is an optional boolean that
specifies whether the function should return the observations as a Pandas
dataframe or not. If return_df is set to False, the function will not
return anything.importpandasaspdimportrws_waterinfoasrw# Initialize rws_waterinfo library#params=[['OW','m3/s',156,'Q','OLST',711556.219876449,5803627.64455833,'2022-01-01','2023-01-01']]filepath='observations.csv'#data=rw.get_data(params=params,filepath=filepath,return_df=True)#print(data.head())## Locatie_MessageID Coordinatenstelsel  ...  WaardeBewerkingsmethode.CodeWaardeBewerkingsmethode.Omschrijving# 0              18878              25831  ... NaN                                   NaN# 1              18878              25831  ... NaN                                   NaN# 2              18878              25831  ... NaN                                   NaN# 3              18878              25831  ... NaN                                   NaN# 4              18878              25831  ... NaN                                   NaN# [5 rows x 54 columns]This function sends a request to Waterinfo for parameter information
and parses the response into a Pandas DataFrame. The DataFrame contains
the locations and parameters combined into a single table.importpandasaspd# Initialize rws_waterinfo libraryimportrws_waterinfoasrw#catalog=rw.get_catalog()#catalog.head()## AquoMetaData_MessageID        Locatie_MessageID       Coordinatenstelsel      X       Y# 0     12746   22317   25831   717567.392073   5.782901e+06# 1     17619   22366   25831   706152.313357   5.725423e+06# 2     7941    17613   25831   580241.163781   5.723650e+06# 3     14352   21173   25831   705635.738484   5.835367e+06# 4     18676   21173   25831   705635.738484   5.835367e+06# 5 rows × 44 columns#LicenseCopyright (c) 2023, Rijkswaterstaat
Package: rwswrap
A Python wrapper for ABB's Robot Web ServicesA small wrapper I needed as part of my master's thesisAbout The ProjectClass for communicating with RobotWare through Robot Web Services (ABB's Rest API)NB!This package will most likely not be regularly maintained, and should be used as is, or as a RWS usage guide.ContactProject Link:https://github.com/andreasstrom/RWS-wrapperLicenseDistributed under the MIT License.AcknowledgmentsThis class was built on the foundation of the work done inhttps://github.com/prinsWindy/ABB-Robot-Machine-Vision, and have been modified and expanded on as a tool in my master's thesis work.
"For the RW 7.0 release, RWS has introduced several breaking changes to include the following requirements" -> Updates needed(back to top)
Package: rwth-CD-colors
RWTH-colorsThis package provides hexcodes for the official RWTH Aachen colorspace as documented by the RWTH corporate design (CD)
guidelines.InstallationInstalling from pypi provides therwth_colorsmodule:pipinstallrwth-CD-colorsAlternatively, install from source:pipinstall<path_to_folder/repository>Usagefromrwth_colorsimportcolorsfrommatplotlibimportpyplotaspltplt.bar(1,1,color=colors[("blue",50)])# Opacity 50%. Available values: 100%, 75%, 50%, 25%, 10%plt.bar(1,1,color=colors["blue"])# Alias for the default blue color (opacity 100%)Available colors (requires matplotlib)fromrwth_colorsimportplot_colorsplot_colors()![Available colors.png](Available colors.png)
Package: rwth-nb
RWTH NotebooksThis project consists of Jupyter Notebook definitions used by RWTH Aachen University.Have a look at thedocumentation.InstallationCreate conda environmentconda env create -f environment.ymlActivate environmentconda activate rwthlabInstall Jupyterlab extensions withjupyter labextension install @jupyter-widgets/jupyterlab-manager jupyter-matplotlib jupyterlab-rwthInstallrwth_nb:withpip install git+https://git.rwth-aachen.de/jupyter/rwth-nb.gitorwithpython ./setup.sh develop(for developers)
Package: rx4rdf
Rx4RDF shields developers from the complexity of RDF by enabling you to
use familar XML technologies like XPath, XSLT and XUpdate to query, transform
and manipulate RDF. Also included are two applications that utilize Rx4RDF:
Rhizome, a wiki-like content management and delivery system with wiki-like
markup languages for authoring XML and RDF, and RDFScribbler, for viewing and editing RDF models.
Package: rxbus
RxBus介绍基于rxpy 实现的RxBus软件架构软件架构说明安装教程xxxxxxxxxxxx使用说明xxxxxxxxxxxx参与贡献Fork 本仓库新建 Feat_xxx 分支提交代码新建 Pull Request码云特技使用 Readme_XXX.md 来支持不同的语言，例如 Readme_en.md, Readme_zh.md码云官方博客blog.gitee.com你可以https://gitee.com/explore这个地址来了解码云上的优秀开源项目GVP全称是码云最有价值开源项目，是码云综合评定出的优秀开源项目码云官方提供的使用手册https://gitee.com/help码云封面人物是一档用来展示码云会员风采的栏目https://gitee.com/gitee-stars/
Package: rx-dataclasses
rx-dataclassestype verification and convertfromtypingimport*fromrx.operatorsimportmapasrxmapfromrxdataimportdataclass,field,operators@rxmapdeftry_convert(n):returnint(n)ifisinstance(n,str)andn.isalpha()elsen@dataclassclassData:# only int.number:int=field(default=1,invoke=operators.typeguard())# only int or string convertable to int. Always results in int.convert_or_die:Union[int]=field(default=1,invoke=[try_convert,operators.typeguard()])# If is string and convertable to int - perform conversion. `typing.Any` type defined explicitly during `invoke` (just for example).convert_or_accept:Union[int,str]=field(default=1,invoke=[try_convert,operators.typeguard(Any)])>data=Data(None)TypeError:typeofnumbermustbeint;gotNoneTypeinstead>data=Data(convert_or_die=None)TypeError:typeofconvert_or_diemustbeint;gotNoneTypeinstead>Data(convert_or_accept=None)Data(number=1,convert_or_die=1,convert_or_accept=None)data=Data()data.number='3'>TypeError:typeofnumbermustbeint;gotstrinsteaddata.number=2>Data(number=2,convert_or_die=1,convert_or_accept=1)data.convert_or_die=2>Data(number=2,convert_or_die=2,convert_or_accept=1)data.convert_or_accept='3'>Data(number=2,convert_or_die=2,convert_or_accept=3)data.convert_or_accept='3s'>Data(number=2,convert_or_die=2,convert_or_accept='3s')data.convert_or_accept=type>Data(number=2,convert_or_die=2,convert_or_accept=<class'type'>)descriptionreactive python3 dataclasses - withattrs-like behaviourimplicit and explicit typing verification during bothinitand/orsetattrcustomize preprocessing (convert) during bothinitand/orsetattrreactive attributesinstall> pip3 install rx-dataclasses
Package: rx-data-validate
[![Build Status](https://travis-ci.org/Queens-Hacks/data-schema-validate.png?branch=master)](https://travis-ci.org/Queens-Hacks/data-schema-validate)Note: Work in progress, not live yet. The current live site code is athttp://github.com/ChrisCooper/QcumberDThis should install a script that will work somethin like`bash $qcumber-validatorschema/validate-config.yml`It’s made with [qcumber-data](https://github.com/Queens-Hacks/qcumber-data) in mind.InstallInstall requirespyyamlandpyrx.
Package: rxdjango
RxDjangoRxDjango is a layer over Django Channels aimed to make it as simple as possible to broadcast
changes in Django models to browsers through websockets, with minimal latency.It's evolving in production for more than 2 years now and it's revised API has just been released
in Python Nordeste 2023. There's no stable release yet.QuickstartStart by defining a StateChannel and define an "anchor", which is a serializer that will build
the state that will be sent to user.# chat/channels.pyfromrxdjango.channelsimportStateChannelfromchat.serializersimportChatRoomSerializerclassChatRoomChannel(StateChannel):classMeta:anchor=ChatRoomSerializer()defhas_permission(self,user,chat_room):# check permissionreturnTrueThen define paths for the channels in websocket_urlpatterns.Django Channels documentationsuggests you put this in app/routing.py.# chat/routing.pyfromchat.channelsimportChatRoomChannelwebsocket_urlpatterns=[path('ws/chat/<str:room_name>/',ChatRoomChannel.as_asgi()),]This is all the code it takes in the app! From that, RxDjango will generate all the frontend
code required to keep state in sync between backend and frontend. For that, we need to configure
settings.py with some information about the frontend.# settings.pyRX_FRONTEND_DIR=os.path.join(BASE_DIR,'../frontend/src/app/modules')RX_WEBSOCKET_URL="import.meta.env.VITE_SOCKET_URL"In the above example, we want our code to be generated at src/app/modules, and we take the websocket url from Vite.
Also, there are some backend configuration required. Right now, we only support Redis and Mongo for caching.# settings.pyMONGO_URL="configure me"REDIS_URL="configure me"# for now framework expects this to exist, and to be set to True during testsTESTING=FalseAnd, of course, addrxdjangoto your INSTALLED_APPS# settings.pyINSTALLED_APPS=[# ...'rxdjango',]Build all the frontend files:pythonmanage.pymakefrontendCheck the files generated inside your modules app. Now, use the state
from the backend with:import{ChatRoomChannel}from'app/modules/chat.channels';import{useChannelState}from'django-react';channel=newChatRoomChannel(roomName,token);chatState=useChannelState(channel);That's all it takes! Note that token is a rest_framework.authtoken token,
the only authentication method supported for now.
Package: rxhands-unam-colab
Finger landmark labeling for left handed x-ray imagesThis project uses two algorithms (symbolic and neural) to extract finger landmarks from left hand x-rays. It's intended to be used as an auxiliary tool for forensics research atUNAM.Getting StartedThe latest stable version can be downloaded from thePyPI.PrerequisitesThe code is written in Python 3, and it relies on OpenCV, SciPy and scikit-image:OpenCVSciPyscikit-imageTensorFlowDependencies are automatically managed bypip.InstallingTo download, you can simply create avirtualenvand install the project withpip:pip install rxhands-unam-colabCommand-line executionExtraction can be performed with either the symbolic algorithm or the neural one.rxhands [-h] -al {symbolic,neural} [-ch] [-pre] [-of OUTPUT_FOLDER] INPUT_FOLDERwhere:-hhelpINPUT_FOLDERthe path to the folder where the input images are stored.OUTPUT_FOLDERthe path to the folder where the results will be stored.-alcan receive eithersymbolicorneural.-premeans that gray level normalization will be applied to the input images.-chif present, the script will try to crop the image to contain only the hand.Examplesrxhands -al neural -of results/ data/This command will label landmarks through the neural algorithm.rxhands -al neural -ch -of results/ data/This command will label landmarks through the neural algorithm. The images in folderdata/will be cropped on input.rxhands -al neural -ch -pre -of results/ data/This command will label landmarks through the neural algorithm. The images in folderdata/will be cropped and preprocessed on input.rxhands -al symbolic -of results/ data/This command will label landmarks through the symbolic algorithm.Note that the symbolic algorithm only approximates landmarks in four fingers (not including the metacarpophalangeal joints).AuthorsArturo Curiel-Initial work-websiteSee also the list ofcontributorswho participated in this project.LicenseThis project is licensed under the GNU/GPL3 License - see theLICENSE.mdfile for detailsAcknowledgmentsThe neural model was implemented from:@inproceedings{Payer2016,
  title     = {Regressing Heatmaps for Multiple Landmark Localization Using {CNNs}},
  author    = {Payer, Christian and {\v{S}}tern, Darko and Bischof, Horst and Urschler, Martin},
  booktitle = {Medical Image Computing and Computer-Assisted Intervention - {MICCAI} 2016},
  doi       = {10.1007/978-3-319-46723-8_27},
  pages     = {230--238},
  year      = {2016},
}Using theDigital Hand Atlasas training data.
Package: rxio
Reactive I/OCurrently in the early development phase; do not use in production.Roadmap:RxVar[T]: variableRxResult[*Ps, T]: function result, bound to reactive argsRx{Function,Method}: returnsRxResult, can watch when called(mk)docsgithub actionsRxAttr[T]: descriptor attribute / fieldRxType: custom rx type base: reactive attrs, methods, properties and lifecycleRx{Bool,Int,Float,Str,...}: reactie builtin typesRx{Tuple,List,Set,Dict,...}: reactive builtin collectionsreactive(...): centralRx*construction for (builtin) types, functions, etc.Rx{File,Signal,Process,Socket,...}: reactive IO (state)dataclassesintegration(optional)python-attrsintegration(optional)pydanticintegration