Saravanan666/pypi-org huggingface dataset:
Package: bestvarspk
Best Variables for classification and regression modelsThe objective of this packege is to simplify the usage of methods to make feature selection.The Packagebestvarspkis a Python module for machine learning built based on top of sklearn feature_selection and is distributed under the  license.The project was started in 2020 by Gutelvam as a Udacity Nanodegree of project.InstallationDependenciesbestvars_pk requires:-Python (>= 3.6)

    -NumPy (>= 1.13.3)

    -SciPy (>= 0.19.1)

    -joblib (>= 0.11)

    -threadpoolctl (>= 2.0.0)

    -scikit-learn (>=0.23.1)

    -matplotlib(>=3.2.2)

    -seaborn(>=0.10.1)

    -pandas(>=1.0.3)User installationIf you already have a working installation of scikit-learn, the easiest way to install is using pip:!pip install bestvarspkHow to use1. Instantiate an objet 'Selection'
            from bestvarspk.Variables_selection import Selection
            obj = Selecton(df, target)where:dfis a dataframetargetis a string of target column name2. Use methods available.

            obj.corr_features()

            obj.importance_features()

            obj.rfe_features()obs: Anytime you can check for help(?) to check docstrings.
Package: besuto
this is library nade for besuto and made by besuto
REFERENCEMTCNN   - used for face detection
- source :https://github.com/ipazc/mtcnnVGGFACE - used for face feature extraction
- papers :https://www.robots.ox.ac.uk/~vgg/publications/2018/Cao18/cao18.pdf- source :https://github.com/rcmalli/keras-vggface?fbclid=IwAR0wOMKDbjdQjNULYziO78RZM3dBkRJ4vCgjyZcVXffbgQYO9Ui4QDAhTIwUPDATE LOGbesuto 0.0.1 unfinished release to learn Pypi upload machanicbesuto 0.0.2 realease the image Augmentation function (for my school project) and face extracttion which use pretrain model in mtcnn librarybesuto 0.0.3 realease the pipeline for training all VggFace model from the paperhttps://www.robots.ox.ac.uk/~vgg/publications/2015/Parkhi15/parkhi15.pdfhttps://www.robots.ox.ac.uk/~vgg/publications/2018/Cao18/cao18.pdfbesuto 0.0.4 fix bug that keras_application is not foundbesuto 0.0.5    - fix corrupted ui in load_face_dataset function
- fix functional type error in trains functionbesuto 0.0.6    - fix loop massage problem in Augmentation (can be solve by add %%capture at the top of that cell in jupyter notebook)
- write library doc and instruction (writed some of them)besuto 0.0.7    - add faces feature extractor in augment modulebesuto 0.0.8    - 0.0.7 but not bug
Package: bet365
Bet365-ScraperThis is a pretty simple Bet365 scraper using Selenium + Beautiful Soup. It can get the odds of any player from any currently running matchRequirements:beautifulsoup4seleniumsoupsieveurllib3While the latest versions of all of these should be compatible, using the versions listed in the req.txt file are guaranteed to workInstallation instructionsBuilding from sourceTo install from source, simply clone this repository and then runpython bet365/setup.py installFor WindowsInstall Chrome Beta using the install file in the repoInstall dependencies by runningpip install -r req.txtInclude the get_data function by havingfrom scrape import *in your programUse theget_odds_datafunction to retrieve data from any currently running game. Add True or False to whether to include debug info. to have certain commands printAlternatively you can just install the scraper using pip by runningpython -m pip install bet365
Package: betabernsum
betabernsumSums of beta-bernoulli variablesInstallationFor Python:pip3installbetabernsumorpip3 install --user betabernsumFor R:library(devtools)install_github("anthony-aylward/betabernsum")ExamplesIn Python:frombetabernsumimportbbs_pmf,bbs_cdf,bbs_testhelp(bbs_pmf)help(bbs_cdf)help(bbs_test)bbs_pmf(5,[30,12],[4,5],[6,5],independent=False)bbs_cdf(5,[30,12],[4,5],[6,5],independent=False)bbs_test(5,[30,12],[4,5],[6,5],independent=False)In R:library(betabernsum)help(dbbs)help(pbbs)help(bbs_test)dbbs(5,c(30,12),shape1=c(4,5),shape2=c(6,5),independent=FALSE)pbbs(5,c(30,12),shape1=c(4,5),shape2=c(6,5),independent=FALSE)bbs_test(5,c(30,12),shape1=c(4,5),shape2=c(6,5),independent=FALSE)
Package: betacal
Beta calibration - Python packageThis package provides a BetaCalibration class which allows the user to fit any of our three proposed beta calibration models. For the paper and tutorials, checkhttps://betacal.github.io/.DependenciesNumpy- NumPy is the fundamental package for scientific computing with
Python.Scikit-learn- Machine Learning in Python.UsageInstall from pip using "pip install betacal"Alternatively, download from the repository, cd to the folder and use "pip install ."Once installed, import the package using "import betacal"UnittestCreate a virtual environment with the necessary dependenciesvirtualenv venv
. ./venv/bin/activate
pip install -r requirements.txtand then run the script runtests.shbash runtests.shLicenseMIT
Package: beta-code
Beta Code Converter for PythonConverts Greek Beta Code to Greek characters and vice versa.Installationpip install beta-code(See project onPyPI)Usageimportbeta_codebeta_code.greek_to_beta_code(u'χαῖρε ὦ κόσμε')# => 'xai=re w)= ko/sme'beta_code.beta_code_to_greek(u'mh=nin a)/eide qea\\*phlhi+a/dew *)axilh=os')# => 'μῆνιν ἄειδε θεὰ Πηληϊάδεω Ἀχιλῆος'With additional mappingsbeta_code.beta_code_to_greek(u'f2a/nac',custom_map={u'f2':u'ϝ'})# => 'ϝάναξ'Testspython -m unittest tests/test_beta_code.pyUpdating JSONgitsubtreepull--prefixbeta_code/vendor/beta-code-json/https://github.com/perseids-tools/beta-code-jsonmaster--squashIn the case of a merge conflict:gitcheckout--theirsvendor/beta-code-json/
gitaddvendor/beta-code-json
gitcommitPublishingInstall dependencies:python3-mvenvvenv
../venv/bin/activate
pip3install-rrequirements.txtBump version insetup.pyCommit and push to GitHubOn GitHub, create a new releaseRunpip3 install wheelRunpython3 setup.py sdist bdist_wheelRunpython3 -m twine upload dist/*NotesFor the mappings between Beta Code and Unicode, seehttps://github.com/perseids-tools/beta-code-json.
Package: betagr-common
BetAgr-common - base async api-clients for betagr-project wrote with aiohttpA set of tools, utilities and base async api-classes for maintaining the infrastructure of betagr-project services.Requirementspython>=3.6aiohttp>=3.6Usagepip install betagr-common

# or only for user
python -m pip install --user betagr-common

# or for pipenv
pipenv install betagr-commonBetAgr-common ships with two base api-classes: BaseClient and BaseClientSSO.BaseClientIt is a base class provides a basic REST API methods which are simple wrapper over a aiohttp.request.
Сlass also implements basic logging of client requests and handling cookies within one client, since the connection session exists only during one request.Api-clients of each  services should be inherited from the BaseClient.fromcommon.rest_client.base_clientimportBaseClientclassBakeryClient(BaseClient):_host='www.some-bakery.com'_port=8000def__init__(self,headers):super().__init__(headers=headers)asyncdefbake_bread(self,bread_flour='first-grade'):body={'flour':bread_flour}api_uri='api/bake-bread'returnawaitself.post(api_uri,body=body)importasyncioimportBakeryClientdb_orders={'John Doe':{'flour':'first-grade'},'Anderson':{'flour':'second-grade'}}asyncdefmain():asyncforclientindb_orders:custom_headers={'Content-Type':'application/json'}bakery_client=BakeryClient(custom_headers)bread_flour_type=db_orders[client].get('flour')response=awaitbakery_client.bake_bread(bread_flour_type)assertresponse.status==200# bread was bake!loop=asyncio.get_event_loop()loop.run_until_complete(main())BaseClientSSOApi abstraction for sso-client with the release of basic methods:sign_upsign_insign_outreset_passwordimportosimportasynciofromcommon.rest_client.base_client_ssoimportBaseClientSSOasyncdefmain():# env should contains 'SSO_API_HOST' and 'SSO_API_PORT' variablesheaders={'Content-Type':'application/x-www-form-urlencoded'}sso_client=BaseClientSSO(headers)body={'username':'john doe','password':'qwerty'}response=awaitsso_client.sign_up(body)print(response)# ClientResponse -> defaults# {'json': {},#  'status': 200,#  'headers': {'Content-Type: "application/json"},#  'raw_content': b''}body={'username':'john doe','password':'qwerty'}response=awaitsso_client.sign_in(body)print(response)body={'username':'john doe','old_password':'qwerty','new_password':'qwerty'}response=awaitsso_client.reset_password(body)print(response)response=awaitsso_client.sign_out()print(response)loop=asyncio.get_event_loop()loop.run_until_complete(main())Environment variables are used to determine url/connection parameters in base classes:env variablevalueSSO_API_HOSTlocalhost,www.example.comSSO_API_PORT8080PARSER_API_HOSTlocalhost,www.example.comPARSER_API_PORT8080AGGREGATOR_API_HOSTlocalhost,www.example.comAGGREGATOR_API_PORT8080COMMON_API_CLIENT_LOGGING_LEVEL40see numeric represents logging level here:https://docs.python.org/3/library/logging.html#logging-levels
Package: betahaus.contextcloud
Betahaus ContextCloudIntroductionUsageCaveatsFound a bug?ContributorsIntroductionA simple tag cloud or list that shows what’s in this context. It’s only usable
for folderish things including collections. If you combine several portlets
it will work like a facet navigation. It doesn’t require any customisation or
customized listing templates - it should just work with whatever you have in place
or the Plone default ones.The tag cloud uses the power law to normalize sizes. In most usecases when tags
are folksonomy-based it should cause the most used tags to have a bit less weight
proportionally to the other tags.The package itself consists of an adapter that does all computing (to make it simple
to use it for other things) and a portlet that displays stuff.UsageInstall the product (in buildout and in Plone)Go to manage portlets and select “Context cloud portlet”.Catalog index is the index to build results from. It has to exist as a column
in the portal catalog. (It won’t be selectable here if it doesn’t)Cloud shows results as a tag cloud.List shows it as a list with the number of occurences to the right.Level is only used for tag clouds. It sets how many different levels (sizes)
it should have. If you use more than 5 you need to add css for it. (see the css file)The portlet will show up in any folderish context with at least 1 result for the
catalog index you selected.That’s it.CaveatsI didn’t want to add any caching at this stage. It doesn’t make sense unless you have
an enormous amount of hits and content, and in that case you’ll have Varnish or something
else in front anyway, right?Found a bug?Please contact the author at robin (at) betahaus.netIf you want to participate in development of this or any other project that Betahaus does,
check outhttp://dev.betahaus.net.ContributorsRobin Harms Oredsson, Author / Swedish translation.Veronika Menjoun, Russian translation.FOJO, FundingMade byBetahaus- if you want to contribute, visithttp://dev.betahaus.netChangelog0.1b (2011-03-22)Initial release
Package: betahaus.debug
What is betahaus.debug?A simple utility function for adding a external pdb script that is accessible via url everywhere in the site.
This does not add any post-mortem debugger. If you want that use theProducts.PDBDebugMode.betahaus.debugonly works when in DevelopmentMode.Installationbuildout:addbetahaus.debugentries to eggs and zcml in the appropriate buildout configuration file.re-run buildout.Install via portal_quickinstaller or Site Setup in plone to get the External methodUsageAdd/pdbto a url and you will get a python debugger on that contenttype whereselfis the context.Remember to remove this when putting in production.Enjoy!Change history0.1 (2009-08-29)Initial release (mlundwall)ContributorsMartin Lundwall, Author
Package: betahaus.livesearch
IntroductionThis is a replacement for the standard Plone livesearch. It acts and looks exactly the same as the standard one,
the only difference is that it is implemented using a browser template ad view instead of the nasty skins script that is shipped.The reason for making this product is that you easier can change the layout of the livesearch.All you need to do is to install and you will not notice any difference.Installationbuildout:Addbetahaus.livesearchentries to eggs and zcml in the appropriate buildout configuration file. (typcially buildout.cfg)Re-run buildout. (./bin/buildout)Restart the instanceInstall via portal_quickinstaller or Site Setup in ploneChangelog0.1b2 (2010-04-07)Fixed bug with multi word search [mlundwall]0.1b (2010-02-11)Initial release
Package: betahaus.portlet.maillist
OverviewSubscribe or unsubscribe from maillistsThis portlet only sends a mail to a specified address with two different messages in the subject.
Either subscribe or unsubscribe (both of these can easily be changed to something else)The from address is the address specified by the user in the portlet, to simulate that it actually
is the user that is sending the mail.This is the way Mailman handle subscriptions which is one of many possible backends.Changelog for betahaus.portlet.maillist(name of developer listed in brackets)betahaus.portlet.maillist - 0.1 (2008-11-18)First release with basic functionality. (mlundwall)Initial package structure.
[zopeskel]
Package: betahaus.pyracont
This packages main goal is to provide:Basic ZODB-based content type skeleton forPyramid.Dynamic content types that can be adapted to pretty much suit most purposes.Ability to make highly pluggable components sutable for frameworks.Easy integration withcolander.This package currently lacks proper documentation, but should be pretty stable regarding API changes since it’s used
in production in other open source projects.Possible TODOs:Custom field adapters instead of custom field types. No point in storing persistent content types unless needed.With field adapters content types don’t need special settings.This might require an introspection tool, otherwise it might appear to “magical”.A way to transform input before it’s saved.0.3b - 2015-03-27suggest_name method now handles non-ascii better. This changed
the dependencies from ‘slugify’ to ‘awesome-slugify’.0.2b - 2014-02-11Possibility to bind zope interfaces to schemas so objectevents will work as expected.
This enables subscribers for schemas.Factory names can now be omitted - the class name is used in that case.Python 3 should work now.0.1a4 - 2012-09-05New method to make sure new objects aren’t stored with the same name as an
existing view. Before it was possible to name objects the same way as views. [robinharms]0.1a3 - 2012-02-14Typo on code caused description to be stored under the wrong attribute of
the schema when using createSchema. [robinharms]0.1a2 - 2012-02-14If title and descriptions are specified for the schema factory, also transfer
them to the schema itself. (Colander Schemas are transfered to Schema nodes on
construction, which enables title and description) [sassur]0.1a1 - 2011-10-14Exception raised when custom accessors or mutators created a loop. [robinharms]Exposing field_storage as a public attribute should remove the need to
the switch to override custom accessors / mutators. So it has been removed.
Hopefully this will make it easier to use. [robinharms]0.1aInitial version
Package: betaincder
WelcomeThis tiny library contains some C/Cython code for calculatingthe (normalized) incomplete Beta function -betaincthe first derivatives (w.r.t. shape parameters) of the incomplete Beta function
via the INBEDER algorithmthe digamma (Psi) function, the beta function and its logarithm (betaln)APIbeta(p, q): Calculate the Beta function, whereB(p,q) = Gamma(p)*Gamma(q)/Gamma(p+q)betaln(p, q): Calculate the logarithm of the Beta function, wherebetaln(p,q) = ln B(p,q) = ln Gamma(p) + ln Gamma(q) - ln Gamma(p+q)betainc(x, p, q): Calculate the regularized incomplete Beta function, wherebetainc(x, p, q) = I_x(p, q). Seehttp://mathworld.wolfram.com/IncompleteBetaFunction.htmlbetaincderp(x, p, q): Compute the first derivative of the regularized incomplete Beta function with respect to the first shape parameterp.betaincderq(x, p, q): First derivative of the regularized incomplete Beta function with respect to the second shape parameterq.digamma(x): The digamma function. Seehttp://mathworld.wolfram.com/DigammaFunction.html.Installation$pipinstallbetaincderUsageThe functions can be invoked from python, orcimported from Cython.frombetaincderimportbetainc,betaincderp,betaincderqprintbetaincderq(.5,10,10)or%%cythonfrombetaincder.c.betaincdercimportdigamma,betaln,betainc,betaincderqprintbetaincderq(.5,10,10)ReferencesRobinson-Cox, J. F., & Boik, R. J. (1998). Derivatives of the Incomplete Beta Function. Journal of Statistical Software, 3(01).Bernardo, Jose M. "Algorithm AS 103: Psi (digamma) function." Journal of the Royal Statistical Society. Series C (Applied Statistics) 25.3 (1976): 315-317.
Package: betamax
Betamax is aVCRimitation for requests. This will make mocking out requests
much easier. It is tested onTravis CI.Put in a more humorous way: “Betamax records your HTTP interactions so the NSA
does not have to.”Example UsefrombetamaximportBetamaxfromrequestsimportSessionfromunittestimportTestCasewithBetamax.configure()asconfig:config.cassette_library_dir='tests/fixtures/cassettes'classTestGitHubAPI(TestCase):defsetUp(self):self.session=Session()self.headers.update(...)# Set the cassette in a line other than the context declarationdeftest_user(self):withBetamax(self.session)asvcr:vcr.use_cassette('user')resp=self.session.get('https://api.github.com/user',auth=('user','pass'))assertresp.json()['login']isnotNone# Set the cassette in line with the context declarationdeftest_repo(self):withBetamax(self.session).use_cassette('repo'):resp=self.session.get('https://api.github.com/repos/sigmavirus24/github3.py')assertresp.json()['owner']!={}What does it even do?If you are unfamiliar withVCR, you might need a better explanation of what
Betamax does.Betamax intercepts every request you make and attempts to find a matching
request that has already been intercepted and recorded. Two things can then
happen:If there is a matching request, it will return the response that is
associated with it.If there isnota matching request and it is allowed to record new
responses, it will make the request, record the response and return the
response.Recorded requests and corresponding responses - also known as interactions -
are stored in files called cassettes. (An example cassette can be seen in
theexamples section of the documentation.) The directory you store your
cassettes in is called your library, or yourcassette library.VCR Cassette CompatibilityBetamax can use any VCR-recorded cassette as of this point in time. The only
caveat is that python-requests returns a URL on each response. VCR does not
store that in a cassette now but we will. Any VCR-recorded cassette used to
playback a response will unfortunately not have a URL attribute on responses
that are returned. This is a minor annoyance but not something that can be
fixed.
Package: betamax-matchers
Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.Description: betamax_matchers================Experimental set of Matchers for `Betamax<https://github.com/sigmavirus24/betamax>`_ that may possibly end up in themain package.JSON Body Matcher-----------------Usage:.. code-block:: pythonfrom betamax_matchers.json_body import JSONBodyMatcherfrom betamax import BetamaxBetamax.register_request_matcher(JSONBodyMatcher)Form URL Encoded Body Matcher-----------------------------Usage:.. code-block:: pythonfrom betamax_matchers.form_urlencoded import URLEncodedBodyMatcherfrom betamax import BetamaxBetamax.register_request_matcher(URLEncodedBodyMatcher)Multipart Form Data Body Matcher--------------------------------Usage:.. code-block:: pythonfrom betamax_matchers.multipart import MultipartFormDataBodyMatcherfrom betamax import BetamaxBetamax.register_request_matcher(MultipartFormDataBodyMatcher)0.4.0 - 2017-01-16------------------- Remove support for python 3.2.- Change json-body matcher to pass when the recorded request has the samecontent type as the issued request, and the content type is not json.- Update ``JSONBodyMatcher`` to work with requests 2.11+.0.3.0 - 2016-04-16------------------- Update for breaking changes in ``betamax`` 0.6.00.2.0 - 2015-06-17------------------- Add ``MultipartFormDataBodyMatcher``0.1.0 - 2014-08-20------------------- Add ``JSONBodyMatcher``- Add ``URLEncodedBodyMatcher``Platform: UNKNOWNClassifier: Development Status :: 4 - BetaClassifier: License :: OSI ApprovedClassifier: Intended Audience :: DevelopersClassifier: Programming Language :: PythonClassifier: Programming Language :: Python :: 2Classifier: Programming Language :: Python :: 2.6Classifier: Programming Language :: Python :: 2.7Classifier: Programming Language :: Python :: 3Classifier: Programming Language :: Python :: 3.3Classifier: Programming Language :: Python :: 3.4Classifier: Programming Language :: Python :: 3.5Classifier: Programming Language :: Python :: Implementation :: CPython
Package: betamax-serializers
Experimental set of Serializers forBetamaxthat may possibly end up in the
main package.Pretty JSON SerializerUsage:frombetamax_serializers.pretty_jsonimportPrettyJSONSerializerfrombetamaximportBetamaximportrequestsBetamax.register_serializer(PrettyJSONSerializer)session=requests.Session()recorder=Betamax(session)withrecorder.use_cassette('testpretty',serialize_with='prettyjson'):session.request(method=method,url=url,...)YAML 1.1 SerializerTo use the YAML 1.1 Serializer, youmustensure that you havepyyamlinstalled either by usingbetamax_serializer[yaml11] >= 0.2.0as your
dependency or by explicity addingPyYAMLto your list of dependencies.Usage:frombetamaximportBetamaxfrombetamax_serializers.yaml11importYAMLSerializerimportrequestsBetamax.register_serializer(YAMLSerializer)session=requests.Session()recorder=Betamax(session)withrecorder.use_cassette('testyaml',serialize_with='yaml11'):session.request(method=method,url=url,...)0.2.1 - 2019-07-27Fix bug inYAMLSerializerto work with new files0.2.0 - 2016-04-12AddYAMLSerializerandyaml11extra for installation0.1.0 - 2015-06-21AddPrettyJSONSerializer