Saravanan666/pypi-org huggingface dataset:
Package: responsiveimage
Introductionresponsiveimageis a python package aimed at building responsive version of images.Supported formats are:image: webp, jpg, png, gif and svgvideo: mp4, mts, avi, wmv, movUsageInstallationRunpython -m pip install responsiveimageto install the python package.Also, please install the binariesffmpegandoptipng(using apt-get, pacman, or directly fromsourceforge)
to further optimize the png version of the sprite.Usageresize and save all images in<srcdir>into<dstdir>. New size is 1920px by default (at largest dimension, keep the aspect-ratio), and save quality is:gif and svg: direct copypng: use Pillow library, with Optimize=Truejpg: quality=80, progressive, 4:2:2webp: quality=80mp4: useffmpegto scale at 1024python -m responsiveimage --src-dir <srcdir> --dst-dir <dstdir>--export-to-webp: also export thewebpversion of the image--size <s1,s2...>: different scaling are generating, instead of the default 1920px.
The max size will be s1, s2...--height <s1,s2...>: different scaling are generating, based on the height which will be
be s1, s2... Note that--sizeand--heightcannot be used at the same time.By default, the name of the created responsive versions of the
image areunchanged if there is a single scaled version of the imageor suffixed with-s1,-s2... otherwise.Option--add-name <name1,name2...>is used to modify the suffix, inname1,name2.
Note that the numbers of sizes or heights must be the same as the one of add-name if providedAs an example, using--size 1024,512 --add-name _big,_small, an imageimg.jpgwill be rescaled with 1024px and namedimg_big.jpg, and another one rescaled at 512px and namedimg_small.jpg--mp4-as-gif: from a mp4 file, the gif and the webp animated versions are created, usingffmpeg--crop <x1,y1,x2,y2>crops the original image using(x1,y1)as the top-left point (x being the horizontal position in px), and(x2,y2)being the bottom-right point.--recursiveto scan recursively the source directory. The directory tree is kept in destination--format <f1,f2>to used to only process files of provided format. You can
for example process only jpg and png to exclude videos.
The default value isjpg,png,webp,gif,svg,mp4,mts,avi,wmv,mov--force: recreate the scaled versions of the images, even when they exist.Releases1.2.0Supported formats:
webp, jpg, png, gif and svg, mp4, mts, avi, wmv, movNew options:--format--recursive1.1.1Fix mp4: no upscale, along max size.Fix HEIC format1.1.0Following capabilities are added:--height--add-name--crop--force1.0.0Initial version
Package: responsys
# Responsys Interact API python client #A python library providing access to the Responsys Interact API.## Install ##Via pypi:pip install responsysVia source package:cd responsys/
pip install .## Usage ##The [InteractClient](./responsys/client.py) provides the methods needed to work with
the Interact API:>>> from responsys.client import InteractClient
>>> client = InteractClient(username, password, pod)
>>> client.connect()
>>> client.merge_list_members(interact_object, records, merge_rules)
>>> client.disconnect()Using the client class as a context manager will automatically connect using the credentials
provided, and disconnect upon context exit:>>> with InteractClient(username, password, pod) as client:
...     client.merge_list_members(interact_object, records, merge_rules)Since responsys limits the number of active sessions per account, this can help ensure you
don’t leave unused connections open.## Development/Testing ##Tests can be run via setuptools:python setup.py nosetestsInstalling requirements for development environment can be accomplished via pip:pip install -r requirements.txtTesting within a dev environment can be accomplished via`nosetests`.## Acknowledgements ##This library was developed while working for the fine folks at
[udemy.com](http://www.udemy.com/about).## Legal ##This code is neither officially supported nor endorsed by Udemy.com, Oracle, Responsys, or any
related entites.[License](./LICENSE)
Package: respotgui
ReSpotGUIThe purpose is to provide a graphical frontend for thelibrespot-java, a library that provides streaming and support for Spotify Connect devices.FeaturesSearch for any kind of item in spotify (artist, playlist, track names, albums)Volume controlPlay controlsSeek to any time point in the trackAble to choose any track in the playlistRequirementsA Spotify premium subscriptionJava installedlibrespot-java (last version can be obtainedhere)[^1]Python 3 installed (of course!)InstallTo install type:pip install respotguito execute:python -m respot.guior simply:respotgui[^1]: Download the filelibrespot-api-*.jarand execute it withjava -jarChangelogupdated screenshotTabs are now restored at startImplemented playlists in tabsAdded buttons for change the repeat and shuffle.Changed font to Verdana and implemented buttonsSearch results in a tree, cleaned codeNow listens to presses on media keysAdded slider for volumeadded total time in timer and made improvementsImplemented search for playlists and listbox with active playlistMinor changes to the gui. Removed thread timersminor fixes to the guisynced with the project in pypiMinor corrections to allow a stable installimage files relative to the source dirUpdated definition filesDelete respogui-0+unknown directoryfirst commit
Package: respunct
🤗 bert-restore-punctuation-ptbr🇧🇷 easy-to-use package to restore punctuation of portuguese texts.🪄W&B Dashboard🤗HuggingFace PageThis is abert-base-portuguese-casedmodel finetuned for punctuation restoration onWikiLingua.This model is intended for direct use as a punctuation restoration model for the general Portuguese language. Alternatively, you can use this for further fine-tuning on domain-specific texts for punctuation restoration tasks.Model restores the following punctuations --[! ? . , - : ; ' ]The model also restores the upper-casing of words.🤷 UsageBelow is a quick way to use the template.First, install the package.pip install respunctSample python code.fromrespunctimportRestorePunctsmodel=RestorePuncts()model.restore_puncts("""henrique foi no lago pescar com o pedro mais tarde foram para a casa do pedro fritar os peixes""")# output:# Henrique foi no lago pescar com o Pedro. Mais tarde, foram para a casa do Pedro fritar os peixes.🎯 Accuracylabelprecisionrecallf1-scoresupportUpper            - OU0.890.910.9069376None             - OO0.990.980.98857659Full stop/period - .O0.860.930.8960410Comma            - ,O0.850.830.8448608Upper + Comma    - ,U0.730.760.753521Question         - ?O0.680.780.731168Upper + period   - .U0.660.720.691884Upper + colon    - :U0.590.630.61352Colon            - :O0.700.530.602420Question Mark    - ?U0.500.560.5336Upper + Exclam.  - !U0.380.320.3438Exclamation Mark - !O0.300.050.08783Semicolon        - ;O0.350.040.081557Apostrophe       - 'O0.000.000.003Hyphen           - -O0.000.000.003accuracy0.961047818macro avg0.570.540.541047818weighted avg0.960.960.961047818🤙 ContactMaicon Dominguesfor questions, feedback and/or requests for similar models.
Package: respx
RESPX- Mock HTTPX with awesome request patterns and response side effects.DocumentationFull documentation is available atlundberg.github.io/respxQuickStartRESPX is a simple,yet powerful, utility for mocking out theHTTPX,andHTTP Core, libraries.Start bypatchingHTTPX, usingrespx.mock, then add requestroutesto mockresponses.importhttpximportrespxfromhttpximportResponse@respx.mockdeftest_example():my_route=respx.get("https://example.org/").mock(return_value=Response(204))response=httpx.get("https://example.org/")assertmy_route.calledassertresponse.status_code==204Read theUser Guidefor a complete
walk-through.pytest + httpxFor a neaterpytestexperience, RESPX includes arespx_mockfixturefor easyHTTPXmocking, along with an optionalrespxmarkerto fine-tune the mocksettings.importhttpximportpytestdeftest_default(respx_mock):respx_mock.get("https://foo.bar/").mock(return_value=httpx.Response(204))response=httpx.get("https://foo.bar/")assertresponse.status_code==204@pytest.mark.respx(base_url="https://foo.bar")deftest_with_marker(respx_mock):respx_mock.get("/baz/").mock(return_value=httpx.Response(204))response=httpx.get("https://foo.bar/baz/")assertresponse.status_code==204InstallationInstall with pip:$pipinstallrespxRequires Python 3.7+ and HTTPX 0.21+. SeeChangelogfor older HTTPX
compatibility.
Package: respy
Respiration recording analysis toolboxThis library provides python functions to evaluate single belt chest expansion recordings of human adult respiration during passive tasks (standing still, sitting and listening to music, etc.) It includes functions to find and describe features of individual breaths and to evaluate important phases of the respiratory cycle.Fuction for respiration analysis packaged within the module respy.py.Packaged with it, for phase alignment assessment, is the activity analysis toolbook, within the module act.pyDeveloped by Finn Upham 2023This is not yet suitable for the evaluation of respiration during high intensity exertions, or for non-human animals, or for respiration measurements taken with other types of sensors (flow meters, double belts).This toolbox is written in python 3.9 with the following dependencies:
import time
import datetime as dt
import math
import numpy as np
import pandas as pd
import scipy as sc
from scipy.signal import butter,filtfilt
from scipy import interpolate
from scipy.interpolate import interp1dInstallationAdd the package with pip with the code above like:pip install respyExample respiration analysisFind demo application this github account Finn42https://github.com/finn42/respydemoActivity analysis demo (with test package or loaded definitions)https://github.com/finn42/aa_test_package
Package: respyte
resPYteHa, rest -> respite but in python resPYte .. ha..WHYhaven't you ever thought "Hey I'd like a Postman like client, but I really really really don't wanna install node because like... why should I? also I don't need a GUI I have a terminal!"?.. no? Oh well, I have.What is it?super basic TUI for testing REST endpoint. Literally built it in like .. an hour.. I might have spent more time on the name.. (probably bugs)anywho..pip install respyteAuthorizationif your endpoint needs some generated on the fly string; create a python file with the logic, in your request headers for 'Authorization' pass the value of the filename and function seperated like a dot (import string)Color schemesI'm just using asciimatics built in colorschemes
Package: resql
resql: Database For BeginnersQuick Examplesimportspip install resqlimportresqldatabase=resql.ReSql("mydb.db")# default is in :memory:.create_table(name)creates a database table.database.create_table("newtable")# {'status': 'success', 'table': 'newtable'}.insert(key, value, [table])insert into given table.database.insert("key","value")# {'status': 'success'}.all([table])find data from given table.database.all()# [('key','value')].find(key, [table]) or .get(key, [table])find data from given table.database.find("key")# value.wipe([table])wipe complete table.database.wipe()# {'status': 'success'}.run(sql)directly run sql query.database.run("SELECT * FROM table")# cursor.delete(key, [table])delete key from table.database.delete("key")# valuethanks toavonryle#2022for letting me make the python version ofByteDatabase
Package: resqpy
resqpy: Python API for working with RESQML modelsIntroductionresqpyis a pure Python package which provides a programming interface (API) for
reading, writing, and modifying reservoir models in the RESQML format. It gives
you the ability to work with reservoir models programmatically, without having
to know the details of the RESQML standard.The package is written and maintained by bp, and is made available under the MIT
license as a contribution to the open source community.resqpywas created by Andy Beer. For enquires about resqpy, please contact
Emma Nesbit (Emma.Nesbit@uk.bp.com)DocumentationSee the complete package documentation onreadthedocs.About RESQMLRESQML™ is an industry initiative to provide open, non-proprietary data exchange
standards for reservoir characterization, earth and reservoir models. It is
governed by theEnergistics
consortium.Resqpy provides specialized classes for a subset of the RESQML high level object
classes, as described in the docs. Furthermore, not all variations of these
object types are supported; for example, radial IJK grids are not yet catered
for, although the RESQML standard does allow for such grids.It is envisaged that the code base will be expanded to include other classes of
object and more fully cover the options permitted by the RESQML standard.InstallationResqpy can be installed with pip:pipinstallresqpyAlternatively, to install your working copy of the code in "editable" mode:pipinstall-e/path/to/repo/ContributingContributions of all forms are welcome and encouraged! Please feel free to open
issues on the GitHub issue tracker, or submit Pull Requests. Instructions with how to set up your own development environment can be found atDevelopment environment setup. Please read theContributing Guidebefore submitting patches.
Package: resreg
Resreg is a Python package for resampling imbalanced distributions in regression problems.If you find resreg useful, please cite the following article:Gado, J.E., Beckham, G.T., and Payne, C.M (2020). Improving enzyme optimum temperature prediction with resampling strategies and ensemble learning.J. Chem. Inf. Model.60(8), 4098-4107.If you use RO, RU, SMOTER, GN, or WERCS methods, also citeBranco, P., Torgo, L., and Ribeiro, R.P. (2019). Pre-processing approaches for imbalanced distributions in regression.Neurocomputing.343, 76-99.If you use REBAGG, also citeBranco, P., Torgo, L., and Ribeiro, R.P. (2018). REBAGG: Resampled bagging for imbalanced regression. In2nd International Workshop on Learning with Imbalanced Domains: Theory and Applications.pp 67-81.If you use precision, recall, or F1-score for regression, also citeTorgo, L. and Ribeira, R.P. (2009). Precision and recall for regression. InInternational Conference on Discovery Science.pp332-346InstallationPreferrably, install from GitHub source. The use of a virtual environment is strongly advised.git clone https://github.com/jafetgado/resreg.git
cd resreg
pip install -r requirements.txt
python setup.py installOr, install with pip (less preferred)pip install resregPrerequisitesPython 3NumpyScipyPandasScikit-learnUsageA regression dataset (X, y) can be resampled to mitigate the imbalance in the distribution with any of six strategies: random oversampling, random undersampling, SMOTER, Gaussian noise, WERCS, or Rebagg.Random oversampling (RO): randomly oversample rare values selected by the user via a relevance function.Random undersampling (RU): randomly undersample abundant values.SMOTER: randomly undersample abundant values; oversample rare values by interpolation between nearest neighbors.Gaussian noise (GN): randomly undersample abundant values; oversample rare values by adding Gaussian noise.WERCS: resample the dataset by selecting instances using user-specified relevance values as weights.REBAGG: Train an ensemble of Scikit-learn base learners on independently resampled bootstrap subsets of the dataset.See the tutorial for more details.Examplesimportresregfromsklearn.metricsimporttrain_test_splitfromsklearn.metricsimportRandomForestRegressor# Split dataset to training and testing setsX_train,X_test,y_train,y_test=resreg.train_test_split(X,y,test_size=0.25)# Resample training set with random oversamplingrelevance=resreg.sigmoid_relevance(y,cl=None,ch=np.percentile(y,90))X_train,y_train=resreg.random_oversampling(X_train,y_train,relevance,relevance_threshold=0.5,over='balance')# Fit regressor to resampled training setreg=RandomForestRegressor()reg.fit(X_train,y_train)y_pred=reg.predict(X_train,y_train)
Package: ressl
A simpleimportdbased SSL redirector. It accepts requests and redirects
to the SSL version of the same page.Why?I needed something like this for a couple of sites that were hosted on a
shared hosting provider but I wanted to only have one process doing the
SSL redirects.UsageSimply run:resslThis launchesresslon port 8000 using Django’s runserver management
command.For production use it’sstronglyrecommended to instead use a real
WSGI server likegunicornoruWSGI, e.g.:gunicorn resslTo use a different port, use the server’s options, e.g.:gunicorn -b 127.0.0.1:12345 resslYou must set at least one envrionment variable for ressl to work:RESSL_ALLOWED_HOSTS. It’s a comma separated list of host names
ressl is allowed to redirect, e.g.:RESSL_ALLOWED_HOSTS=mycompany.com,myblog.me,myphotos.com gunicorn -b 127.0.0.1:12345 resslDebugging is done by setting the environment variableRESSL_DEBUGto any value:RESSL_DEBUG=yep gunicorn -b 127.0.0.1:12345 resslIf your site runs behind a proxy, you may have to tellresslhow to
figure out if a request is SSL or not. Use theRESSL_PROXY_PROTOCOLenvironment variable to define it (defaults to'HTTP_X_FORWARDED_PROTOCOL'):RESSL_PROXY_PROTOCOL=HTTP_X_FORWARDED_PROTO gunicorn resslFeedbackFeel free to open tickets athttps://github.com/jezdez/ressl/issues.
Say thanks athttps://www.gittip.com/jezdez/.
Package: rest2web
rest2webis a tool for autogenerating wesites, parts of websites or project
documentation. Its main features include :Integrated withdocutils(store
your pages in ReST or HTML)Automatically builds index pages and navigation links (sidebars and
breadcrumbs)Embedded code in templates for unlimited expressivenessFlexible macro system.Uses relative links, so sites can be viewed from the filesystemUnicode internally - so you don’t have to beIncludes features for multiple translations of sitesBuilt-in gallery creator plugin.The basic system is very easy to useLots of powerful (optional) featuresThe content can be stored as HTML, or in ReST format; in which case the HTML
will be generated usingdocutils.rest2webinserts each page into a
template, and automatically creates index pages for sections, and navigation links.There arelotsof changes in the 0.5.0 update. SeeThe Changelogfor
full details.The most important changes include :Addition of ‘Quickstart Guide’rest2web can now build a site from just a directory of ReST documents;
no need to supplyrestindexesor index pages if you don’t want toGlobal uservalues (effectively variables available in every page) can be set
in theConfig Fileor at the command lineLots of newcommand line optionsavailable, including setting
verbosity levels (make rest2web quieter !)NewStandard Functions, especially ‘include’ for better customisation of
templates (e.g. for defining a different footer for some directories)More information available in the namespace and indextree (source filename,
target filename, full url etc)
Package: rest-accounts
=====Rest-Accounts=====Rest-Accounts is a simple app to handle REST implementation of `Django <https://www.djangoproject.com/>`_ authenticationsystem. **rest-accounts** library provides a set of `Django Rest Framework <http://www.django-rest-framework.org/>`_views to handle basic actions such as create-user, create-token,passwordreset and account activation.Detailed documentation is in the "docs" directory.Requirements============To be able to run **rest-accounts** you have to meet following requirements:- Python (3.5, 3.6)- Django (2.0,2.1)- Django REST Framework (3.7, 3.8)Installation============Simply install using ``pip``:.. code-block:: bash$ pip install rest-accountsQuick start-----------1. Add "polls" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [...'accounts',]2. Include the polls URLconf in your project urls.py like this::path('accounts/', include('accounts.urls')),3. Start the development server::python manage.py runserver,4. Manage your accounts
Package: restae
# restae
[![Build Status](https://travis-ci.org/tolsac/restae.svg?branch=master)](https://travis-ci.org/tolsac/restae)
[![PyPI version](https://badge.fury.io/py/restae.svg)](https://badge.fury.io/py/restae)Restae is a framework to build REST APIs within the Google Cloud Platform App Engine. The structure of the framework is highly inspired by Django and Django REST Framework.Please checkout official documentation to get more informationhttps://restae.readthedocs.io/en/latest/import webapp2from google.appengine.ext import ndbfrom restae.handlers import APIModelHandler
from restae.router import Router
from restae.serializers import ModelSerializerclass User(ndb.Model):email = ndb.StringProperty()
first_name = ndb.StringProperty()
last_name = ndb.StringProperty()class UserModelSerializer(ModelSerializer):class Meta:model = User
fields = ‘__all__’class Handler(APIModelHandler):queryset = User.query()
serializer_class = UserModelSerializerrouter = Router()
router.register(‘user’, Handler)app = webapp2.WSGIApplication(router.urls)Will produces those endpointsGET     /user/                         list action
GET     /user                          list action (idem without trailing slash)GET     /user/<user key urlsafe>/      retrieve action
GET     /user/<user key urlsafe>       retrieve action (idem without trailing slash)POST    /user/                         create action
POST    /user                          create action (idem without trailing slash)PUT     /user/<user key urlsafe>/      update action
PUT     /user/<user key urlsafe>       update action (idem without trailing slash)PATCH   /user/<user key urlsafe>/      partial_update action
PATCH   /user/<user key urlsafe>       partial_update action (idem without trailing slash)DELETE  /user/<user key urlsafe>/      destroy action
DELETE  /user/<user key urlsafe>       destroy action (idem without trailing slash)
Package: restalker
StalkerDetectionPhoneEmailBTC WalletETH WalletXMR WalletZEC WalletDASH WalletDOT WalletXRP WalletBNB WalletTW AccountTor URLI2P URLFreenet URLZeronet URLIPFS URLUsernamePasswordBase64OwnNameTelegram URLWhatsapp URLSkype URLPasteMD5SHA1SHA256InstallInrequeriments.txt:git+https://gitlab.com/junquera/stalker.git#egg=stalkerUsageimportstalker# Define which elements we desire# for example Tor URLss=stalker.Stalker(tor=True)elements=s.parse(input_text)
Package: restapi3
# Formatted APIs presentation for testingCan be used as part of RESTful API test framework# Installsudo pip3 install restapi3# Usage1. 'Get' : 'query_strings'1. 'Post' : 'data', 'files', 'json'1. 'Put' : 'data', 'json'1. 'Delete'```Pythonfrom restapi3.api import BaseAPIs, APIclass Video_Model(BaseAPIs):def __init__(self):BaseAPIs.__init__(self, "http://XXXX")self.headers = {'X-Device-ID': 'YA'}@APIdef get_video(self):return {'path': '/v1/A/C/X','headers': self.headers,'method': 'Get','query_strings': {'first_str': 'val space, yee','second_str': 123},'json': {'a': 123,'b': ['123', '234']},'files': {'image': open('/Users/tedchen/Desktop/test.png', 'rb')}}r = Video_Model().get_video() # Return for requests Response objectif r.status_code != 200:raise Exception("Fail to call API")r_json = r.json()```
Package: rest-api-agr
api testThis test is about REST API and AMQP.The control version that I am using is git, so you can find two branches:master: It is a simple use of REST API. To do this, I am using flask, and to register the visits I am using a defined loggerAMQP: It is the same that the previous one, but using a declared queue to register the visits.The possible path are:http://localhost:5000/http://localhost:5000/path_1http://localhost:5000/path_2http://localhost:5000/path_1/sub_path_1http://localhost:5000/unique_visitedhttp://localhost:5000/historyhttp://localhost:5000/close_amqpThere are two endpoints more. It's just for see on the web browserhttp://localhost:5000/path_1/unique_visited_readablehttp://localhost:5000/path_1/history_readableUsing the scriptThe main script is 'app.py' to run it, you must type the following:python app.pyIf you desire mount the server in another ip you should type the following:For instance, at the ip 192.168.1.128python app.py 192.168.1.128To stop the server, you must follow this steps:Go tohttp://localhost:5000/close_amqp. That will execute a close_consuming function to the queue. This step is done on the AMQP branch, not otherwise.Then, you can stop the server using the shortcut CTRL+C