跳转到主要内容

一组帮助在Heroku上成功运行Pyramid的辅助工具。

项目描述

简介

安装

只需

pip install pyramid_cloudflare_access

easy_install pyramid_cloudflare_access

兼容性

pyramid_cloudflare_access 与 pyramid>=1.7 和 python>=3.6 兼容。其他版本也可能兼容。

用法

将Cloudflare配置添加到 production.ini

pyramid_cloudflare_access.policy_audience = "my_audience"
pyramid_cloudflare_access.team = "https://team.cloudfare-access.com"

更多信息可以在 https://developers.cloudflare.com/cloudflare-one/identity/users/validating-json#python-example 找到

tween 的用法示例

def main(global_config, **settings):
    config = Configurator(settings=settings)
    config.include('pyramid_cloudflare_access')
    return config.make_wsgi_app()

发布

  1. 更新 CHANGES.rst。

  2. 更新 pyproject.toml 版本。

  3. 运行 poetry check

  4. 运行 poetry publish --build

我们正在招聘!

在Niteo,我们经常向开源社区回馈。如果您也这样做,我们希望邀请您加入我们的团队

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源分布

pyramid_cloudflare_access-1.0.1.tar.gz (7.0 kB 查看哈希值)

上传时间 源代码

构建分布

pyramid_cloudflare_access-1.0.1-py3-none-any.whl (8.7 kB 查看哈希值)

上传时间 Python 3

支持