Saravanan666/pypi-org huggingface dataset:
Package: pyramid_pyctpp2
pyctpp2bindings for PyramidThese are bindings for thepyctpp2 templating systemfor thePyramidweb framework.CHANGES0.2.0 (29.06.2011)Added support of new CTPP2 gettext implementation.0.1.8 (05.05.2011)Added support of reload_templates in PasteDeploy config.0.1.7 (27.04.2011)Added support of global render params.0.1.6 (27.04.2011)Fixed locale support.0.1.5 (26.04.2011)Fixed loading of templates.0.1.4 (20.04.2011)Renamed __LOCALE__ to LOCALE_.0.1.3 (19.04.2011)Added __LOCALE__ rendering variable.0.1.2 (15.04.2011)Fixed i18n support.0.1.1 (15.04.2011)Added i18n support.0.1.0 (29.03.2011)Initial release.
Package: pyramidpypi
This is a very simple pypi-like server written with the pyramid web framework.InstallationDownload the git repository and dopython setup.py install.You can configure the server by editing theproduction.iniand then
just start the http server withpserve production.inior refer to
thepyramid docsfor other deployment options.UsageAdd your local egg server to you~/.pypirc:[distutils]
index-servers =
    pypi
    local

[pypi]
username: pypi_user
password: pypi_pass
repository: http://pypi.python.org/pypi

[pyramidpypi]
username: local_user
password: local_pass
repository: http://127.0.0.1:6543/pypiNotepyramidpypihas no authentication build-in, so username&password is
only relevant if the pypi folder is served from a webserver and that server
has ACLs in place to access the eggs.Now you can simply upload your add with:python setup.py sdist upload -r pyramidpypiAnd to install a package from it, simply do:pip install -i http://127.0.0.1:6543/pypi/ <your package>0.1Initial version
Package: pyramid_pystache
Bindings intoPystachefor thePyramidweb framework.  UseMustachelogic-less
templates in your Pyramid project.Based upon thepyramid_chameleonpackage, so switching from chameleon should be
easy.Seehttp://pyramid-pystache.readthedocs.org/en/latest/for full documentation.0.2 (2015-05-23)Ensure we can build when CHANGES.txt and README.rst cannot be found by
setup.py.0.1 (2014-11-22)Initial version
Package: pyramid_raven
pyramid_ravenintegrates
theraven python clientandraven-jswith aPyramidweb application. It
provides a configuredraven
clientatrequest.ravenand apyramid_layoutpanel calledraven-js.Raven hasbuilt in support for Pyramid
applicationsvia a Paste filter and logging handler.pyramid_ravenis an
alternative integration, useful when:you handle exceptions within your application – i.e.: you register a
catch allExceptionview that renders an error page within your
application, thus preventing errors reaching the WSGI pipelineyou also want to log javascript errorsSetupInstall usingpip:pip install pyramid_ravenConfigure Raven DSN address in the INI configuration of your
application:raven.dsn = https://xxx:yyy@sentry.example.com/1… or provide aSENTRY_DSN environment
variable:SENTRY_DSN=http://public:secret@example.com/1Configure your
applicationto include the package:config.include('pyramid_raven')ConfigureAnyraven.*namespaced settings in your.iniconfiguration
filewill be passed to theraven
clientconstructor – although it’s your responsibility to coerce them to the
right type, e.g.:raven.timeout=3You can augment the (already fairly comprehensive set of) request
attributes sent with the logged server side exceptions by adding space
seperated request property or method names (called with no args) to:pyramid_raven.additional_request_properties=foo bar
pyramid_raven.additional_request_methods=baz bamYou can also override the panel template:pyramid_raven.panel_tmpl=mypkg:templates/foo.tmplUseYou can use it to record server side errors:@view_config(context=Exception)
def system_error_view(context, request):
    """Example catch all exception handler."""

    # Notify sentry.
    request.raven.captureException()

    # XXX E.g.: render error page.
    # ...Client side JavaScript errorsClient side error tracking requires that you havepyramid_layoutconfigured
beforepyramid_raven.And client side errors:<!-- in production, in the head of your main layout, above all other js -->
${panel('raven-js')}E.g.: then in any of your subsequently loaded scripts:throw new Error('This javascript error will be logged.')Note that if you load your scripts from an external domain (e.g.: from a
CDN) then errors will not be logged by many browsers, due to cross
origin security (not leaking information across domains). You can
workaround thisusing CORSbut browser
support is, at the time of writing, wobbly to say the least.TestsTo run the tests,pip install nose coverage mockand e.g.:$ nosetests --with-doctest --with-coverage --cover-tests --cover-package pyramid_raven pyramid_raven
......
Name                      Stmts   Miss  Cover   Missing
-------------------------------------------------------
pyramid_raven                 9      0   100%
pyramid_raven.client         69      0   100%
pyramid_raven.constants       5      0   100%
pyramid_raven.panel          39      0   100%
-------------------------------------------------------
TOTAL                       122      0   100%
----------------------------------------------------------------------
Ran 6 tests in 0.143s

OK
Package: pyramid_rawes
pyramid_rawesThis library helps integraterawesin a pyramid application.InstallationTo install pyramid_rawes, use pippipinstallpyramid_rawesSetupTo activate pyramid_rawesconfig=Configurator()config.include('pyramid_rawes')By default, this will add an instance with all the default parameters
(eg. Elastic Search is assumed to run at localhost:9200). To configure yourrawesinstance, you can use the pyramid settings file.rawes.url=http://localhost:9500Once you have activated pyramid_rawes, arawesinstance is added to the registry.UsageTo get arawesinstance, call get_rawes with the current application registry.
Eg. in a view:frompyramid_rawesimportget_rawesdefsearch(request):ES=get_rawes(request.registry)# execute search# ...You can also get arawesinstance by calling the get_rawes directive on the
config.config=Configurator()config.include('pyramid_rawes')ES=config.get_rawes()History0.5.1 (26-09-2014)If only one url is specified, don’t pass a list to rawes, but a string. This
allows rawes to autodetect paths. (#2)0.5.0 (27-08-2014)Switch to py.test for unit tests.Add ability to specify several ES hosts in the url setting.0.4.1 (15-04-2014)Restore compatibility with zope.interface 4.1.xAdd Coveralls0.4.0 (27-09-2013)Make pyramid_rawes compatible with rawes 0.5.xIntroduce unit test support for py3k (requires rawes 0.5.1)Ability to specify json_encoder and json_decoder as dotted python name.Dropped support for py26.0.3.0 (29-04-2013)Make pyramid_rawes compatible with rawes 0.4.0.0.2.1 (24-04-2013)Fixed dependency on rawes < 0.4.0. Next release will upgrade to rawes 0.4.0.0.2.0 (18-01-2013)Added get_rawes as a config directiveRenamed IRawES to IRawesPep8 fixes0.1.0 (16-01-2013)Initial version
Package: pyramid_recaptcha
pyramid_recaptchapyramid_recaptcha is a deform widget for Pyramid, implementing the google recaptcha service. See (https://developers.google.com/recaptcha/)InstallationGet a public and private API key from google.https://developers.google.com/recaptcha/Addpyramid_recaptchaininstall_requiresin yoursetup.py.
and editproduction.iniin your Pyramid application to add:pyramid.includes =
    ...
    pyramid_recaptcha

pyramid_recaptcha.public_key = your_public_key
pyramid_recaptcha.private_key = your_private_keyAdd the widget to a form:import colander
from pyramid_recaptcha import deferred_recaptcha_widget

class MyForm(colander.MappingSchema):

    captcha = colander.SchemaNode(colander.String(),
                                  title='Verify you are human',
                                  widget=deferred_recaptcha_widget)Bind therequestvariable when rendering the form:MyForm().bind(request=self.request)Changelog1.0.2 (2016-12-08)Force relative import, fixes Python 3 [miohtama]1.0.1 (2016-11-04)Fix adding templates to search path [instification]1.0 (2016-11-04)Initial version [instification]
Package: pyramid-recipe-modwsgi
Introductionpyramid_recipe_modwgiis azc.buildoutrecipe which createmod_wsgientry point for your wsgi application.Package was inspired bycollective.recipe.modwsgi.ContentsIntroductionExampleChangelogContributorsExample[buildout]
parts = modwsgi[modwsgi]
recipe = pyramid-recipe-modwsgi
eggs = pyramid
target = ${buildout:directory}/app.wsgi
config-file = ${buildout:directory}/production.iniChangelog0.1 - 05-10-2012Initial release
[garbas]ContributorsRok Garbas
Package: pyramid-redirect
Introductionpyramid_redirect is a small extension forPyramidto redirect urls before further processing takes place.InstallationJust dopip install pyramid_redirectoreasy_install pyramid_redirectCompatibilitypyramid_redirect runs with pyramid>=1.3 and python>=2.7 and python>=3.5.
Other versions might also work.DocumentationUsage example:def main(global_config, **settings):
    config = Configurator(settings=settings)
    config.include('pyramid_redirect')
    # add url redirecting rules...
    #   first parameter is a regular expression
    #   second parameter is the target url
    config.add_redirect_rule(r'http://example\.com/favicon.ico', r'http://example.com/static/favicon.ico')
    config.add_redirect_rule(
        r'http://example\.com/gallery/(?P<subpath>.*)',
        r'http://example.com/root/%(subpath)s',
        permanent=True,
        headers={'X-Value': 'foo'}
    )
    #
    # ... rest of configuration
    #
    # return WSGI application instance
    return config.make_wsgi_app()See tests for more examples.If you use structlog, add the following configuration setting to your INI file to enable structlog-like logging:pyramid_redirect.structlog = trueReleasingUpdate CHANGES.rst.Update setup.py version.Runbin/longtest.Runbin/mkrelease-dpypi.We’re hiring!At Niteo we regularly contribute back to the Open Source community. If you do too, we’d like to invite you tojoin our team!Changes0.4Support for setting response headers.Format code with Black.Rename niteoweb -> teamniteo.
[am-on]0.3Add option for permanent (301) redirects.
[am-on]0.2Support for structlog.
[zupo]0.1.1Brown bag release.
[zupo]0.1Initial release. Based onhttps://pypi.python.org/pypi/pyramid_rewrite.
[zupo]
Package: pyramid_redis
[pyramid_redis][] is one specific way of integrating [redis-py][] with a
[Pyramid][] web application.### Featuresprovides a redis client atrequest.redisconfigurable per-process blocking connection pool### UsageTo use,pip install pyramid_redis/ addpyramid_redisto your requirements.txt
and then [include][] the package:config.include(‘pyramid_redis’)### ConfigurationRequires one of the the following [INI setting / environment variable][]:redis.url/REDIS_URLredis.unix_socket_path/REDIS_SOCKETPlus optionally looks for:redis.db/REDIS_DBredis.max_connections/REDIS_MAX_CONNECTIONS(only, if configured with URL)[pyramid_redis]:https://github.com/thruflo/pyramid_redis[redis-py]:https://github.com/andymccurdy/redis-py[Pyramid]:http://pypi.python.org/pypi/pyramid[include]:http://docs.pylonsproject.org/projects/pyramid/en/latest/api/config.html#pyramid.config.Configurator.include[INI setting / environment variable]:http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html#adding-a-custom-setting
Package: pyramid_redis_sessions
Overviewpyramid_redis_sessions is a server-side session library for the Pyramid Web
Application Development Framework, using Redis for storage. This library
implements thePyramid ISession interface.Why Use Redis for Your SessionsRedis is fast, widely deployed, and stable. It works best when your data can
fit in memory, but is configurable and still quite fast when you need to sync
to disk. There are plenty of existing benchmarks, opinion pieces, and articles
if you want to learn about its use cases. But forpyramid_redis_sessions, I’m
interested in it specifically for these reasons:it really is bleeping fast (choose your own expletive)it has a very handy built-in mechanism for setting expirations on keysthe watch mechanism is a nice, lightweight alternative to full transactionssession data tends to be important but not mission critical, but if it is…it has configurablepersistenceDocumentationTo get up and running as fast as possible, check out theGetting Startedguide.You can also read thefull documentationon Read the Docs.SupportYou can report bugs or open feature/support requests in theGitHub issue tracker.You can also get live help in #pyramid on irc.freenode.org. My nick is erasmas,
but if I’m not available you can still typically get support from the many other
knowledgeable regulars.Licensepyramid_redis_sessions is available under a FreeBSD-derived license. SeeLICENSE.txtfor details.
Package: pyramid-resourceful
pyramid_resourcefulis a somewhat-opinionated toolkit for building
resourceful Web services and applications on top of the Pyramid Web
framework.Take a look in theexamplesdirectory for self-contained, runnable
examples.Seehttps://pyramid-resourceful.readthedocs.io/for detailed documentation
of interfaces, APIs, and usage.LicenseThis package is provided under the MIT license. See theLICENSEfile
for details.
Package: pyramid-restful-framework
[![pypi-version]][pypi]
[![build-status-image]][travis]
[![Coverage Status](https://coveralls.io/repos/github/danpoland/pyramid-restful-framework/badge.svg?branch=master)](https://coveralls.io/github/danpoland/pyramid-restful-framework?branch=master)# pyramid-restful-framework
A RESTful API framework for Pyramid heavily influenced by [django-rest-framework](https://github.com/encode/django-rest-framework).This project was born from a desire to have DRF’s view patterns on a lighter weight web framework and to replace Django’s ORM with [SQLAlchemy](http://www.sqlalchemy.org/) and DRF Serializers with [marshmallow](https://github.com/marshmallow-code/marshmallow/) Schemas.[Read the docs](http://pyramid-restful-framework.readthedocs.io/en/latest/) to learns more.[build-status-image]:https://travis-ci.org/danpoland/pyramid-restful-framework.svg?branch=master[travis]:https://travis-ci.org/danpoland/pyramid-restful-framework[pypi-version]:https://badge.fury.io/py/pyramid-restful-framework.svg[pypi]:https://pypi.python.org/pypi/pyramid-restful-framework
Package: pyramid_restful_toolkit
=========================pyramid_restful_toolkit=========================A toolkit for RESTful API development in Pyramid.That includes:1. JSON renderer2. HTTP Auth Policy (Basic, Digest)3. Some utilities to work with SQLAlchemy, CQLEngine-----API-----To use it, just.. code-block::pythonconfig.include('pyramid_restful_toolkit')This will do those jobs:1. Add JSON as default renderer with some default adapters. You can accessit through `pyramid_restful_toolkit.default_renderer`2. Add some error handlers for common validators library such as: formencode,colander, schema.If you want all uncaught exception has return as JSON text. Just include tween`pyramid_restful_toolkit.jsonize_uncaught_exception_tween_factory`. This isnormally used in production.ini.HTTP Auth Policy################To use this package, in the app function, just include it.config.include("pyramid_restful_toolkit.auth")In you *development.ini*pyramid_restful_toolkit.auth.get_user_callback = 'path to get user function'You can use built-in model:**For SQLAlchemy**config.include("pyramid_restful_toolkit.auth.models.sqlalchemy")with *development.ini*pyramid_restful_toolkit.auth.dbsession = app.models.DBSessionUse *pyramid_restful_toolkit.auth.models.sqlalchemy.RESTfulUser* to manage your users. Its tablename is *rest_user*.-----------CHANGES LOG-----------1.1.1=====* Add default renderer for datetime.date1.1.0=====* Add python 3 support* Remove auth, move to `pyramid_httpauth (https://github.com/tarzanjw/pyramid_httpauth)`_1.0.3=====* Add default JSON renderer for cqlengine.columns.ValueQuoter, cqlengine.model.Model1.0.2=====* Add default error handler support for deform.ValidationFailure
Package: pyramid_restler
pyramid_restler is a somewhat-opinionated toolkit for building RESTful Web
services and applications on top of the Pyramid framework.Take a look in the examples/ directory for self-contained, runnable
examples.Seehttp://packages.python.org/pyramid_restler/for detailed documentation
of interfaces, APIs, and usage.LicenseThis package is provided under the MIT license. See the LICENSE.txt file for
details.
Package: pyramid_rest_route
Pyramid helper to create restful route.Using URL Dispatch and class base view.At pyramid booststrap```def main(global_config, **settings):config = Configurator(settings=settings)config.include("pyramid_resources")```Registering route with `AppView````config.add_rest_route('app', 'apps', AppView,members={'basic': 'edit','messaging': 'view','admin': 'edit',},collections={'paid': 'admin',},factory=RootFactory)```A simple `AppView` implementation```class AppView(RestView):renderers = {'basic': '/app/basic.mako'}def basic(self):return {'location': 'Render at basic.mako'}@view_config(route_name='paid_app',renderer='json',custom_predicates=(allowed_extension(*['.json']),)permission='read')def paid(self):return {"message": "using json renderer on json extension"}```
Package: pyramid-retry
pyramid_retryis an execution policy for Pyramid that wraps requests and
can retry them a configurable number of times under certain “retryable” error
conditions before indicating a failure to the client.Seehttps://docs.pylonsproject.org/projects/pyramid-retry/en/latest/ordocs/index.rstin this distribution for detailed
documentation.2.1.1 (2020-03-21)Ensure the threadlocals are properly popped if theactivate_hookthrows
an error or the request body fails to read due to a client disconnect.
Seehttps://github.com/Pylons/pyramid_retry/pull/202.1 (2019-09-30)Addexceptionandresponseattributes to thepyramid_retry.IBeforeRetryevent.
Seehttps://github.com/Pylons/pyramid_retry/pull/192.0 (2019-06-06)No longer callinvoke_exception_viewif the policy catches an exception.
If on the last attempt or non-retryable then the exception will now bubble
out of the app and into WSGI middleware.
Seehttps://github.com/Pylons/pyramid_retry/pull/171.0 (2018-10-18)Support Python 3.7.Update the version we require for Pyramid to a non-prerelease so that pip and
other tools don’t accidentally install pre-release software.
Seehttps://github.com/Pylons/pyramid_retry/pull/130.5 (2017-06-19)Update the policy to to track changes in Pyramid 1.9b1. This is an
incompatible change and requires at least Pyramid 1.9b1.
Seehttps://github.com/Pylons/pyramid_retry/pull/110.4 (2017-06-12)Add themark_error_retryablefunction in order to easily mark
certain errors as retryable forpyramid_retryto detect.
Seehttps://github.com/Pylons/pyramid_retry/pull/8Add theIBeforeRetryevent that can be subscribed to be notified
when a retry is about to occur in order to perform cleanup on theenviron. Seehttps://github.com/Pylons/pyramid_retry/pull/90.3 (2017-04-10)Support aretry.activate_hooksetting which can return a per-request
number of retries. Seehttps://github.com/Pylons/pyramid_retry/pull/4Configuration is deferred so that settings may be changed afterconfig.include('pyramid_retry')is invoked until the configurator
is committed. Seehttps://github.com/Pylons/pyramid_retry/pull/4Rename the view predicates tolast_retry_attemptandretryable_error. Seehttps://github.com/Pylons/pyramid_retry/pull/3Renamepyramid_retry.is_exc_retryabletopyramid_retry.is_error_retryable.
Seehttps://github.com/Pylons/pyramid_retry/pull/30.2 (2017-03-02)Change the default attempts to 3 instead of 1.Rename the view predicates tois_last_attemptandis_exc_retryable.Drop support for thetm.attemptssetting.Theretry.attemptssetting is always set now inregistry.settings['retry.attempts']so that apps can inspect it.0.1 (2017-03-01)Initial release.
Package: pyramid_rewrite
Introductionpyramid_rewrite is a small extension forPyramidto rewrite urls before further processing takes place.InstallationJust dopip install pyramid_rewriteoreasy_install pyramid_rewriteCompatibilitypyramid_rewrite runs with pyramid>=1.3 and python>=2.6 and python>=3.2.
Other versions might also work.DocumentationUsage example:def main(global_config, **settings):
    config = Configurator(settings=settings)
    config.include('pyramid_rewrite')
    # add url rewriting rules...
    #   first parameter is a regular expression
    #   second parameter is the target url
    config.add_rewrite_rule(r'/favicon.ico', r'/static/favicon.ico')
    config.add_rewrite_rule(r'/gallery/(?P<subpath>.*)',
                            r'/root/%(subpath)s')
    #
    # ... rest of configuration
    #
    # return WSGI application instance
    return config.make_wsgi_app()Better documentation might follow.Changes0.2Added unit testsChanged logging level0.1Initial version. Working.
Package: pyramid_royal
Royal is a pyramid extension which eases writing RESTful web applications.Documentation onread the docsSource code ongithubChangelog0.8.10 (2016-02-02)0.8.9 (2016-02-02)Allow HTTP method overrides for all methods specified in RFC 7232 and
5789 (PATCH).0.8.8 (2015-11-03)Permit method override for GET.0.8.7 (2015-08-05)Make DELETE method return 204 No Content0.8.6 (2015-04-15)Make dummy testing resources derive from dict.0.8.5 (2015-03-11)Fixroyal.testing.0.8.3 (2015-03-10)Breaking change: Remove.parentandchildrenproperty onroyal.resource.BaseAddfind_itemandfind_collectionUpdate interfaces.0.8.2 (2015-03-06)Fix a bug with 2 items being adjacent in hierarchy. The child item was not
registered on the good parent.Add a default implementation in sqla extension forItem.replace.0.8.1 (2015-03-05)Add sqlalchemy extension.Change the way links are added to resource representation.Fix issue #6: HTTP 500 error when using POST verb on Item resources.Breaking changes:royal.resource:Baseconstructor now takes request as third positional
argument.royal.resource:Base.resource_urlandBase.urlmethod signatures change.Addpresourcesscript to print all resources declared with royal.Add declarative configuration decoratorscollection_config&item_config.No more utility class: resource configuration uses pyramid introspectables to
store configuration rather than utility internal dict.Moveroyal.utilityto ` royal.directives`0.7.4Add update_schema and replace_schema to be symetric with create_schema.0.7.3Started some documentation.Set default root factory toroyal.resource.RootException view which catches all exception is only added whendebug=falsein application settings.0.7.2Depends on pyramid without any version spec.0.7.1Add a defaultmultipart/form-datadeserializer.No more views onvoluptuous.MultipleInvalidasvoluptuoushas been
removed from dependencies.0.7Breaking changes:Query params are not anymore passed to resources methods
via**kwargsbut as adict. TBD: use amultidict.Working on return value ofCollection.createmethod. TBD: Add adapters
to permit multiple way of calling resource methods from view and adapt
rendereringAddrenderer_adapterdecorator to register adapter viaconfig.scan.Add renderer adapter to configuration introspectables underRenderer
adapterscategory.Addadd_deserializerconfig directive and
decoratorroyal.deserializer_configto add deserializers for specific
content_type.Remove decoratorlog_error_dictin favor of pyramid_exclog extension.0.6Breaking changes: TBDMove onctuous away in favor of voluptuousAdded method tunneling to permitPUT, andDELETEviaPOSTmethods.TBD: adapt how request body is parsed.0.5.1AddBase.__getitem__which gets children fromself.children0.5Breaking change: Pages parameters are not anymore page & page_size but offset
and limit. It is more developer and db friendly.0.2onctuous schema checking on resource creation.0.1Initial versionroyal renderer able to return bson or json.royal.includeme adds royal renderer and views.royal.resource.PaginatedResult which permits Collection.index to return
paginated results.royal.views with default views for Collection and Resource.CollectionView.index does automatic pagination.