强制HTTPS的小工具。
项目描述
简介
pyramid_force_https 是一个用于tween 的工具,用于将所有 HTTP 请求重定向到 HTTPS。
安装
只需这样做
pip install pyramid_force_https
或
easy_install pyramid_force_https
兼容性
pyramid_force_https 与 pyramid>=1.7 和 python>=2.7 以及 python>=3.5 兼容。其他版本也可能兼容。
文档
用法示例
def main(global_config, **settings): config = Configurator(settings=settings) config.include('pyramid_force_https') return config.make_wsgi_app()
查看测试以获取更多示例。
如果您使用 structlog,请将以下配置设置添加到您的 INI 文件中,以启用 structlog-like 记录
pyramid_force_https.structlog = true
发布
更新 CHANGES.rst。
更新 setup.py 版本。
运行 bin/longtest。
运行 bin/mkrelease -d pypi。
变更
0.1.1
更好的 structlog 变量名称。[zupo]
0.1
初始发布。[zupo]
项目详情
关闭
pyramid_force_https-0.1.1.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 7fde285ad1cab7b6c6904cad3413b49187beb55cf4a6ffb4541ff20113b75d1d |
|
MD5 | 7c92dded8d9b37cb1daf6d3d4d23cc02 |
|
BLAKE2b-256 | b976fa03bd686c694845f2751aec159a5391aec52be9b79df7b8c107623250e1 |