Saravanan666/pypi-org huggingface dataset:
Package: reqwise
If you need or prefer to use Linux RPMs only, ReqWise will read your Python project’s
requirements and seek for them in multiple different sources, while ensuring they
are matching the version specified in the requirement files.<div align=”center”><img src=”./doc/reqwise.png” alt=”Reqwise output” width=”400”></div><hr />InstallTo install reqwise on your system, run the following command:sudo pip install .Supported SourcesYUM/DNF (system defined repositories)COPR    (https://copr.fedorainfracloud.org)Koji    (http://koji.fedoraproject.org)ExamplesSearch for the default requirements files in the current directory:reqwiseSearch the requirements in COPR:reqwise –copr el7-rhos9-test-depsBy default, reqwise will look for RPM short version (x.y.z), you can search for the long version (x.y.z-w):reqwise –long### Configuration (Optional)Can be set in your current working directory (reqwise.conf) or
in ‘/etc/reqwise/reqwise.conf’The configuration file consists of sources. Source is where reqwise
will look for your requirementAn example for configration file:[copr]
el7-rhos9-test-deps
el7-rhos10-test-deps[koji]
disabled=True[yum]
repos=my_repo,another_repo
Package: rer
━━━━━━━━README━━━━━━━━Table of Contents─────────────────1 rer2 Install3 All in one simple function1 rer═════Regular expression in regular expression.2 Install═════════`pip install rer'3 All in one simple function════════════════════════════┌────│ import re││ __version__ = '1.1.2'│ __author__ = 'Meme Kagurazaka'│ __license__ = 'Public Domain'│││ def rer(re_string, re_group=0,│         item_continuation=lambda _: _, list_continuation=lambda _: _,│         re_continuation=None):│     """rer atom││     This function use regular expression string `re_string' and the group│     `re_group' (default 0) to match the `data'. This will evaluates a list,│     a function `re_continuation' will apply to every match of the list,│     a function `list_continuation' will apply to the list. `list_continuation'│     does nothing by default.││     `re_continuation' applies `item_continuation' to `re_group' by default.││     Return value is a function which can be apply to the `data'.│     Return value can also be used as a `item_continuation' or│     `list_continuation' of another rer recursively.│     """││     if re_continuation is None:│         re_continuation = lambda _: item_continuation(_.group(re_group))││     return lambda x: list_continuation(│         [re_continuation(_) for _ in re.compile(re_string).finditer(x)])└────
Package: rer.al.mcorevideoportlet
IntroductionThis product it’s used to show video from mediacore in a portlet
You can select:urlvideo securityvideo dimensionand then see the resultCreditsDeveloped with the support ofRegione Emilia Romagna;  Regione Emilia Romagna supports thePloneGov initiative.AuthorsThis product was developed by RedTurtle Technology team.Changelog2.1.1 (2016-11-15)Plone 4.3 compatibility
[cekk]2.1.0 (2015-06-25)Removed unwanted dependenciesDocumentationProvided sane defaults if mediacore_properties are missing
[ale-rt, daniele-andreotti]2.0.0 (2012-11-23)package adapted in order to migrate to Plone4some simple modification in setup.py for dependencieschange urllib timeout handling1.0.1 (2012-07-12)aggiunte classi al template [nekorin]1.0 (2012-07-12)Initial release
Package: reranker
ReRankerReRanker for hybrid retrieval.InstallationpipinstallrerankerUsagefromdatetimeimportdatetime,timedeltafromrerankerimportReRanker,CrossEncoderClient,TimeDecayRankerreranker=ReRanker(steps=[CrossEncoderClient(model_name="cross-encoder/ms-marco-MiniLM-L-6-v2",addr="http://localhost:8000",),TimeDecayRanker(decay_rate=0.5),])reranker.rank(query="What is the capital of France?",docs=["Paris is the capital of France.","The Eiffel Tower is in Paris.","The Louvre is in Paris.",],)reranker.rank(query=Record(text="What is the capital of France?",timestamp=datetime.now(),),docs=[Record(text="Paris is the capital of France.",timestamp=datetime.now()-timedelta(days=1),),Record(text="The Eiffel Tower is in Paris.",timestamp=datetime.now()-timedelta(days=2),),Record(text="The Louvre is in Paris.",timestamp=datetime.now()-timedelta(days=3),),])Rankingrank(query: str, docs: list[str])cross-encoder modelcohere modeldiversityrank(docs: list[Record])time decay with expressionstitle n-gram with bm25content n-gram with bm25document boost with expressionstitle embedding with content embeddingtitle keywords with content keywordscombination of the above features
Package: reranking
reranking: fairness/personalization for recommendation and searchrerankingprovides algorithms to re-rank the ranked items to any specified item attribute distribution.This package can be used as a post-processing modular of recommendation systems or search engines.Inspired by paperFairness-Aware Ranking in Search & Recommendation Systems with Application to LinkedIn Talent Search.Concept of usageFairness: impose the same distribution to all userTaking "recommend candidates to recruiters" as the example (this is the case of LinkedIn Recruiter service stressed in the paper), the search engine rankings are re-ranked by the distribution of the protected attributes like gender and demographic parity in consideration of the fair display of the candidates to recruiters.Personalization: impose the personalized distributions to each userFor example, when we recommend products to users, the product preference distribution for each user (which can be obtained by the purchase log or view log) can be used to re-rank the item rankings by recommendation systems to get a more personalized recommendation.Installation$pipinstallrerankingExamplesRe-rankimportrerankingitem_attribute=["a1","a1","a1","a2","a1","a1","a1","a2","a2","a1"]desired_distribution={"a1":0.5,"a2":0.5}rerank_indices=reranking.rerank(item_attribute,# attributes of the ranked itemsdesired_distribution,# desired item distributionmax_na=None,# controls the max number of attribute categories appliedk_max=None,# length of output, if None, k_max is the length of `item_attribute`algorithm="det_greedy",# "det_greedy", "det_cons", "det_relaxed", "det_const_sort"verbose=False,# if True, the output is with detailed information)print(rerank_indices)Thererank_indicesis[0, 3, 1, 7, 2, 8, 4, 5, 6, 9]which is the list of item indices after re-ranking by the desired distribution. The top items of the re-ranked list will have the same distribution as the desired distribution if there are enough desired items.
(item_attributehas the same order with the item list so it contains rank/score information.)Evaluate# Evaluate the before&after of the re-ranking result aboveitem_attribute_reranked=[item_attribute[i]foriinrerank_indices]before=reranking.ndkl(item_attribute,desired_distribution)after=reranking.ndkl(item_attribute_reranked,desired_distribution)print(f"{before:.3f},{after:.3f}")Thebeforeandafterare0.412and0.172respectively which are the normalized discounted cumulative KL-divergence (NDKL) of the ranked item attribute distribution and the desired distribution. (Lower is better.)More examples can be foundhere.
Package: rerate
RerateFlexible rate limiter in Python, with (soon) multiple algorithms and backend stores.Installingpip install rerateUsagefromrerateimportlimiter,RateLimitedExceptionfromtimeimportsleeplimit=Limiter(limit=2,period=1,store_option='REDIS',host='localhost',port=6379)@limitdefexample():sleep(0.3)print('hi')for_inrange(100):try:example()exceptRateLimitedExceptionase:print('I got limited!')Supported Storage OptionsRedisLocal (dictionary)Supported AlgorithmsGeneric Cell RateTodoMore backends, more algorithmsBetter exceptionsBuilt in retryAsyncAcknowledgmentsA lot of the ideas/code is inspired by:https://engineering.ramp.com/rate-limiting-with-redishttps://smarketshq.com/implementing-gcra-in-python-5df1f11aaa96https://github.com/tomasbasham/ratelimit
Package: rer.block.iframembed
A block which embeds external url inside an iframeFeaturesDomains validationInstallationInstall rer.block.iframembed by adding it to your buildout:[buildout]

...

eggs =
    rer.block.iframembedand then runningbin/buildoutContributeIssue Tracker:https://github.com/RegioneER/rer.block.iframembed/issuesSource Code:https://github.com/RegioneER/rer.block.iframembedDocumentation:https://docs.plone.org/foo/barSupportIf you are having issues, please let us know.
We have a mailing list located at:project@example.comLicenseThe project is licensed under the GPLv2.ContributorsRedTurtle Technology,sviluppoplone@redturtle.itChangelog1.0.0 (2023-03-13)Initial release.
[cekk]
Package: rer.downloadurl
IntroductionChange the Plone way to generate “download” URL inside File and Image contents, putting as last item
the real filename.How it worksSome statistical reporting tool likeWebtrends(but also other) can inspect access log of a web server for
giving you informations like “how many PDF file has been downloaded”.Plone standard way of downloading File (and recently also Image) from the content view generate URLs like:http://yoursite.com/path/to/pdf_file/at_download/fileIn this case log analysis tools are not able to know that the file is a PDF.This package simply change downalod link to something like:http://yoursite.com/path/to/pdf_file/at_download/file/realname.pdfCreditsDeveloped with the support ofRegione Emilia Romagna;
Regione Emilia Romagna supports thePloneGov initiative.AuthorsThis product was developed by RedTurtle Technology team.Changelog2.0.0 (2013-02-27)Plone 4 requiredNow managing also the image download URL [keul]Updated templates to Plone 4 styles [keul]Can be uninstalled [keul]1.0.1 (2012-08-02)supporting z3c.autoinclude [keul]1.0.0 (2011-04-08)Initial release
Package: re-renamer
re-renamer[RE]name files and folders with [RE]gex.Usagere-renamer works right from your cli. Just provide the path the paths you want to rename...$re-renamer-h
usage:re-renamer[-h][-fFIND][-rREPLACE][-c][-m][-x][-d][--version][paths...][RE]nameFILESandDIRECTORIESusing[RE]gex.

positionalarguments:pathspathstorename

options:-h,--helpshowthishelpmessageandexit-fFIND,--findFINDRegularexpressionsearchstring.-rREPLACE,--replaceREPLACERegularexpressionsubstitutionstring.-c,--case-sensitiveEnablecase-sensitivequerying.-m,--first-matchQuerywillonlymatchthefirstoccurrence.-x,--ignore-extensionQuerywillignorefileextensions.-d,--disable-protectionDisablepathoverwriteprotection.--versionshowprogram'sversionnumberandexitCopyright2023JoshDuncan(joshbduncan.com)Notesre-renamer uses thePython Regular Expressionengine.
Package: rer.externalnews
rer.externalnewsThis product adds a new dexterity content type to your plone  website:External News.This type is similar and act as a Link type.FeaturesYou can add an image to the object.You can specify where the link is from.TranslationsThis product has been translated intoItalianoInstallationInstall rer.externalnews by adding it to your buildout:[buildout]

...

eggs =
    rer.externalnewsand then runningbin/buildoutCompatibilityThis package is fully compatible for Plone 5.CreditsDeveloped with the support ofRegione Emilia Romagna;Regione Emilia Romagna supports thePloneGov initiative.AuthorsThis product was developed byRedTurtle Technologyteam.ContributeIssue Tracker:https://github.com/PloneGov-IT/rer.externalnews/issuesSource Code:https://github.com/PloneGov-IT/rer.externalnewsLicenseThe project is licensed under the GPLv2.ContributorsRedTurtle Technology,sviluppoplone@redturtle.itChangelog1.0.2 (2021-09-02)Added serializer and remoteUrl field. Updated translations.
[daniele]1.0.1 (2021-09-01)Updated translations.
[daniele]1.0.0 (2021-08-30)Include upgrades package
[cekk]Add python3 compatibility
[cekk]0.1.2 (2018-01-05)Enable versioning
[cekk]0.1.1 (2017-12-21)Added some behaviors to the External News type.
[arsenico13]0.1.0 (2017-12-21)Initial release.
[arsenico13]
Package: rerf
Randomer Forest (RerF) Python PackageRandomer Forest combines sparse random projections with the random forest algorithm to achieve high accuracy on a variety of datasets.Documentation for RerF Python module can be found atrerf.neurodata.io.InstallSee installinstructions.ExampleSeeexamplefor basic usage.ReferenceFunction references can be found in ourdocs.TestsWe usepytestfor Python testing.Run the tests from command line at the root of the repo (RerF/).python-mpytestPublish new versionTo upload toPyPiseePUBLISH.md
Package: rer.fix13603
IntroductionThis product add a patch to deleteObjectsByPaths method to avoid acquisition delete problem.To see more details, go to Plone ticket#13603Plone versions affectedAll versions < 4.3.3This bug is already fixed in Plone 4.3.3 (Products.CMFPlone)Plone 4.0 Buildout InstallationTo install rer.fix13603, add the following code to your buildout.cfg:[buildout]

...

[instance]
...
eggs =
    ...
    rer.fix13603

...This product doesn’t need to be installed because only apply a monkeypatch.CreditsDeveloped with the support ofRegione Emilia Romagna;
Regione Emilia Romagna supports thePloneGov initiative.AuthorsThis product was developed by RedTurtle Technology team.Changelog1.0.0 (2014-06-24)Initial release [cekk]
Package: rer.giunta
IntroductionThis is a product that allows to create and manage some aldermans and show various informations like references and a biography.StructureAn alderman is a folderish content. In this object you can create additional folders or topics.VisualizationThe view of this object consists in 2 parts:top part: is a viewlet registered for alderman’s type and shows some infos like the references and the photo. It also shows a list of tabs with additional infos like biography and delegations (if filled), and folders/topics created inside it.body part: shows the infos of the selected tab.DependenciesThis product has been tested on Plone 3.3.5 and Plone 4.2CreditsDeveloped with the support ofRegione Emilia Romagna;Regione Emilia Romagna supports thePloneGov initiative.AuthorsThis product was developed by RedTurtle Technology team.Changelog1.1.3 (2015-12-03)Removed expression in cssregistry.xml and add specific class in the css [cekk]Removed unused view show-assessorecss [cekk]Plone 4.3 compatibility in assessore_view (new templates style) [cekk]1.1.2 (2014-05-08)Add tinymce config file [cekk]1.1.1 (2012-12-05)initial release on pypi [cekk]1.1.0 (2012-09-10)z3c.autoinclude support [keul]Added support for Site Administrator role [keul]Viewlet aligned to Plone 4Changed used viewletmanager to from “Contentview”
to “Aboecontenttitle” [keul]1.0.2 (2011/05/09)Added rolemap.xml [cekk]1.0.1 (2011/04/08)Some fixes [cekk]1.0.0 (2011/04/07)Initial release
Package: rer.immersivereader
Immersive reader support for Plone contents.ConfigurationYou need to set some env variables in buildout, to get the right token:IMR_CLIEND_ID (client id)IMR_CLIEND_SECRET (client secret)IMR_TENANT_ID (tenant id)IMR_SUBDOMAIN (subdomain)Control panelIn the control panel (@immersive-reader-settings) you can:Set a list of portal_types where the immersive reader will be enabled.InstallationInstall rer.immersivereader by adding it to your buildout:[buildout]

...

eggs =
    rer.immersivereaderand then runningbin/buildoutContributeIssue Tracker:https://github.com/collective/rer.immersivereader/issuesSource Code:https://github.com/collective/rer.immersivereaderDocumentation:https://docs.plone.org/foo/barSupportIf you are having issues, please let us know.
We have a mailing list located at:project@example.comLicenseThe project is licensed under the GPLv2.CompatibilityThis product has been tested on Plone 5.1 and 5.2CreditsDeveloped with the support ofRegione Emilia Romagna;Regione Emilia Romagna supports thePloneGov initiative.AuthorsThis product was developed by RedTurtle Technology team.ContributorsRedTurtle Technology,sviluppo@redturtle.itChangelog0.1.5 (2023-09-20)Do not fix restapi version.
[cekk]0.1.4 (2023-06-27)Fix setup.py.
[cekk]0.1.3 (2021-12-27)Install restapi by default.
[cekk]0.1.2 (2021-11-27)Fix link title label.
[cekk]0.1.1 (2021-11-11)Fix link accessibility.
[cekk]Fix text getter in event and collection views.
[cekk]Add controlpanel.
[cekk]0.1.0 (2021-10-21)Initial release.
[cekk]
Package: rer.newsletterplugin.flask
This is a plugin forrer.newsletterthat moves outside from Plone the task for sending emails.It is made to work withrer.newsletterdispatcher.flasknatively, but can work
with every endpoint that exposes the same route and replies in the same way.The main problem having mail dispatcher into Plone, is that this task can take a lot of time (we have some cases with 70000 subscriptions)
and block the instance for a large amount of time slowing down the site and cause also some conflict errors.FeaturesThis product register a new adapter for IChannelSender that overrides some basic rer.newsletter methods and send to an external
endpoint all informations to send the newsletter.This process is asyncronous, so the channel history will be updated only when the endpoint calls the site with the status of the task.External endpoint addressYou can set the endpoint address into Plone’s registry searching for “flask” entry or going directly here:http://your_plone_site/portal_registry/edit/rer.newsletterplugin.flask.interfaces.INewsletterPluginFlaskSettings.queue_endpointIf the addesss is not set, the newsletter will not be send.Completed task notificationWhen the external process finish its job (succesfully or with an error), calls a plone.restapi endpoint (‘@send-done’) registered
for newsletter Channels to update the channel about the status of that job.TranslationsThis product has been translated intoItalianInstallationInstall rer.newsletterplugin.flask by adding it to your buildout:[buildout]

...

eggs =
    rer.newsletterplugin.flaskand then runningbin/buildoutContributeIssue Tracker:https://github.com/RegioneER/rer.newsletterdispatcher.flask/issuesSource Code:https://github.com/RegioneER/rer.newsletterdispatcher.flaskLicenseThe project is licensed under the GPLv2.CreditsDeveloped with the support ofRegione Emilia Romagna;Regione Emilia Romagna supports thePloneGov initiative.AuthorsThis product was developed byRedTurtle Technologyteam.ContributorsRedTurtle,sviluppo@redturtle.itChangelog0.1.0 (2020-07-21)Initial release.
[cekk]
Package: rero
Rerois an efficient communication protocol intended for transmissions of byte frames over e.g. a serial interface or buses.
It builds uponCOBSwhich allows for a minimum encoding overhead.
It is perfectly suited for MCUs with DMA support.Did somebody asked what is it good for? Here are some qualities of Rero:QualityHowGood forReliableCRC checkChecking integrity of frameRobustCOBSandCOBSRbyte stuffingEasy to resynchronize byte streamEfficientExploit properties of COBS and COBSRMinimum processing overheadScalableCustomize Rero to your needsMinimize frame overheadBus-capableOptional address fieldAddress frame for specific recipientA C implementation written for STM32 MCUs is availablehere. It builds upon a very efficient ring buffer implementation tailored for UART interfaces, which of course utilizes DMA support for transmission and reception.Quick startRero requires Python 3.5 or newer to run.$pipinstallreroUsageimportreroreroPacker=rero.Packer(1)# own address = 1# Dummy payloadpayload=bytes([1,2,3,4])msgToSend=reroPacker.pack(payload,20)# Packing with dedicated address = 20# msgToSend may now be sent e.g. by use of pySerial...# Unpack received frameforpayloadRcdinreroPacker.unpack(msgToSend):print(payloadRcd)Further examples are given in thedocs.DocumentationYou can find the documentation athere.ContributionFor information on how to contribute to the project, please check theContributor's Guide.ContactPlease use theGitlab service deskor if you have a Gitlab account you may directly open anissue.LicenseMIT License
Package: rerouter
A RegEx based routerrerouterroutes string commands to annotated functions.How to define the 'grammar':"Grammar" is the pattern that tells rerouter which handler a string command should be routed to.For example,github slack clientsupports slash commands like:subscribeuser/repo+label:"teams/designers"+label:"urgent"subscribeuser/repocommits:myBranchauthor:"hotfix"close[issuelink]open[pullrequestlink]Suppose we want to build a router that routes various command to different handlers, we can do:router=RegExRouter()@router.route("subscribe <user_repo> [<option(+label|commits|author)>:<value>]+")defhandle_subscribe(rns,*args,**kwargs):"""Handle commands like:subscribe user/repo +label:"teams/designers" +label:"urgent"subscribe user/repo commits:myBranch author:"hotfix""""pass@router.route("(close|open) [link:<link_url>]+")defhandle_open_close(rns,*args,**kwargs):"""Handle commands like:close [issue link]open [pull request link]"""passMore examples:@router.route("settings (set|get|delete) project:<jira_project>")deff_settings(rns,*args,**kwargs):"""Matches:settings set project:TEST-PROJsettings get project:TEST-PROJsettings delete project:TEST-PROJ"""pass@router.routex(("(subscribe)",""),("(?P<feature>reviews|pushes|checks)",""),("(?P<filter_name>[+-]path|[+-]fork|[+-]branch|[+-]reviewer):(?P<filter_value>[^:]+)",# noqa"+",),)deff_subscribe(rns):"""Matches:subscribe reviews +path:foo/bar/* -fork:main/release +path:infra/tools/*subscribe pushes path:foo/bar/* fork:main/release path:infra/tools/*"""pass@router.route("a+ b")@router.route("a* c* b")deff_abc(rns,*args,**kwargs):"""Matches:aaabaabaaabacbaacbcbccb"""passHow to start routing:This is done by calling theRegExRouter::route_tomethod, example:router=RegExRouter()@router.route("hello <user>")defhandle_subscribe(rns,*args,**kwargs):returnrns.named("user")res=router.route_to("hello world")# res == 'world'Behind the scene, rerouter translates the routing syntax into a list of regex patterns, aka:grammar:(close|open) [link:<link_url>]+re patterns:1.(close|open);2.(link):(^(?P<{link_url}>[^:]+)$)In the callback function, thernsis aRegExRouteMatchobject which has the following properties:conclusion: bool: whether the grammar match the command. (for annotation use cases, this is always true)matches: a list of RegEx match objects, for example,
command:close https://example.comwill be routed tohandle_open_close(...)and thematcheswill be<re.Match object, match='close'><re.Match object, match='http://example.com''>grammar: the grammar which the command matches, in our example, its value is(close|open) [link:<link_url>]+
Package: rer.portlet.er_navigation
IntroductionA custom navigation portlet that:add a customizable CSS classset default toplevel to 0the title will not appear if not settitle’s link is the root set in the portletCreditsDeveloped with the support ofRegione Emilia Romagna; Regione Emilia Romagna supports thePloneGov initiative.AuthorsThis product was developed by RedTurtle Technology team.Changelog1.0.7 (2013-12-20)Fixed portlet hidden portlet title style [cekk]1.0.6 (2013-12-19)Fixed portlet header for html validation when there isn’t a title [cekk]1.0.5 (2013-07-24)Fixed root_icon image drawing like base Plone navigation [cekk]1.0.4 (2012-08-01)Added autoinclude [cekk]1.0.3 (2012/01/05)Fixed portlet title in template (for Plone 4.1). [cekk]1.0.2 (2011/11/21)Fixed Plone4 compatibility [cekk]1.0.1 (2011/06/24)pypi release [cekk]1.0.0 (2011/03/14)Initial release