pyramid_maintenance
- author:
Benoît Pineau <beny@sickless.net>
- date:
2014-02-12
What is it
pyramid_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 it
pip install pyramid_maintenance
How to enable it
If you want to enable pyramid_maintenance tween in your pyramid app, you have to add in your .ini file:
pyramid.tweens = pyramid_maintenance.tween_maintenance
And 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.mako
0.2
Make you strictless on the .ini file
Rename role into permission
0.1
Initial version
Metadata
Release files for pyramid_maintenance 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyramid_maintenance-0.2.tar.gz | 10.3 kB | Without provenance | Details for pyramid_maintenance-0.2.tar.gz |
Release files / pyramid_maintenance-0.2.tar.gz
| Download URL | pyramid_maintenance-0.2.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fef2ac1fbd66c9aa31ba5e0bf78406eb3c0dec44188e78ddfabbeb5281cb20f4
|
|
BLAKE2b-256 checksum How to use checksums |
2216a903751438c88a733f630387caa6f80ed7391ba840bc6814f60277b2707d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyramid_maintenance 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.