Saravanan666/pypi-org huggingface dataset:
Package: pyramid_filterwarnings
Getting StartedThe aim of this project is to provide a generic way to configure pythonwarnings.filterwarnings.
Python warnings can be configured via Environment variable, Python interpreter
argument, or directly in the code. This plugin provides to Pyramid application
a clean way to configure the warning level via its configuration file.ConfigurationSet the pyramid_filterwarnings plugin from in the Pyramid ini file then
configure the level.pyramid.includes =
    pyramid_filterwarnings
    ... your other plugins ...

# configure the warning level, default is ignore
filterwarnings.action = ignoreNoteYou should set the filterwarnings on top of the configuration if you want
to catch plugins warnings. You should also set the level to error for your
developement environment to fix the warning as soon as possible.It is also possible to setcategory, module and message, and do many rules.# Other optionals configurations keys
# filterwarnings.category = DeprecationWarning
# filterwarnings.module = pyramid\..*

# Add other rules
filterwarnings.1.action = once
filterwarnings.1.category = DeprecationWarning
filterwarnings.1.module = sqlalchemy\..*

filterwarnings.2.action = ignore
filterwarnings.2.module = pyramid_jinja2\.*
filterwarnings.2.message = reload_templates setting is deprecated

# and more if necessary...
Package: pyramid_flamegraph
This package provides a Pyramid tween to generate aflamegraphimage for every request.developed on the basis ofpyramid_pycallgraph implemented by Andreas Kaiseranddjdt-flamegraph implemented by Bo Lopker.Installation$pipinstall--upgradegit+https://gitlab.com/hhatto/pyramid_flamegraphUsagepyramid.includes =
    pyramid_flamegraphConfigurationflamegraph.interval = 0.005     # default: 0.001
flamegraph.color = aqua         # default: hot
Package: pyramid-flash-message
Pyramid Flash MessageSmall tool to add and show flash messagesusagefor add new message to flash message queuefrompyramid_flash_messageimportMessageQueueflash_message=MessageQueue()flash_message.add('some message')flash_message.add('danger message',message_type='danger')flash_message.add('danger message',message_type=MessageQueue.danger)by default in instant of MessageQueue added to request object so you can use request object without importing MessageQueuerequest.flash_message.add('some message')request.flash_message.add('danger message',message_type='danger')request.flash_message.add('danger message',message_type=request.flash_message.danger)you also can pass translation mapping and translation domain to it when you add new message or create new instance of MessageQueue.request.flash_message.add('some message ${var1}',mapping={'var1':123})request.flash_message.add('some message',domain='some_domain')pyramid_flash_message use default pyramid i18n system. so you can passmappingarg to use in translation.
also if you like to show source of message you can usesourcearg.now for show flash message you can useflash_messagepanel in your templatespanel('flash_message', per_page=20, read=False)for instance in jinja2 templates{{ panel('flash_message', per_page=20, read=False) }}there is also flash_message view than getpageandper_pageandreadparams for paged view of messages.
this params will get via GET method so you can use it via<ahref="{{ request.route_url('flash_message') }}">View all messages</a><ahref="{{ request.route_url('flash_message') }}?read=true">View and mark read</a>Installationfor installing pyrmaid_flash_messagepipinstallpyramid_flash_messageadd then add this package to your applicationpyramid.includes=pyramid_flash_messageorconfig.include('pyramid_flash_message')SupportYou can useproject issue pageto submit your issueChangesv 0.2.3handle error in session don’t foundv 0.2.2get and use domain in translationv 0.2.1add message countsome bugfixv 0.2some bugfix and documentationv 0.1.6some bugfix (now you can use it)v 0.1refactor as packagesome bugfixv 0.0init project and create skeleton of it
Package: pyramid_force_https
Introductionpyramid_force_https is atweenforPyramidto redirect all HTTP requests to HTTPS.InstallationJust dopip install pyramid_force_httpsoreasy_install pyramid_force_httpsCompatibilitypyramid_force_https runs with pyramid>=1.7 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_force_https')
    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_force_https.structlog = trueReleasingUpdate CHANGES.rst.Update setup.py version.Runbin/longtest.Runbin/mkrelease-dpypi.Changes0.1.1Better structlog variable names.
[zupo]0.1Initial release.
[zupo]
Package: pyramid_formalchemy
This module provide a set of utilities for usingFormAlchemywith PyramidHave a look at theOnline demoor at theDocumentationBug and feature request must be reported on thegithub trackerCHANGES0.4.4 (2013-04-22)address pyramid compatibility issue #19 (vangheem)0.4.3 (2011-12-26)0.4.2 (2011-11-03)Pyramid 1.1 compatibility (amleczko)Adding IBeforeListingRenderEvent (amleczko)Fix problem with formalchemy_model_view registration (amleczko)0.4.1 (2011-07-01)Fix documentation urls (gawel)Adding fallback for missing model_class on request (gawel)Adding missing templates to egg (ConceitedCode, do3cc)0.4 - aka CRUD Sprint (hosted by Red Turtle) releaseview customisation per model (amleczko)autocomplete renderer for relations (amleczko)various events hook (amleczko)paster template for Akhet (do3cc)permission check in model listingcustomisable actionsi18n0.2Take care of permissions. You can now use an __acl__ attribute in your SA
models to restrict access0.1Initial version
Package: pyramid_formish
Bindings for theformishform
generation library withPyramid,
including a set ofChameleontemplates that implement formish widget renderers.This package requires Python>=2.6<=2.7X.  It also requires Chameleon>=1.999
(it will not run under Chameleon 2.X).Please seehttps://docs.pylonsproject.org/projects/pyramid_formish/dev/for
documentation.0.1 (2011-08-17Forked from repoze.bfg.formish 0.3.Replacestr(field.description)withunicode(field.description)in
field/main.html template to not barf on Unicode values.Prevent deprecation error by usingget_current_registry().settingsrather thanget_settings().Works works with Pyramid 1.0-1.2dev.
Package: pyramid_forums
ImportantThis package is currently in the “planning” stage. In short, nothing
to download yet.Thepyramid_forumspackage will provide a generic system to create:discussion forumsbulletin boardscustomer supportWith support of integrations to external content/support systems such
as Zendesk.ProjectHomepage:https://github.com/canaryhealth/pyramid_forumsBugs:https://github.com/canaryhealth/pyramid_forums/issues
Package: pyramid_foundation
This package provides a Pyramid scaffold which includesZurb Foundationpyramid_foundation is intended to extend other scaffolds such as starter or alchemy. Using it alone will not create a Pyramid project.Getting Started$ pcreate -s <scaffold> -s pyramid_foundation <project_name>Your newly created project will have the Foundation files located in Project/package/static/Additionally, mytemplate.pt has been modified to include the Foundation CSS and JS along with the standard basic introduction to Foundation.Compass/SassIn order to use Compass, you’ll need to install the Compass and Foundation gems$ gem install compass
$ gem install foundationpyramid_foundation includes a config.rb to manage your styles as a compass project. For more information visit:Compass-style.orgSass-lang.comFilesstatic/config.rb                     -       Compass config filestatic/css/package_name.css          -       Styles for included templatestatic/css/app.css                   -       Complete Foundation styles compiled from Sassstatic/img/*                         -       Foundation imagesstatic/js/*                          -       Foundation Javascriptsstatic/sass/package_name.scss        -       Sass styles for included templatestatic/sass/_settings.scss           -       Foundation settingsstatic/sass/app.scss                  -       Foundation Sass stylestemplates/mytemplate.pt              -       Example Pyramid templatev0.0, 09.30.12 – Begin development
v0.1, 10.30.12 – Created PyPi compatible package with Pyramid scaffold
v0.1.1, 11.5.12 – Added Compass/Sass files
v0.1.2, 11.5.12 – Removed compressed css version
v0.2, 11.5.12 – Completed testing for Compass/Sass additions
v0.2.1, 11.10.12 – Updated foundation gem for responsive bug from custom app.scss
v0.2.2, 11.10.12 – Bugfixes
v0.2.3, 11.30.12 – Foundation updates
v0.2.4, 12.12.12 – Foundation updated to 3.2.3
v0.3.0, 07.19.13 – Foundation updated to 4.x
Package: pyramid_genshi
Build:Bindings forGenshitemplating support underPyramid.To use pyramid_genshi, simply include pyramid_genshi in your Pyramid main
function:config.include('pyramid_genshi')And you can use it as you use other template:@view_config(route_name='home',
             renderer='my_project:templates/home.genshi')
def home(request):
    return 'Hello world'SettingsTo adjust output format, you can changegenshi.default_formatgenshi.default_format = xhtmlTo adjust output encoding, you can changegenshi.default_encodinggenshi.default_encoding = cp950To adjust output doctype, you can changegenshi.default_doctypegenshi.default_doctype = html5To adjust the default i18n domain, you can changegenshi.default_domaingenshi.default_domain = my_domainTo adjust template auto reloading, you can changegenshi.auto_reloadgenshi.auto_reload = FalseFor available options, you can reference tohttp://genshi.edgewall.org/wiki/Documentation/0.6.x/plugin.html0.2.1Support include template by Pyramid asset path0.2.0Support Pyramid 1.5Stop supporting Pyramid before 1.3Stop supporting text rendering for now, may be added back later0.1.3Fix issue caused by Pyramid 1.4 macro argument to the template renderer0.1.2Add genshi.auto_reload setting option, and make the default value as True0.1.1Add genshi.default_encoding setting optionAdd genshi.default_doctype setting optionAdd genshi.default_format setting option (same as genshi.method in 0.1.0)0.1.0Initial version
Package: pyramid_grpc
pyramid-grpcGrpc with pyramidGithub repository:https://github.com/tomas_correa/pyramid-grpc/Documentationhttps://tomas_correa.github.io/pyramid-grpc/Getting started with your projectFirst, create a repository on GitHub with the same name as this project, and then run the following commands:gitinit-bmain
gitadd.
gitcommit-m"init commit"gitremoteaddorigingit@github.com:tomas_correa/pyramid-grpc.git
gitpush-uoriginmainFinally, install the environment and the pre-commit hooks withmakeinstallYou are now ready to start development on your project! The CI/CD
pipeline will be triggered when you open a pull request, merge to main,
or when you create a new release.To finalize the set-up for publishing to PyPi or Artifactory, seehere.
For activating the automatic documentation with MkDocs, seehere.
To enable the code coverage reports, seehere.Releasing a new versionCreate an API Token onPypi.Add the API Token to your projects secrets with the namePYPI_TOKENby visitingthis page.Create anew releaseon Github.
Create a new tag in the form*.*.*.For more details, seehere.Repository initiated withfpgmaas/cookiecutter-poetry.
Package: pyramid_handlers
pyramid_handlersis a package which allows Pyramid to largely emulate the
functionality of Pylons 1 “controllers”.  Handlers are a synthesis of
Pyramidurl dispatchand method introspection of a view class that makes it
easier to create bundles of view logic which reacts to particular route
patterns.  It works under Python 2.6, 2.7, and 3.2.Seehttp://docs.pylonsproject.org/projects/pyramid_handlers/en/latest/for
detailed documentation.0.5 (2012-03-20)Python 3.2 compatibility (sans ZCML support;pyramid_zcmldoes not work
under Python 3).Removed Python 2.5 compatibility.  This also means Jython compatibility has
been dropped.  If you need Python 2.5 compatibility, use 0.4.No longer raises a ConfigurationError when an__action_decorator__is
an instance method (there’s no distinction between unbound methods and
functions under Python 3).0.4 (2011-11-25)Addpyramid.handlers.method_name_xformersetting, which allows the view
associated with a handler action to match when a converted action name is
found in the URL (as opposed to the original method name).  See this
version’s docs for more info.Use submodule for docs theme.Modify tox testing scheme.0.3 (2011-08-24)UsingNoneas a pattern is no longer permitted in a call toadd_handler.  This is for compatibility with an upcoming Pyramid “route
groups” feature.0.2 (2011-07-22)Fix include example in docs.Add example of__action_decorator__in documentation.Drop install dependency on pyramid_zcml.Add a tox.ini for Jenkins testing.Fix tests for Pyramid 1.1.0.1 (2011-01-18)Initial release, broken out of Pyramid core.
Package: pyramid_hawkauth
This is a Pyramid authenitcation plugin for Hawk Access Authentication:https://npmjs.org/package/hawkTo access resources using Hawk Access Authentication, the client must have
obtained a set of Hawk 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 “Hawk” as follows:> GET /protected_resource HTTP/1.1
> Host: example.com

< HTTP/1.1 401 Unauthorized
< WWW-Authenticate: HawkThe client will use their Hawk 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: Hawk 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 Hawk credentials:https://github.com/mozilla-services/tokenlibIf this library does not meet your needs, you can provide a custom callback
function to decode the Hawk id token.2.0.0 - 2018-01-10Update use of tokenlib API for v0.3 and later.Py27, Py35 compatible; thanks @return42!v0.1.0 - 2014-13-01Initial release, based on pyramid_macauth codebase.
Package: pyramid_health
Simple healthcheck endpoint for Pyramid, with maintenance mode and application
checks.PyPI:https://pypi.python.org/pypi/pyramid_healthBitbucket:https://github.com/ludia/pyramid_healthInstallationInstall using setuptools, e.g. (within a virtualenv):$ pip install pyramid_healthSetupOncepyramid_healthis installed, you must use theconfig.includemechanism to include it into your Pyramid project’s configuration.  In your
Pyramid project’s__init__.py:config=Configurator(.....)config.include('pyramid_health')Alternately you can use thepyramid.includesconfiguration value in your.inifile:[app:myapp]pyramid.includes=pyramid_healthUsagePyramid_health configuration (values are defaults):[app:myapp]healthcheck.url=/healthhealthcheck.disablefile=/tmp/maintenance# touch this file to activatehealthcheck.maintenance_code=299# Code to return in maintenance modehealthcheck.failure_code=503# Code to return when one or more checks failOperationWhen your application is healthy, pyramid_health endpoint returns200 OK.
When you enable the maintenance mode, the endpoint returns299 MAINTENANCEand logsHealth response: MAINTENANCE.
If the request to the healthcheck endpoint asks for the application checks, and
one application check or more return an error, the endpoint returns503 ERRORand logsHealth response: ERROR(<all-check-results>).Application checksThe application checks are routines in your application that subscribe topyramid_health.HealthCheckEventevent, execute a specific health check and
report the outcome as a status (OKorERROR) and an optional message.The application checks are not called unless you explicitely request it with
the request paramchecksset totrueorall(like:GET/health?checks=all)To add an application check in your application:frompyramid.eventsimportsubscriberfrompyramid_healthimportHealthCheckEvent@subscriber(HealthCheckEvent)defdb_check(event):try:db.ping()except:event.report(name='db',status='NOK',message='ping failed')else:event.report(name='db',status='OK')Notes:You may or may not report succeeding checksMaintenance modeIn maintenance mode, the healthcheck endpoint’s response is changed to inform
the HTTP client that this backend is unavailable. Typically a loadbalancer
polling the backends would stop sending traffic to a backend in maintenance
mode.The response status code is299 MAINTENANCEby default. You can
change it withhealthcheck.maintenance_code.
Package: pyramid-heroku
Introductionpyramid_heroku is a collection of tweens and helpers to successfully runPyramidonHerokuIt provides the following:ClientAddrtween that sets real user’s IP torequest.client_addrHosttween that setsrequest.hostto proxiedX-Forwarded-Hostheader (note: potential security risk)HerokuappAccesstween that denies access to your app’s<app>.herokuapp.comdomain for any non-whitelisted IPs.migrate.pyscript for automatically running alembic migrations on
deploy.maintenance.pyscript for controlling Heroku maintenance mode.InstallationJust dopip install pyramid_herokuoreasy_install pyramid_herokuCompatibilitypyramid_heroku runs with pyramid>=1.7 and python>=3.6.
Other versions might also work.DocumentationUsage example for tweens:def main(global_config, **settings):$ cat .heroku/release.sh
    config = Configurator(settings=settings)
    config.include('pyramid_heroku.client_addr')
    config.include('pyramid_heroku.herokuapp_access')
    return config.make_wsgi_app()Thepyramid_heroku.herokuapp_accesstween depends onpyramid_heroku.client_addrtween and it requires you to list whitelisted IPs
in thepyramid_heroku.herokuapp_whitelistsetting.Thepyramid_heroku.client_addrtween sets request.client_addr to an IP we
can trust. It handles IP spoofing viaX-Forwarded-Forheaders and
ignores Cloudflare’s IPs when using Cloudflare reverse proxy.Usage example for automatic alembic migration script:$ cat .heroku/release.sh
#!/usr/bin/env bash

set -e

echo "Running migrations"
python -m pyramid_heroku.migrate my_app etc/production.ini

echo "DONE!"For migration script to work, you need to set theMIGRATE_API_SECRET_HEROKUenv var in Heroku. This allows the migration script to use the Heroku API.Before running DB migration, the script will enableHeroku maintenance modeif the app is not already in maintenance mode. After the migration, maintenance mode will
be disabled only if it was enabled by the migration script.Maintenance mode can also be enabled/disabled using thepyramid_heroku.maintenancescript.Usage example for enabling the Heroku maintenance mode:python -m pyramid_heroku.maintenance on my_app etc/production.iniIf you use structlog, add the following configuration setting to your INI file to enable structlog-like logging:pyramid_heroku.structlog = trueSee tests for more examples.ReleasingUpdate CHANGES.rst.Update pyproject.toml version.Runpoetry check.Runpoetry publish--build.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!
Package: pyramid-htmldoom
pyramid_htmldoomhtmldoomrendering library plugin for PyramidUsageInstallpipinstallpyramid_htmldoomPlug into Pyramidapp.pyfromwsgiref.simple_serverimportmake_serverfrompyramid.configimportConfiguratorfrompyramid.responseimportResponsefrompyramid.viewimportview_config@view_config(route_name="hello_htmldoom",renderer="templates.hello.py")defhello_htmldoom_view(request):"""htmldoom rendered view"""return{"data":"Hello htmldoom"}if__name__=="__main__":withConfigurator()asconfig:config.scan()config.include("pyramid_htmldoom")config.add_route("hello_htmldoom","/")app=config.make_wsgi_app()server=make_server("localhost",8080,app)server.serve_forever()templates/hello.pyfromhtmldoomimportelementsasefromhtmldoomimportrendersfrom.layoutimportrender_document@renders(e.body()(e.h3()("{contents}"),e.a(href="/")("Home"),))defrender_body(data):return{"contents":data["data"]}defrender(data):returnrender_document(data,body_renderer=render_body)templates/layout.pyfromhtmldoomimportbaseasbfromhtmldoomimportelementsasefromhtmldoomimportrendersdoctype=b.doctype("html")@renders(e.title()("{doctitle}"))defrender_title(doctitle):return{"doctitle":doctitle}@renders(e.body()("{content}"))defrender_body(data):raiseNotImplementedError("You are trying to render a layout.")@renders(doctype,e.html()(e.head()("{title}"),"{body}"))defrender_document(data,title_renderer=render_title,body_renderer=render_body,):return{"doctype":doctype,"title":title_renderer(doctitle=data["data"]),"body":body_renderer(data=data),}defrender(data):returnrender_document(data=data)ExamplesFind demo and examples hereDeploy examples on heroku:gitpushheroku$(gitsubtreesplit--prefixexamples/2_hackernewsmaster):master
Package: pyramid-htmlmin
pyramid-htmlminBinding of thehtmlminlibrary for Pyramid.Usage:pyramid.includes =
  pyramid_htmlmin

# uncomment lines to override default settings.

# Send gzipped minifed code when possible (defaults to True)
# pyramid_htmlmin.gzip_if_accepted = True

# the settings here are default value of htmlmin.minify methods,
# provided by htmlmin version 0.1.5
# htmlmin.remove_comments = False
# htmlmin.remove_empty_space = False
# htmlmin.remove_all_empty_space = False
# htmlmin.reduce_empty_attributes = True
# htmlmin.reduce_boolean_attributes = False
# htmlmin.remove_optional_attribute_quotes = True
# htmlmin.keep_pre = FalseChangelog0.6 (2017-07-19)Don’t stick Pyramid to version 1.50.5 (2015-06-16)Minified in gzip the response if possible0.4 (2015-06-30)Minified exceptions renderered pages too0.3 (2015-01-21)don’t raise when the content type response is not set.0.2 (2014-10-20)minify options are now configurable via Pyramid settings.0.1 (2014-10-13)Initial version.
Package: pyramid_httpauth
This is an authentication policy for __pyramid__ that verifies credentials
using either HTTP-Digest-Auth or HTTP-Basic-Auth protocol.With a reference tohttps://github.com/mozilla-services/pyramid_digestauth/with extras:Add support for HTTP Basic AuthenticationAdd support for Python 3Tested with Python 2.7 and Python 3.4UsageTo use this package, in the app function, just include it.config.include(“pyramid_httpauth”)In youdevelopment.inihttpauth.schema:          default schema to challenge client (digestor basic), default=digesthttpauth.realm:           realm string for auth challenge headerhttpauth.qop:             qop string for auth challenge header(used for Digest Auth only)httpauth.nonce_manager:   name of NonceManager class to use(used for Digest Auth only)httpauth.nonce_manager_secret: The secret key used to sign on nounce, usedfor built-in SignedNonceManager (if httpauth.nonce_manager
is not provided).httpauth.domain:          domain string for auth challenge headerhttpauth.get_password:    name of password-retrieval functionhttpauth.groupfinder:     name of group-finder callback function1.0.5Fix bug: SignedNonceManager does not work properly at multi processes if its
secret key is not configured.Add confighttpauth.nonce_manager_secretto configure this value.Log a critical message if this value is not configured.1.0PackagingInitial version