Saravanan666/pypi-org huggingface dataset:
Package: pyramid_ldap
pyramid_ldapprovides LDAP authentication services for your Pyramid
application.  Thanks to the ever-awesomeSurveyMonkeyfor sponsoring the development of this package!See the documentation athttps://docs.pylonsproject.org/projects/pyramid_ldap/en/latest/for more
information.This package will only work with Pyramid 1.3 and later.Installationpyramid_ldapusespyldapwhich in turn requireslibldap2andlibsasl2development headers installed.On Ubuntu 16.04 you can install them using the commandapt-getinstalllibldap2-devlibsasl2-dev.0.3.1.post1 (2018-05-15)version changed in setup.py0.3.1 (2018-05-15)Added wheels license to setup.cfg0.3 (2018-05-15)Python 3 is now supported! This is possible thanks to python-ldap supporting
python 3BREAKING CHANGE: pyramid_ldap now depends on python-ldap >= 3.0, which
supports python 2 and 3. If you upgrade pyramid_ldap without upgrading
python-ldap, you will see failures where python-ldap receives text arguments
instead of bytes. See below for more information.python-ldap >= 3.0 stopped acceptingbytestype arguments for manyLDAPObjectmethods. We now use thepyramid.compat.text_function to
support text arguments for python 2 and 3.In versions 0.2 and lower, invalid LDAP strings passed topyramid_ldap.Connector.authenticatewould raiseldap.FILTER_ERROR. In
0.3 and up we useldap.filter.escape_filter_charsto properly escape these
prior to running the LDAP search. Applications using pyramid_ldap have always
been responsible for making sure theloginvalue fits theldap.login_filter_tplsetting in their application. However, if you relied
onldap.FILTER_ERRORto catch bad username formats (such asCORP\username, where the unescaped\is disallowed in LDAP searches),
note that nowauthenticatewill returnNoneinstead.Use tox for testing against Python 2.7, 3.6, PEP8, coverage and building
docs. Setup Travis CI to run tox. Use pylons-sphinx-themes to fix broken
Read The Docs builds.
See:https://github.com/Pylons/pyramid_ldap/pull/220.2Prevent the use of zero-length password authentication.
See:https://github.com/Pylons/pyramid_ldap/pull/130.1Initial version
Package: pyramid-ldap3
pyramid_ldap3provides LDAP authentication services for your Pyramid
application.  It is a fork of thepyramid_ldappackage with the goal
of eliminating the dependency onpython-ldapandldappool,
replacing it with a dependency onldap3, which is a pure Python package
that supports both Python 2 and Python 3.See the documentation athttps://pyramid-ldap3.readthedocs.io/for more information.0.5Support realms (using different LDAP servers)0.4.2We require Python 2.7 or 3.5 and newer nowFixed and modernized the unit tests0.4.1Avoid fetching a connection from the pool when the result is cached.
This should improve the performance, particularly when the connection
pool is not working properly for some reason. Thanks to Daniel Nilsson.Improved and documented the sample application0.4Made pyramid_ldap3 compatible with Pyramid 1.10We require Pyramid >= 1.4 now0.3.2The login value in the search filter is now properly escaped in the
authenticate() method. Although the bind test in the second stage of the
method ensures the proper password is passed, this could be exploited
to login with a different user name like ‘foo*’ instead of ‘foobar’.
Thanks to Patrick Valsecchi for the bug report.0.3.1Since ldap3 version 2.0.7, schema information is loaded from the server on
every connection. This is normally not needed for authentication and slows
down the connections, so we now disable this feature. If you fetch user or
group attributes and want them to be properly formatted, you must enable this
feature by setting get_info to ‘SCHEMA’ or ‘ALL’ when calling ldap_setup().0.3Adaptations to changes in ldap3 version 2, including changed constant names.This version is intended to support the newer ldap3 versions >= 2.0 only.0.2.5Explicitly requires ldap3 < version 2.0 for compatibility reasons.This version is intended to support the older ldap3 versions < 2.0 only.0.2.4The pool lifetime is now configurable0.2.3Account for renaming of python3-ldap to ldap3Proper unbinding of ConnectionsDo not fill cache if caching has been disabledRelease as source package and universal wheel0.2.2Support server poolsIgnore results without a dn instead of raising an errorEscape special characters when querying for groupsDo not cache invalid responsesAdded documentation on recursive group queries0.2.1Use implicit binding and proper unbinding of connections.0.2Made return values of pyramid_ldap3 compatible with pyramid_ldap.0.1Initial version
Package: pyramid-letsencrypt
pyramid_letsencryptpyramid_letsencryptprovides an easy way to host Let’s Encrypt domain
validation content in your Pyramid project, with just a config entry.This plugin is needed for deployment scenarios where you do not have a
reverse proxy (think Nginx and the lot) in front of your Pyramid app to serve
static content. One of such scenarios is hosting your Pyramid app on Heroku.UsageIncludepyramid_letsencryptin your project and set theletsencrypt.contentsetting:pyramid.includes=...pyramid_letsencryptletsencrypt.content=FOO.BARTesting & developmentIf you havetoxinstalled, run all tests with:$toxTo run only a specific Python environment:$tox-epy35If you don’t havetoxinstalled, you can install the testing requirements,
then run the tests.$python3-mvenvenv$env/bin/pipinstall-e".[testing]"$env/bin/nosetestsChangelog0.1 (2016-07-24)Initial release.
[zupo]
Package: pyramid_listing
Pyramid Listing contains pyramid resources and helpers for pagination
of result lists.A lot ofpyramidapplications that use a (SQL) database need to list the result
of queries. This result list might get quite long and are split into several
pages. This package is offering some help in this.QuickstartLets assume, that you’d like to start a cheese shop and define a simple
database model in the pyramid application:from .meta import Base

class Cheese(Base):
    id = Column(Integer, primary_key=True)
    name = Column(Text, nullable=False)To get a result list including pagination, just create a sub-class frompyramid_listing.SQLAlchemyListingand define aget_base_querymethod:from pyramid_listing import SQLAlchemyListing

class CheeseList(SQLAlchemyListing):

    def get_base_query(self, request)
        return request.dbsession.query(Cheese)In a view you could then use this class to autmagically get paged results:@view_config(route_name='cheeses')
def cheese_list_view(request):
    listing = CheeseList(request)
    return {'cheeses': listing.items(), 'pagination': listing.pages}With this URLs you could access different result pages:shows page 3:https://example.com/cheeses?p=3shows page 1 with 42 items per page:https://example.com/cheeses?p=1&n=42Featuresautomatically calculate pagination information like first, next or last page
frompyradmid.request.GETparametersloading configuration defaults from .ini fileseasily implement ordering and filtering of resultshelper method for creatingpyradmid.request.GETparameters for different
pagesbase class for listings as location aware pyramid resourcesExample ProjectTo see this in action install the sample project fromhttps://github.com/holgi/pyramid_listing_exampleand take a look at it
Package: pyramid-localize
pyramid_localizepyramid_localizeis a pyramid extension providing ready-to-use, translation
functionality for your pyramid based projects. All you need is to add Babel,
and add some configuration. localize provides also a web interface that allows
you to reload translations live, without reloading application.Package resourcesBug tracker:https://github.com/fizyk/pyramid_localize/issuesDocumentation:http://pyramid-localize.readthedocs.org/PyPI:https://pypi.python.org/pypi/pyramid_localizeInstalation:pip install pyramid_localizeor addpyramid_localizeto your project requirements.ReleaseInstall pipenv first, Then run:pipenv run tbump [NEW_VERSION]
Package: pyramid_localroles
Local roles authorization policy for PyramidObjects may be given an__ac_local_roles__property which may be either a
mapping or a callable that returns a mapping from principal id to a list of principals.HeritageThis package is modelled closesly on the local role system in Zope/CMF/Plone.Plone allowedRolesAndUsershttps://github.com/plone/Products.CMFPlone/blob/master/Products/CMFPlone/CatalogTool.pyPlone _getAllLocalRolehttps://github.com/plone/Products.PlonePAS/blob/master/Products/PlonePAS/pas.pyCMF allowedRolesAndUsershttp://svn.zope.org/Products.CMFCore/trunk/Products/CMFCore/CatalogTool.pyCMF _mergedLocalRoleshttp://svn.zope.org/Products.CMFCore/trunk/Products/CMFCore/utils.py
Package: pyramid_lxneng
OverviewPyramid Project ScafloldsCHANGES1.3 - Dec. 6, 2013add buildout to scaffold1.2 - Dec. 18, 2011add pyramid+mongoengine+jinja2 project scaffold1.1 - Dec. 15, 2011update scaffold1.0 - Sept. 10, 2011update scaffold summaryInitial version
Package: pyramid_macauth
This is a Pyramid authenitcation plugin for MAC Access Authentication:http://tools.ietf.org/html/draft-ietf-oauth-v2-http-mac-01To access resources using MAC Access Authentication, the client must have
obtained a set of MAC credentials including an id and secret key.  They use
these credentials to make signed requests to the server.When accessing a protected resource, the server will generate a 401 challenge
response with the scheme “MAC” as follows:> GET /protected_resource HTTP/1.1
> Host: example.com

< HTTP/1.1 401 Unauthorized
< WWW-Authenticate: MACThe client will use their MAC credentials to build a request signature and
include it in the Authorization header like so:> GET /protected_resource HTTP/1.1
> Host: example.com
> Authorization: MAC id="h480djs93hd8",
>                    ts="1336363200",
>                    nonce="dj83hs9s",
>                    mac="bhCQXTVyfj5cmA9uKkPFx1zeOXM="

< HTTP/1.1 200 OK
< Content-Type: text/plain
<
< For your eyes only:  secret data!This plugin uses the tokenlib library for verifying MAC credentials:https://github.com/mozilla-services/tokenlibIf this library does not meet your needs, you can provide a custom callback
function to decode the MAC id token.0.3.0 - 2012-11-27Support for Python3 via source-level compatibility.0.2.0 - 2012-10-04Add encode_mac_id() method as a dual of decode_mac_id().Add “macauth.master_secret” setting to specify the secret used
when encoding/decoding MAC Auth tokens.0.1.1 - 2012-07-11Update tests for compatability with macauthlib>=0.3.0.0.1.0 - 2012-06-15Initial release; based on repoze.who.plugins.macauth codebase.
Package: pyramid_maintenance
Author:Benoît Pineau <beny@sickless.net>Date:2014-02-12What is itpyramid_maintenance is a pyramid tween.This tween gives you the possibility to put an application in maintenance mode (rendering only one specific template for all routes), but let a ‘normal’ access to your application for users who have specific permission(s).How to install itpip install pyramid_maintenanceHow to enable itIf you want to enable pyramid_maintenance tween in your pyramid app, you have to add in your .ini file:pyramid.tweens = pyramid_maintenance.tween_maintenanceAnd define the following settings:# List of permissions (separeted by comma, space, carriage return and/or new line).
# The pyramid app isn't in maintenance mode for people who have one of these permissions.
pyramid_maintenance.permissions = permission1, permission2
# Relative path from defined template location directories.
pyramid_maintenance.template = template.mako0.2Make you strictless on the .ini fileRename role into permission0.1Initial version
Package: pyramid-mako
Makobindings for PyramidThese are bindings for theMako templating systemfor thePyramidweb framework.Documentation forpyramid_mako.1.1.0 (2019-08-18)Add support for Python 3.5, 3.6, 3.7.Requiremako >= 1.1.0.Add a config option forpreprocessor_wants_settings. If set totrue,
thepreprocessorwill be wrapped in a function that invokes the
preprocessor with pyramid’s config settings as the second argument.1.0.2 (2014-04-22)Fix mako.imports so that aslist() does not flatten. See issue #23
(https://github.com/Pylons/pyramid_mako/issues/23)1.0.1 (2014-04-16)Bump the required version of Mako to 0.8 or newer for issue #22 (add
future_imports). If you would like to use an older version of Mako, please
pin your dependency to version 0.3.1 of pyramid_mako.1.0 (2014-04-15)Add new configuration variable for future_imports. See issue #22
(https://github.com/Pylons/pyramid_mako/issues/22)Fix issue #19, whereby pyramid.reload_templates stopped functioning due to
changes in pyramid_mako. The lookup is now completed at template render,
instead of when the factory returns the renderer. See:
(https://github.com/Pylons/pyramid_mako/issues/19)Tuple return values in the form of (‘defname’, {}) are no longer supported,
and will result in a ValueError being raised.Fix an packaging issue whereby *.foo files were not included in the MANIFEST.Caller-relative template lookup is now supported. Any template that fails
to be found in the default search paths will be searched relative to the
caller package.Allow overriding thepyramid.reload_templatesusingmako.reload_templates.Change the way that custom user values passed to the renderer are merged with
the system provided variables. This allows the user to pass in a variable
named ‘context’ and have it correctly override the system provided context,
and THEN get correctly renamed so that Mako doesn’t complain about a variable
being passed in that isn’t allowed due to it being reserved.Drop testing dependency onnose-selecttests.0.3.1 (2013-10-22)Re-enable lazy loading of the mako renderer, allowing the settings
to be configured after pyramid_mako has been included, as long as everything
happens in the same commit.0.3 (2013-10-20)Add a new Configurator directive,config.add_mako_rendererwhich
can be used to add a new mako renderer for a given extension. This
directive accepts an optionalsettings_prefixto load settings and
configuration differently per-renderer as well.Removed the private APIs,IMakoLookup,MakoRendererFactoryHelper,
andrenderer_factory. See the newconfig.add_mako_rendererAPI
for updating offending code.Remove dependency onpyramid.interfaces.ITemplateRendererfrom
Pyramid 1.5.0.2 (2013-09-07)Docs up-to-dateLatest changes pulled from PyramidLatest tests pulled from PyramidAll tests updated to refer to fixtures in pyramid_mako0.1 (2012-03-12)First release. Extracted from Pyramid core.
Package: pyramid_mako_clientscript
Client scripts manager for pyramid_makoUsageYou need to include package “pyramid_mako_clientscript”, then in your mako template,
you can use <code>ClientScript</code> as ClientScript object.### Configuration#### clientscript.mako_var_namedefault: ClientScriptThe name of variable in your mako template#### clientscript.static_dirdefault: NoneRoot directory to use function “static_url”. If it is None, the function will not available in
your mako template.APIsUpdating …
Package: pyramid_mako_starters
pyramid_mako_startersThis package providesPyramidproject scaffolds based onMako templates.Getting Started$ pip install pyramid_mako_starters
$ pcreate --list
$ pcreate --scaffold=<scaffold_name> <project_name>Included scaffoldsalchemy_mako: Pyramid SQLAlchemy project with Mako templatesstarter_mako: Pyramid starter project with Mako templates0.1.2 (2015-01-01)Add GitHub repository URL to setup.pyAdd Trove classifiers to setup.pyAdd BSD license0.1.1 (2015-01-01)Update project description0.1.0 (2015-01-01)Initial version
Package: pyramid_marrowmailer
Pyramid integration package for "A highly efficient and modular mail deliveryframework for Python 2.6+ and 3.1+, formerly TurboMail."Currently it must be used with ``pyramid_tm``, as ``.send()`` only worksif ``transaction``.commit() succeeded.INSTALL=======::$ env/bin/easy_install pyramid_marrowmailerUSAGE=====If you have package installed, you can configure it in Pyramid like always::config.include('pyramid_marrowmailer')All settings ``marrow.mailer`` expects are prefixed with ``mail.``. If you wantto use different prefix, set it with ``pyramid_marrowmailer.prefix``.To see what options ``marrow.mailer`` support, see`the documentation <https://github.com/marrow/marrow.mailer>`_. Note thatboolean options need a ``.on`` suffix. For example ``mail.transport.debug.on = true``.Options that need to be converted to integer, add ``int`` suffix. For example``mail.transport.port.int = 1337``.``pyramid_marrowmailer`` calls ``Mailer.start`` when ``config.include('pyramid_marrowmailer')``is called. ``atexit`` is used to register ``Mailer.stop`` to shutdown when wsgi server will exit.Note that ``pyramid_marrowmailer`` subclasses ``marrow.mailer.Mailer`` to provide support for``transaction``. Class is importable from ``pyramid_marrowmailer.TransactionMailer``.You can accces ``pyramid_marrowmailer.TransactionMailer`` instance in two ways::message = request.mailer.new()...message.send()Or::from pyramid_marrowmailer import get_mailermailer = get_mailer(request)message = mailer.new()...message.send()EXAMPLE=======If we have paster ``.ini`` something like::mail.mode = direct or transactionmail.transport.use = smtpmail.message.author = foobar@foo.comInside a view, we can do::message = request.mailer.new()message.subject = "foobar2"message.to = "foobar2@bar.com"message.plain = "hi"message.send()TESTING=======::$ pip install nose coverage pep8 setuptools-flakes$ ./pre-commit-check.shChangelog=========0.2 (2018-07-11)----------------- #2: mailer without use of transaction[Remco Verhoef]- #3: encoding file fix[Sandro Nardi]- #4: sortKey must be a string under Python 3[nandoflorestan]0.1 (2012-09-17)----------------- Initial release.[Domen Kožar]
Package: pyramid_maze
APyramidplugin
that uses traditional graph traversal algorithms to generate appropriate
routes for resources.One of its main features is that it respects sub-resources.Installpip install pyramid_mazeTestspip install pyramid_maze[tests]
toxLicensepyramid_mazeis an MIT/BSD dual-Licensed library.ContributeCheck for open issues or open a fresh issue to start a discussion around a
feature idea or a bug.Fork the repository on GitHub to start making your changes to the master
branch (or branch off of it).Write a test which shows that the bug was fixed or that the feature
works as expected.Send a pull request and bug the maintainer until it gets merged and
published.Make sure to add yourself to the author’s file insetup.pyand theContributorssection below :)Contributors@mahmoudimus
Package: pyramid_methodrewrite
Thepyramid_methodrewritepackage is a pyramid plugin that adds a
“tween” that rewrites the active HTTP method (as exposed viarequest.method) to the value provided in a HTTP header or
query-string. The main reason for this is to allow clients to fake the
use of HTTP methods beyond GET and POST (such as PUT and DELETE) that
are behind non-compliant proxies, browsers, or other deficient
software that limit which HTTP methods can be sent.It does this by looking for anX-HTTP-Method-OverrideHTTP header
or a_methodparameter in either the query-string or POST data,
and if the value is of the known set of HTTP methods, will override
the active request’s.methodattribute. Both the header name and
parameter name are configurable. The header value, if specified, takes
precedence over the parameter value.For example, the request:GET /path/to/resource?_method=OPTIONS HTTP/1.1Becomes equivalent (from the application’s point of view) to:OPTIONS /path/to/resource HTTP/1.1ProjectHomepage:https://github.com/cadithealth/pyramid_methodrewriteBugs:https://github.com/cadithealth/pyramid_methodrewrite/issuesInstallation$pipinstallpyramid-methodrewriteUsageEnable the tween either in your INI file via:pyramid.includes=pyramid_methodrewriteor in code in your package’s application initialization via:defmain(global_config,**settings):# ...config.include('pyramid_methodrewrite')# ...ConfigurationThe following configuration settings can be set in your application’smainsection:methodrewrite.enabled: a boolean flag to control whether or not
method rewriting should be enabled. Default:True.methodrewrite.on: a list of incoming HTTP methods that will cause
this tween to check the request parameters and potentially make the
change. Defaults to(GET, POST).methodrewrite.header: the name of the header that controls the
requested method. Defaults toX-HTTP-Method-Override. If
present, the header override takes precedence over the parameter
override.methodrewrite.param: the name of the parameter that controls the
requested method. Defaults to_method.methodrewrite.to: list of acceptable HTTP methods that a request
can be rewritten to. If set to empty, no restrictions will be made
on mapping to acceptable or known methods. Defaults topyramid_methodrewrite.HTTP_METHODS.Note that all method names are always converted to upper case.
Package: pyramid-mock-server
[![Build Status](https://img.shields.io/travis/Yelp/pyramid_mock_server.svg)](https://travis-ci.org/Yelp/pyramid_mock_server?branch=master)[![Coverage Status](https://img.shields.io/coveralls/Yelp/pyramid_mock_server.svg)](https://coveralls.io/r/Yelp/pyramid_mock_server)[![Supported Python Versions](https://img.shields.io/pypi/pyversions/pyramid_mock_server.svg)](https://pypi.python.org/pypi/pyramid_mock_server/)[![Latest Released Version](https://img.shields.io/pypi/v/pyramid_mock_server.svg)](https://pypi.python.org/pypi/pyramid_mock_server/)# pyramid_mock_serverAuto-create a pyramid app from an API description and json response files.## DocumentationMore documentation is available at [http://pyramid_mock_server.readthedocs.org](http://pyramid_mock_server.readthedocs.org)## Installation```$ pip install pyramid_mock_server```# DevelopmentCode is documented using [Sphinx](http://www.sphinx-doc.org/en/stable/).## Setup```# Run teststox# Install git pre-commit hookstox -e pre-commit install```## Contributing1. Fork it ( https://github.com/Yelp/pyramid_mock_server )1. Create your feature branch (git checkout -b my-new-feature)1. Add your modifications1. Commit your changes (git commit -m "Add some feature")1. Push to the branch (git push origin my-new-feature)1. Create new Pull Request## License`pyramid_mock_server` is licensed with a [BSD 3-Clause License](https://opensource.org/licenses/BSD-3-Clause).
Package: pyramid_modern
This project is a scaffold for the Pyramid web framework
seeking to incorporate modern front-end
projects into the default starter scaffold.Major IntegrationsHTML5 BoilerplateModernizr(LICENSE)Twitter Bootstrap(LICENSE)RequireJS(LICENSE)Backbone.js(LICENSE)Underscore.js(LICENSE)Handlebars.js(LICENSE)jQuery(LICENSE)1.0.2Updated Twitter Bootstrap to 2.0.21.0.1Updated RequireJS version to 1.0.7Fixed the package js script name (removed extra +’s)1.0Initial version