Saravanan666/pypi-org huggingface dataset:
Package: retsly
RetslyPython language SDK. RequiresPython@2.7.InstallWithpippipinstallretslyUsagefromretslyimportClientretsly=Client("token","test");listings=(retsly.listings().where('bedrooms','>','3').getAll())APIAll classes are in theRetslynamespace. Most methods are chainable.Client(token, vendor)A new instance ofClientneeds an API token. Optionally set the
vendor (the MLS data source).Client.vendor(vendor)Sets the vendor to the given value.Client.listings([query])Returns a newRequestfor the Listings resource.Client.agents([query])Returns a newRequestfor the Agents resource.Client.offices([query])Returns a newRequestfor the Offices resource.Client.openHouses([query])Returns a newRequestfor the OpenHouses resource.Client.assessments([query])Returns a newRequestfor the Assessments resource.Client.transactions([query])Returns a newRequestfor the Transactions resource.Client.parcels([query])Returns a newRequestfor the Parcels resource.Request.query(query)Appends the query to the querystring.request.query({bedrooms:3}).query({bathrooms:{gt:4});Request.limit(n)Alias forrequest.query({limit:n});Request.offset(n)Alias forrequest.query({offset:n});Request.where(query)Helper function for building queries, works with different signatures.request.where(['bedrooms','lt',4]).where('livingArea','gt',3000).where('baths',3).where('garageSpaces 2')Request.get(id)Get a single document by its id (id).Request.getAll()Get an array of documents.License(The MIT License)Copyright (c) 2015 Retsly Software Incsupport@rets.lyPermission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
‘Software’), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: rettij
rettij Network SimulatorWhat is rettij?The network simulator rettij is developed by theForschungsgruppe Rechnernetze und Informationssicherheitat theBremen University of Applied Sciences.
After testing and evaluating various frameworks, we came to the conclusion that the existing network simulators do a great job at what they aim to do, but we never felt like they were the right tool for our purposes.
Therefore, we finally decided to implement our own network simulation framework.Use casesStandalone (manual usage)Prototyping and pen-testing Docker imagesLearning environmentEmbedded (usage inside other applications)Scripted controlsCo-simulationFeaturesNative co-simulation capabilitiesCan be used in event-based co-simulation environmentAPIs are based on co-simulation requirementsRealistic network behaviorUses the actual unix network stack, allowing simulation of realistic cyber-attack scenariosIsolates simulation traffic via VXLAN tunneling, meaning no noise from Docker, Kubernetes in packet capturesUse real and proprietary softwareUsage of containers and VMs allows running real-world applications, including proprietary software you could replicate fully and legallyCan be used to verify real-world behaviorNo in-depth programming knowledge neededEasy-to-understand-and-write description language for network topologiesStandalone mode requiring no further programmatic interactionSelf-explanatory APIs for easy integration (i.e. for co-simulation scenarios) as well as full code documentationhere.ScalabilityEfficient emulation due to the use of Docker containers (as opposed to VMs)Can be used in a Kubernetes cluster to have access to a large pool of computing resourcesTutorialThe tutorial consists of multiple chapters introducing you to the rettij usage and development step-by-step.
Even if you want to develop for rettij, you should always start with the first chapter as it covers some basics like the setup process.Getting StartedHere you will learn how to set up a simple simulation environment with a basic initial configuration.-> GO TO "Getting Started"Working with rettijYou need to understand the basics of rettij to build your own network-topologies, create custom components and define simulation sequences.-> GO TO "Working with rettij"TroubleshootingSome suggestions for fixing commonly encountered roadblocks when working with rettij, Python as well as Kubernetes.-> GO TO "Troubleshooting"Contributing to rettijPlease refer to theCONTRIBUTINGfile for information on how to contribute to rettij.ContributorsInitial development was done by primarily the following members of theForschungsgruppe Rechnernetze und Informationssicherheitat theBremen University of Applied Sciences:Fabian NiehausTorben WoltjenGiacomo GritzanPhilipp KathmannBastian Fraune
Package: rettool
Ret ToolTool to help in running experiments and saving logsRet automates running experiments on a set of models using a set of benchmarks.
For each project, we need to write scripts that are run at different hook points.Ret can also retrieve metrics from logs and present them as a plot (from a set of standard plot types).
This will be useful to quickly visualize experiment results and compare select models on select metrics.
Ret can also generate a standard plot script that can then be customized.InstallationpipinstallrettoolUsageret run -m model1,model2 -b benchmark1,benchmark2ret plot -M metric_to_plot -m model1,model2 -b benchmark1,benchmark2Project information specified in retconfig.ymlRet finds project information fromretconfig.ymlfile in the current directory.
The project information includes the list of models, benchmarks, metrics, run constraints, etc.
An example retconfig.yml file in given inhere.HooksWorkflowModels, Benchmarks, Metrics
Package: returnn
GitHub repository.RETURNN paper 2016,RETURNN paper 2018.RETURNN - RWTH extensible training framework for universal recurrent neural networks,
is a Theano/TensorFlow-based implementation of modern recurrent neural network architectures.
It is optimized for fast and reliable training of recurrent neural networks in a multi-GPU environment.The high-level features and goals of RETURNN are:SimplicityWriting config / code is simple & straight-forward (setting up experiment, defining model)Debugging in case of problems is simpleReading config / code is simple (defined model, training, decoding all becomes clear)FlexibilityAllow for many different kinds of experiments / modelsEfficiencyTraining speedDecoding speedAll items are important for research, decoding speed is esp. important for production.See ourInterspeech 2020 tutorial “Efficient and Flexible Implementation of Machine Learning for ASR and MT” video(slides)
with an introduction of the core concepts.More specific features include:Mini-batch training of feed-forward neural networksSequence-chunking based batch training for recurrent neural networksLong short-term memory recurrent neural networks
including our own fast CUDA kernelMultidimensional LSTM (GPU only, there is no CPU version)Memory management for large data setsWork distribution across multiple devicesFlexible and fast architecture which allows all kinds of encoder-attention-decoder modelsSeedocumentation.
Seebasic usageandtechnological overview.Here is the video recording of a RETURNN overview talk(slides,exercise sheet;
hosted by eBay).There aremany example demoswhich work on artificially generated data,
i.e. they should work as-is.There aresome real-world examplessuch as setups for speech recognition on the Switchboard or LibriSpeech corpus.Some benchmark setups against other frameworks
can be foundhere.
The results are in theRETURNN paper 2016.
Performance benchmarks of our LSTM kernel vs CuDNN and other TensorFlow kernels
are inTensorFlow LSTM benchmark.There is alsoa wiki.
Questions can also be asked onStackOverflow using the RETURNN tag.
Package: return-result
return-resultThis defines a decorator that causes the variableresultto be automatically returned from a function when there is no return statement.This works by getting the source code of the decorated function, so this won't work in the CPython REPL. It does work in IPython however.Inspired by theNim featurethat does the same thing.Example>>>fromreturn_resultimportreturn_result>>>@return_result...deftest():...result="Works!">>>test()'Works!'RequirementsPython 3.6+
Package: return-type
ReturnTypeGeneric type ReturnType and mypy checker pluginInstallpipinstallreturn_typeadd plugin tomypy.ini[mypy]plugins=return_type.mypy-plugin.pyUsageimporttypingastfromreturn_typeimportReturnTypeC=t.Callable[...,int]RC=ReturnType[C]assertRC=intv1:RC=1# correctv2:RC=1.# error
Package: retux
retuxA Discord API wrapper built with good intentions.IntroductionNowadays, bot developers are offered to use libraries that introduce
unnecessary complexity through abstraction, slightly expensive performance
and boilerplate code. retux tries to define itself off of similar ideals,
but with a fair approach.Over time, I found it painful and frustrating to use various Discord libraries
due to their reliance on good faith of a programmer to do things exactly the
way they intended. That is why, with retux, I wanted to create something better
with these philosophies.Simple to understand.Spend less time debugging your code, and more time writing what you want.A majority of programmers and bot developers alike I've met have all complained
about the lack of simplicity in a dependency. It's important to let bot developers
understand what's going on. retux tackles this by giving ample documentation wherever
it can (even if it's verbose) and follows with beingeasy to use.Easy to use.End-user facing code shouldn't contain unnecessary complexity to provide the bare
minimum.Bot developers spend a lot of time trying to implement their features by whatever the
library provides. Granted, a Discord library is nothing more than a wrapper for the API
given, but it is almost expected that libraries take the extra step in providing an easily
accessible set of tools and containers.Versatile.Recycle current existing code paradigms elsewhere, so you can borrow assets off of one
another.Developerslovethe ability to reuse and recycle existing code elsewhere. A Discord library should be no
different and open to giving the bot developer as much artistic freedom as they so desire.Safe.Bot developers are human after all. We'll correct your mistakes for you so that you can keep
chugging along.As society makes more technological advancements, it's become a concern of my own that any
dependency, even a Discord library should consider looking into the possibility of ensuring
runtime safety. With retux, your end-user facing code is generously checked and potentially
sanitised if inputted wrongly to the API. You should be able to make codework, not
fight for technical correctness.Is this another fork?Despite the recent trend for developers to begin forking and maintaining their own Discord
libraries akin todiscord.py, our library is entirely
separate from any other and does not rely on other API wrappers. While one could argue that
other competing libraries are better than one another, we respect each one's design decisions
and disagree to implementation.When will version 1.0 come out?There is currentlyno set date for version 1.0. When a
release date has been decided upon, we will let you know. :)
Package: retvec
# RETVec: Resilient & Efficient Text Vectorizer## Overview
RETVec is a next-gen text vectorizer designed to offer built-in adversarial resilience using robust word embeddings. Read the paper here:https://arxiv.org/abs/2302.09207.RETVec is trained to be resilient against character manipulations including insertion, deletion, typos, homoglyphs, LEET substitution, and more. The RETVec model is trained on top of a novel character embedding which can encode all UTF-8 characters and words. Thus, RETVec works out-of-the-box on over 100 languages without the need for a lookup table or fixed vocabulary size. Furthermore, RETVec is a layer, which means that it can be inserted into any TF model without the need for a separate pre-processing step.### Getting started#### InstallationYou can use pip to install the TensorFlow version of RETVec:`python pip install retvec `RETVec has been tested on TensorFlow 2.6+ and python 3.7+.### Basic Usagetraining/train_tf_retvec_models.pyis the RETVec model training script. Example usage:`python train_tf_retvec_models.py--train_config<train_config_path>--model_config<model_config_path>--output_dir<output_path> `Configurations for our base models are under theconfigs/folder.### ColabColab for training and releasing a new RETVec model:notebooks/train_and_relase_a_rewnet.ipynbHello world colab:notebooks/hello_world.ipynb## Disclaimer
This is not an official Google product.
Package: retwist
retwistRetwist allows convenient creation of RESTful JSON endpoints in Twisted. Features:Routes: Mapping path patterns liker"/hotels/(.*)/info"to Twisted Resources. Instead of using the TwistedgetChild()lookup mechanism.Parsing of URL parameters from requests. Parameters are defined inResourceclass scope, e.g.type = retwist.EnumParam(["html", "json]).Handles encoding JSON responses, including support for good old JSONP.You implement JSON endpoints by subclassingretwist.JsonResource, and implementing thejson_GETmethod.ExampleHere's a simple demo page that parses a required ID parameter, and echoes it back in a JSON object. Note how we register
a route "/echo".importretwist,twisted.internet.reactorclassDemoPage(retwist.JsonResource):isLeaf=Trueid=retwist.Param(required=True)# Use the "name" argument for parameters whose names are reserved Python keywords:from_param=retwist.Param(name="from")defjson_GET(self,request):# This method can also return a Deferredargs=request.url_argsreturn{"msg":"You passed ID{}and from{}".format(args["id"],args.get("from"))}site=retwist.RouteSite()site.addRoute(r"/echo",DemoPage())twisted.internet.reactor.listenTCP(8080,site)twisted.internet.reactor.run()See alsoexamples folder.JSON parametersRetwist can parse JSON-encoded parameters, and with the[jsonschema]extra installed, perform schema validations on
the data.For example, this resource will parse the data passed for the "config" parameter, and return a 400 client error if it
was invalid JSON, or did not comply with the specified schema:importretwistclassJsonDemoPage(retwist.JsonResource):config=retwist.JsonParam(schema={"type":"object"})defjson_GET(self,request):# You can assume request.url_args["config"] to be a dictionary here# ...Sentry error reportingInstall retwist with the[sentry]extra, and enable Sentry reporting like so:importsentry_sdksentry_sdk.init(dsn="...",release="...")fromretwist.util.sentryimportenable_sentry_reportingenable_sentry_reporting()# This is useful to redirect Twisted log messages to Python's logging module:fromretwist.util.logsimportredirect_twisted_loggingredirect_twisted_logging()This will capture any errors logged toTwisted's logging systemand forward exceptions to Sentry. Starting from retwist 0.3, this reports the request URL, headers and data to Sentry.Development NotesRetwist comes with atox configurationto run its test suite on all supported Python versions, as well as a
linting and type checking step.It's possible to install all required Python versions locally viapyenv.
Alternatively, use thekiwicom/tox Docker imageto run the test suite:dockerpullkiwicom/tox

dockercontainerrun\--mountsrc=$PWD,target=/retwist,type=bind\--interactive--tty--rm\--dns8.8.8.8\# Prevents a DNS issue which occurs on some Linux hosts. This is a Google DNS server, but any other would work tookiwicom/tox\/bin/bash-c"cd /retwist && find -name '*.pyc' -delete && tox"# Delete stale *.pyc files to avoid errors on Python 2
Package: reusable
reusablePython reusable code, utility functions and time saver.OverviewPythonreusablelibrary contains a handful of reusable functions and utility classInstallpipinstall-UreusableUsageLoading Configuration files as class attributesfromreusableimportAppConfigconfig=AppConfig('config.json')mykey=config.my_keyLoad config file accessible via class methodsfromreusableimportConfigconfig=Config('config.json')mykey=config.get('my_key')Available functionsrandom_string(): return a random string of specified length and character setprint_table(): prints a data table provided as listprint_time_taken[decorator] : prints the time of execution of a parametergroupby_count(): groups a given list according the number of times it appearsgenerate_all_datetime_regex: generate the regex for all possible datetimedownload_file: download a file from the given urlis_python3(): check if the interpreter is python v3is_python_above_or_equal(): check if the interpreter is above or equal to the given versioncheck_modules_installed(): check if the given modules are installedrandom_useragent(): return a random useragentis_valid_json(): checks if given string is valid jsonheadline(): return a formatted string in headline stylesplash(): return a string with splash stylemultiline_input(): takes multiline user inputget_datadir(): returns the app data folderget_windows_appdata_dir(): similar to get_datadir() but windows onlyslugify(): Makes slug text from given vlauefloat_range(): Returns a iterable of floating range
Package: reusablesbyreme
project_titleproject_descriptionExplore the docs »View Demo·Report Bug·Request FeatureTable of ContentsAbout The ProjectBuilt WithGetting StartedPrerequisitesInstallationUsageRoadmapContributingLicenseContactAcknowledgmentsAbout The Project![Product Name Screen Shot][product-screenshot]Here's a blank template to get started: To avoid retyping too much info. Do a search and replace with your text editor for the following:github_username,repo_name,twitter_handle,linkedin_username,email_client,email,project_title,project_description(back to top)Built With[![Next][Next.js]][Next-url][![React][React.js]][React-url][![Vue][Vue.js]][Vue-url][![Angular][Angular.io]][Angular-url][![Svelte][Svelte.dev]][Svelte-url][![Laravel][Laravel.com]][Laravel-url][![Bootstrap][Bootstrap.com]][Bootstrap-url][![JQuery][JQuery.com]][JQuery-url](back to top)Getting StartedThis is an example of how you may give instructions on setting up your project locally.
To get a local copy up and running follow these simple example steps.PrerequisitesThis is an example of how to list things you need to use the software and how to install them.npmnpminstallnpm@latest-gInstallationGet a free API Key athttps://example.comClone the repogitclonehttps://github.com/github_username/repo_name.gitInstall NPM packagesnpminstallEnter your API inconfig.jsconstAPI_KEY='ENTER YOUR API';(back to top)UsageUse this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.For more examples, please refer to theDocumentation(back to top)RoadmapFeature 1Feature 2Feature 3Nested FeatureSee theopen issuesfor a full list of proposed features (and known issues).(back to top)ContributingContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make aregreatly appreciated.If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star! Thanks again!Fork the ProjectCreate your Feature Branch (git checkout -b feature/AmazingFeature)Run pylint reusablesCommit your Changes (git commit -m 'Add some AmazingFeature')Push to the Branch (git push origin feature/AmazingFeature)Open a Pull Request(back to top)LicenseDistributed under the MIT License. SeeLICENSE.txtfor more information.(back to top)ContactYour Name -@twitter_handle-email@email_client.comProject Link:https://github.com/github_username/repo_name(back to top)Acknowledgments(back to top)[product-screenshot]: images/screenshot.png
Package: reusegen
reusegenGenerators are exhausted during iteration:xs=(x*xforxinrange(10))ys=[x+1forxinxs]# [1, 2, ...]zs=[x+2forxinxs]# []Sometimes this is not expected. With reusegen, you can reuse generators like lists:fromreusegenimportreusexs=reuse(x*xforxinrange(10))ys=[x+1forxinxs]zs=[x+1forxinxs]print(ys==zs)# TrueAnd it also works as decorator:@reusedefdouble(xs):forxinxs:yieldx*2By default, the results of generator is cached. You could make it cacheless to save memory as original generator:xs=reuse(x*xforxinrange(10),cache=False)The generator will be executed multiple times.TODOAdd cacheless version ofreuse.
Package: reutersana7yzer
News Analyzer provides users with the ability to easily scrape market news data(from reuters.com) and corresponding financial information about stocks mentioned in this article. Users can scrape new data or use the one scraped and cleaned by our first scrape(from March 2021 to September 2020).Typical usage:from newsanalyzer import NewsAnalyzerNewsAnalyzer(workType, api, token, name, path, count)For the full documentation refer to the GitHubrepo.
You will need to install aditional packages and data for this package to work. All instructions are in the github repo aboveContributorsMykhailo IvaniukMateo OsorioVeronika Starodubets