Skip to main content

A tween to force HTTPS.

Project description

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

  1. Update CHANGES.rst.

  2. Update setup.py version.

  3. Run bin/longtest.

  4. Run bin/mkrelease -d pypi.

Changes

0.1.1

  • Better structlog variable names. [zupo]

0.1

  • Initial release. [zupo]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyramid_force_https-0.1.1.tar.gz (4.8 kB view details)

Uploaded Source

File details

Details for the file pyramid_force_https-0.1.1.tar.gz.

File metadata

File hashes

Hashes for pyramid_force_https-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7fde285ad1cab7b6c6904cad3413b49187beb55cf4a6ffb4541ff20113b75d1d
MD5 7c92dded8d9b37cb1daf6d3d4d23cc02
BLAKE2b-256 b976fa03bd686c694845f2751aec159a5391aec52be9b79df7b8c107623250e1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page