Introduction
pyramid_force_https is a tween for Pyramid to redirect all HTTP requests to HTTPS.
Installation
Just do
pip install pyramid_force_https
or
easy_install pyramid_force_https
Compatibility
pyramid_force_https runs with pyramid>=1.7 and python>=2.7 and python>=3.5. Other versions might also work.
Documentation
Usage 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 = true
Releasing
Update CHANGES.rst.
Update setup.py version.
Run bin/longtest.
Run bin/mkrelease -d pypi.
Changes
0.1.1
Better structlog variable names. [zupo]
0.1
Initial release. [zupo]
Metadata
Release files for pyramid_force_https 0.1.1
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_force_https-0.1.1.tar.gz | 4.8 kB | Without provenance | Details for pyramid_force_https-0.1.1.tar.gz |
Release files / pyramid_force_https-0.1.1.tar.gz
| Download URL | pyramid_force_https-0.1.1.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7fde285ad1cab7b6c6904cad3413b49187beb55cf4a6ffb4541ff20113b75d1d
|
|
BLAKE2b-256 checksum How to use checksums |
b976fa03bd686c694845f2751aec159a5391aec52be9b79df7b8c107623250e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyramid_force_https 0.1.1
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.