Saravanan666/pypi-org huggingface dataset:
Package: respace
ReSpaceReSpace is a Python package that allows you to keep track of the results of different
computations along with the parameter values that generated them. You specify their
names, the function that generates them, the name and default values of the parameters
they depend on and you're good to go: no more trying to remember what parameters this
value was computed for, building dictionaries of dictionaries (of dictionaries) to
store them, or generally worrying about these things.FeaturesCompute and store some result, indexing it based on the values of the parameters
it was computed for.Compute results that depend on others reliably and easily.Retrieve a previously computed result for a set of parameters.Add new parameters seemlessly.Handle parameter defaults.Save your results at different paths depending on the set of parameters they were
computed for, with little to no effort.Track how long each computation takes to identify bottlenecks in your pipeline.InstallationYou can install the latest release of ReSpace viapipfromPyPI:$pipinstallrespaceOr, if you want the latest development version from GitHub withgit:$pipinstallgit+https://github.com/TLouf/respaceReSpace requires Python 3.8+ and depends on thexarraylibrary.ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theMIT license,ReSpaceis free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.CreditsThis project was generated from a fork of@cjolowicz'sHypermodern Python Cookiecuttertemplate.
Package: respack
python 资源文件快捷打包===========================使用场景-----------------------------用 Pyinstaller 可以将 Python 程序打包为单个 exe 文件，发送到没有安装 Python 环境的电脑上直接运行，十分方便好用。可是一旦你的程序中要用到一些资源文件，比如图片、字体等。你发送给对方的文件就不能只是一个 exe 文件了，必须将这些资源文件一起给对方才能正常使用。这样一来原来的便捷简洁的特点就不复存在了，所以请使用 respack 来帮你解决这一困扰。原理其实很简单，首先在开发过程中将资源文件的二进制编码以字符串形式保存在一个 .py 文件中。然后程序中调用资源文件时，将上述编码释放为一个实际文件。使用说明-----------------------------```$ pip install respack>>> import respack>>> respack.set('pic.jpg')>>> # 可以删除 pic.jpg 文件>>> respack.get('pic.jpg')C:\packresources\pic.jpg```具体见 `demo.py` 中应用示例
Package: resparser
pyresparserExtract Resume Entities Using NERResparser is a cloud-enabled resume entities extractor
ExamplesNameEmailLocationEtcTech StackResparser uses a number of open source projects to work properly:Spacy - It is an open-source library for Natural Language Processing in Python. It features NER, POS tagging, dependency parsing, word vectors and more.Google Cloud Vision - The Vision API can detect and extract text from imagesDjango Rest Framework - It is used to building Web APIInstallationInstall the dependenciespipinstallreuqests
pipinstallresparserUseresparseris very easy to install and use.Follow the below code#import resprserfromresparserimportresumeparser#provide your text resumewithopen(r"C:\Projects\Resume\Resume_Parser\output\1.txt",'r')asf:data=f.read()##pass the text to the resumeparserresult=resumeparser(data)print(result).You will receive output in json{'NAME':'Mukesh Ambani','LOCATION':'Kolkata','Email':'mukeshambin@gmail.com','Mobile':'983468633'}
Package: respawn
Version HistoryVersion:v1.0.3Initial releaseIntroductionInfrastructure templates and utilities for building AWS CloudFormation stacks. Respawn usescfn-pyplatesto
generate CloudFormation templates. Respawn digests a custom, easy to read/write YAML representation of a JSON CloudFormation template and resources, with the goal of generating CloudFormation templates based on python templates (pyplates!) that reflect the CloudFormation template hierarchy.Respawn is a Python package that provides interfaces to Amazon Web Services - Cloudformation. It allows for easier and more user friendly and concise YAML keywords to create resources/parameters/userdata in CloudFormation stacks. This is used in Dow Jones professional information business pipeline and with success and has been modified to be as generic and serve all. Currently the library supports Python 2.7.AuthorsRespawn has been written by the followingauthors. The
logo for respawn has been designed byGregor Louden.DocumentationDocumentation is generated bysphinxand hosted onreadthedocsServicesAt the moment, respawn supports:AutoScalingAutoScalingGroupLifecycleHookScalingPolicyScheduledActionCloudWatchAlarmElastic Compute Cloud (EC2)InstanceNetworkInterfaceNetworkInterfaceAttachmentSecurityGroupVolumeElastic Load Balancing (ELB)LoadBalancerRelational Database Service (RDS)DBInstanceSimple Notification Service (SNS)TopicThe goal of respawn is to support the full breadth and depth of Amazon Web Services - resources. respawn is developed mainly using Python 2.7.x on Mac OSX and Ubuntu. It is known to work on Linux Distributions, Mac
OS X and Windows.InstallationTo install respawn, simply:Windows/Unix/Mac OS XOpen command prompt and execute pip command :pip install respawnUsage - Template Generationto use respawn, in your command prompt/terminal :$ respawn pathToYAML.yamlto create & validate the JSON against AWS usingbotoand pipe output to a file:$ respawn --validate pathToYAML.yaml > pathToJSON.jsonto pipe the output to a file :$ respawn pathToYAML.yaml > pathToJSON.jsonDeveloping and ContributionWe’d love to get contributions from you! Take a look at theCONTRIBUTING.rstto see how to get your changes merged in.LicenseISC
Package: respect
A command-line tool to interact with the Github API. Getting to know software developers yourespect$pipinstallrespect$respectaudreyrbioAudreyRoy(fromInlandEmpire,CA),aka@audreyr,joinedGithubonApr17,2009,has389followers,isfollowing210peopleandhas90publicrepositories.$respectaudreyrstars@audreyrhas5896starsintotal.$respectRoy--repos+10--followers+200--languagepythonThisrequestneedsuserauthentication:Githubusername:oubigaGithubpassword(hidden):Theusersrelatedto"Roy"are:@audreyr@binuxRelease History0.1.0 (2014-03-26)First minor version.0.1.1-alpha (2014-03-26)Added pip pre-release install commad.0.1.0-alpha (2014-03-25)First release on PyPI.0.0.1-alpha (2014-03-07)Inception.
Package: respect-validation
respect_validationPython version of "the most awesome validation engine for PHP"DocumentationInstallationpipinstallrespect-validation-->DEMOPHP and Python have many differences that why this library has some small changes, but an awesome architecture was migrated without changes.General description:Complex rules made simple:v.numericVal().positive().between(1, 255).validate(some_variable).PEP8snake_casesupported:v.one_of(v.string_val().string_type(), v.int_val().int_type()).validate("gurkin33")Advanced reportingto show validation errors.More than 130(fully tested) validation rules.Integration with Flaskexample.Please seedemo of integration with flask.Easy translationwith multi-language support.Why is it great alternative to others?It is easy to make logical check in one line. Youcan easily see logic
in chain of rules. There are no addition classes, instances,
dictionaries,there is only one chain of rulesand it is
beautiful.There are logical operators inside, you can use them as usual rules.
You can easily set several validation chains and wrap them into
logical rule likeAnyOforOneOf(only one chain valid) orAllOforWhen(if ... then ... else) and so on. I hope you will
find this interesting.Any rule or chain of rules you can easily revert to negative result
with only one logical rule -Not.There are many of prebuilt rules. They will be useful for most of
general cases.You can easily create you own package of rules and use it when it is
needed.How to say thank you?If you like this library please add star for initial library
"the most awesome validation engine for PHP".Many thanks to Alexandre Gomes Gaigalas for beautiful architecture.
Package: respice
Flexible and easy to use non-linear transient electric circuit simulator.Installpip3installrespiceUsageCreate your circuit and simulate it!fromrespice.analysisimportCircuitfromrespice.componentsimportCurrentSourceDC,R,C# Define components for our circuit.R1=R(100)R2=R(200)C3=C(10e-6)R4=R(200)R5=R(100)Isrc=CurrentSourceDC(0.1)# Construct the circuit. All circuits are just# Digraphs allowing multiple edges. On each edge# one component.wheatstone_bridge=Circuit()wheatstone_bridge.add(R1,0,1)wheatstone_bridge.add(R2,0,2)wheatstone_bridge.add(C3,1,2)wheatstone_bridge.add(R4,1,3)wheatstone_bridge.add(R5,2,3)wheatstone_bridge.add(Isrc,3,0)# Simulate! From t1 = 0ms to t2 = 5ms with 100 steps.simulation=wheatstone_bridge.simulate(0,0.005,100)The results are stored in the returned object and can be easily accessed
viasimulation.v(component),simulation.i(component)orsimulation.p(component).
Those contain the voltages, currents and powers respectively for each time step
as a list. The time steps can be accessed withsimulation.t().All simulations are asynchronous. Accessing results early may only give partial
results. Usesimulation.wait()to wait until the result is ready.Results can be immediately plotted.
For plotting,plotlyis required.fromrespice.examplesimportRC# Define an example RC circuit. The package respice.examples# contains a few!rc=RC(100,100e-6,10)# 100Ohm, 100uF, 10Vsimulation=rc.simulate(0,0.1,100)simulation.plot()The plot function will wait automatically until the result is finished. Live-plotting
is not supported yet.More simulations can be found on thesnippets page.SupportsMNA - Modified Nodal AnalysisThis is the algorithm employed by this software. So it’s easily
possible to handle voltages as well as currents.Transient non-linear steady-state analysisFind quickly periodic steady-state solutions of a circuit that appear
when the circuit transients have settled.Multi-terminal componentsComponents with more than just two terminals can be handled easily.
Whether each sub-branch of them is a current- or voltage-branch, or
whether they are current- or voltage-driven.Mutual couplingUsually required by multi-terminal components, mutual coupling is
easily implementable. Each sub-branch in a component is automatically
receiving the voltages and currents of all other branches comprising
the component.DocumentationMore details and explanations are available in the documentation.Documentation is generated via Sphinx. To build the documentation:pip3install-rrequirements.txt-rdocs-requirements.txtmakehtmlThe index file can then be opened with your favorite browser atbuild/html/index.html.Documentation is also availableonline.
Package: resplendent
resplendentA reStructuredText plugin filter for pyspelling.More details can be found in theOnline Documentation.InstallationYou can install resplendent forPythonviapipfromPyPI.$ pip install resplendentNote: if using Python 3.4 the latest version of lxml only supports python 3.5 and above so install lxml 4.3.4Prerequisites:docutilspyspellinglogdecoratorDownload from PyPI.orghttps://pypi.org/project/resplendent/ContributingContributions are very welcome, consider using thefile an issueto discuss the work before beginning, but if you already have a Pull Request
ready then this is no problem, please submit it and it will be very gratefully
considered. TheContribution Guidelinesoutlines the resplendent commitment to ensuring all
contributions receive appropriate recognition.LicenseDistributed under the terms of theGPLv3license, "resplendent" is free and open source softwareIssuesIf you encounter any problems, pleasefile an issuealong with a detailed description.Additional Documentation:Online DocumentationNews.Template Updates.Code of Conduct.Contribution Guidelines.
Package: respo
Documentationhttps://rafsaf.github.io/respo/Installationpip install respo[all]Introductionrespostates for resource policy and is tiny, user friendly tool for building RBAC systems based on staticymlfile, mainly with FastAPI framework in mind. In most cases – for even large set of roles – single file would be enough to provide restricting system access.Features:It provides custom fields forSQLAlchemyandDjangoto store users roles in database.Implements R. Sandhu Role-based access controltext.Dead simple, fast and can be trusted – 100% coverage.No issueswith mutlithreading and multiprocessing – you just pass around already prepared, compiled respo_model (from file) in your app that isreadonly.Generates your roles, permissions offline and compile it to pickle file for superfast access in an app.Detailed documentation and error messages in CLI command.100% autocompletion and typing support with optional code generation for even better typing support.Note, every piece of code in the docs is a tested python/yml file, feel free to use it.Usage in FastAPIThe goal is to use simple and reusable dependency factoryuser_have_permission("some permission")that will verify just havingUserdatabase instance if user have access to resoruce. Single endpoint must have single permission for it, and thanks to respo compilation step, every "stronger" permissions and roles would include "weaker" sowe don't need to have the if statements everywhere around application.from.dependenciesimportuser_have_permission...@router.get("/users/read_all/")defusers_read_all(user=Depends(user_have_permission("users.read_all"))):returnuser
Package: respond-africa
RESPOND AfricaThe NIHR Research Partnership for the Control of Chronic Diseases in Africa, (RESPOND-AFRICA), is a partnership between researchers, health policy makers and other stakeholders from Tanzania, Uganda, and the UK, conducting clinical and public health studies on the control of chronic diseases in Africa. Our research partners include the National Institute for Medical Research (NIMR) in Tanzania and the MRC/UVRI/LSHTM Uganda Research Unit and we collaborate with other institutions in Tanzania and Uganda and with various researchers in the UK Spain, Ireland and Norway.https://www.lstmed.ac.uk/RespondAfrica
Package: responder
Responder: a familiar HTTP Service Framework for PythonPowered byStarlette. Thatasyncdeclaration is optional.View documentation.This gets you a ASGI app, with a production static files server pre-installed, jinja2
templating (without additional imports), and a production webserver based on uvloop,
serving up requests with gzip compression automatically.Testimonials"Pleasantly very taken with python-responder.@kennethreitzat his absolute best." —Rudraksh
M.K."ASGI is going to enable all sorts of new high-performance web services. It's awesome
to see Responder starting to take advantage of that." — Tom Christie author ofDjango REST Framework"I love that you are exploring new patterns. Go go go!" — Danny Greenfield, author ofTwo Scoops of DjangoMore ExamplesSeethe documentation's feature tourfor more details on features available in Responder.Installing ResponderInstall the stable release:$ pipenv install responder
✨🍰✨Or, install from the development branch:$ pipenv install -e git+https://github.com/taoufik07/responder.git#egg=responderOnlyPython 3.6+is supported.The Basic IdeaThe primary concept here is to bring the niceties that are brought forth from both Flask
and Falcon and unify them into a single framework, along with some new ideas I have. I
also wanted to take some of the API primitives that are instilled in the Requests
library and put them into a web framework. So, you'll find a lot of parallels here with
Requests.Settingresp.contentsends back bytes.Settingresp.textsends back unicode, while settingresp.htmlsends back HTML.Settingresp.mediasends back JSON/YAML (.text/.html/.contentoverride this).Case-insensitivereq.headersdict (from Requests directly).resp.status_code,req.method,req.url, and other familiar friends.IdeasFlask-style route expression, with new capabilities -- all while using Python 3.6+'s
new f-string syntax.I love Falcon's "every request and response is passed into to each view and mutated"
methodology, especiallyresponse.media, and have used it here. In addition to
supporting JSON, I have decided to support YAML as well, as Kubernetes is slowly
taking over the world, and it uses YAML for all the things. Content-negotiation and
all that.A built in testing client that uses the actual Requests you know and love.The ability to mount other WSGI apps easily.Automatic gzipped-responses.In addition to Falcon'son_get,on_post, etc methods, Responder features anon_requestmethod, which gets called on every type of request, much like Requests.A production static file server is built-in.Uvicorn built-in as a production web server. I would have chosen Gunicorn, but it
doesn't run on Windows. Plus, Uvicorn serves well to protect against slowloris
attacks, making nginx unnecessary in production.GraphQL support, via Graphene. The goal here is to have any GraphQL query exposable at
any route, magically.Provide an official way to run webpack.
Package: response
ResponseYour handy frequency and impulse response processing object!This module supplies theResponseclass: an abstraction of frequency and
impulse responses and a set of handy methods for their processing. It implements afluent interfacefor chaining the processing commands.Find the documentationhereand the source code onGitHub.importnumpyasnpfromresponseimportResponsefs=48000# sampling rateT=0.5# length of signal# a sine at 100 Hzt=np.arange(int(T*fs))/fsx=np.sin(2*np.pi*100*t)# Do chain of processingr=(Response.from_time(fs,x)# time window at the end and beginning.time_window((0,0.1),(-0.1,None),window="hann")# equivalent to Tukey window# zeropad to one second length.zeropad_to_length(fs*1)# circular shift to center.circdelay(T/2)# resample with polyphase filter, keep gain of filter.resample_poly(500,window=("kaiser",0.5),normalize="same_amplitude")# cut 0.2s at beginning and end.timecrop(0.2,-0.2)# apply frequency domain window.freq_window((0,90),(110,500)))# plot magnitude, phase and time responser.plot(show=True)# real impulse responser.in_time# complex frequency responser.in_freq# and much more ...
Package: responser
ResponserResponser is a python package to convert normal strings, objects and other data to REST API response convention and in JSON format.UsageResponserResponser is a python package to convert normal strings, objects and other data to REST API response convention and in JSON format.This function follows the following JSON structure.{"status_code":200,"data":{"name":"Bharath Kumar Ravichandran","alma_mater":"NIT Trichy","languages_known":["Python","PHP","JS","C++"],"cool_guy":"yes",},"message":"OK"}JSONResponserImport the function withfrom responser import JSONResponserDefinitionJSONResponser(status_code=400, data=None, message=None, strict_mode=false)Thestatus_codecan be HTTP status codes or your own custom status codes.If thestatus_codeis a HTTP status code and thedataisNone, a defaultreason phraseis added. (Ifstrict_modeisFalse(default) )If thestatus_codeis a HTTP status code and themessageisNone, a defaultreason phraseis added. (Even ifstrict_modeisTrue(default) ).If thestatus_codeis not a HTTP status code and thedataisNone, an empty data is added.If thestatus_codeis not a HTTP status code and themessageisNone, an empty message is added.If thestrict_modeis set toTrue, the data given asdatais encoded.Thestatus_codedefaults to 400.Sample CodefromresponserimportJSONResponserstatus_code=200data={"name":"Bharath Kumar Ravichandran","alma_mater":"NIT Trichy","languages_known":["Python","PHP","JS","C++"],"cool_guy":"yes",}message="User details returned."response=JSONResponser(status_code,data,message)printresponseOutput{"status_code":200,"data":{"name":"Bharath Kumar Ravichandran","alma_mater":"NIT Trichy","languages_known":["Python","PHP","JS","C++"],"cool_guy":"yes",},"message":"User details returned."}JSONResponserDecoratorImport the decorator withfrom responser import JSONResponserDecoratorWrap function with decorator@JSONResponserDecoratorJSONResponserDecoratoris built on top of JSONResponser, so it follows the same convention asJSONResponser.Sample CodefromresponserimportJSONResponserDecorator@JSONResponserDecoratordefsample_function():data={"name":"Bharath Kumar Ravichandran","alma_mater":"NIT Trichy","languages_known":["Python","PHP","JS","C++"],"cool_guy":"yes",}returndataReturned Data{"status_code":200,"data":{"name":"Bharath Kumar Ravichandran","alma_mater":"NIT Trichy","languages_known":["Python","PHP","JS","C++"],"cool_guy":"yes",},"message":"OK"}Inspired fromGokulSrinivas/SangriaContributorsBharath Kumar RavichandranLicenseMIT
Package: responses_proxy
responses_proxy allow you to easily mock HTTP responses in your testsInstallationWith pip:$ pip install responses_proxyUsing docker:$ docker run --rm -v tests/responses:/tests/responses bearstech/responses_proxy -hUsageCheck command line arguments:$ responses-proxy -hFirst save some stuff using the proxy mode:$ responses-proxy --proxyIf your target site use ssl then use:$ responses-proxy --proxy --use-sslThe proxy do not support ssl so you need to make http request. But first set
theHTTP_PROXYenv var:$ export HTTP_PROXY=http://localhost:3333Then run some code to make some requests:python -c "import requests; requests.get('http://bearstech.com')"This will generate some file intests/responses/NB: With docker you’ll have to mount the volume:$ docker run --rm -v tests/responses:/tests/responses bearstech/responses_proxyYou can now restart the server without the proxy mode and the client will react
the same way without calling the real server.You can aslo use aRequestsMockin you unit tests:import responses_proxy
import requsests

def test_url():
    with responses_proxy.RequestsMock():
        requests.get('http://bearstech.com')
        # https will work to. both are registered
        requests.get('https://bearstech.com')
Package: responsibleai-text
Responsible AI Text SDK for PythonThis package has been tested with Python 3.7, 3.8 and 3.9The Responsible AI Text sdk enables users to analyze their machine learning models for text data in one API. Users will be able to analyze errors, explain the most important features, and understand their data using a single API.Highlights of the package include:explainer.add()explains the modelSupported scenarios, models and datasetsThe Responsible AI Text SDK supports multiclass classification and question answering models on text data currently.The open source code for the visualization dashboard can be found here:https://github.com/microsoft/responsible-ai-toolbox
Package: responsibleai-vision
Responsible AI Vision SDK for PythonThis package has been tested with Python 3.7, 3.8 and 3.9The Responsible AI Vision SDK enables users to analyze their machine learning models for computer vision in one API. Users will be able to analyze errors, explain the most important features, and understand their data using a single API.Highlights of the package include:explainer.add()explains the modelSupported scenarios, models and datasetsThe Responsible AI Vision SDK supports multiclass classification models on image data currently.The open source code for the visualization dashboard can be found here:https://github.com/microsoft/responsible-ai-widgets