Skip to main content

A bunch of helpers for successfully running Pyramid on Heroku.

Project description

Introduction

Installation

Just do

pip install pyramid_cloudflare_access

or

easy_install pyramid_cloudflare_access

Compatibility

pyramid_cloudflare_access runs with pyramid>=1.7 and python>=3.6. Other versions might also work.

Usage

Add Cloudfalre config to a production.ini:

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

More information can be found at https://developers.cloudflare.com/cloudflare-one/identity/users/validating-json#python-example

Usage example for the tween:

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

Releasing

  1. Update CHANGES.rst.

  2. Update pyproject.toml version.

  3. Run poetry check.

  4. Run poetry publish --build.

We’re hiring!

At Niteo we regularly contribute back to the Open Source community. If you do too, we’d like to invite you to join our team!

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_cloudflare_access-1.0.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file pyramid_cloudflare_access-1.0.0.tar.gz.

File metadata

File hashes

Hashes for pyramid_cloudflare_access-1.0.0.tar.gz
Algorithm Hash digest
SHA256 96916bed17f9bc92e19d7739fd98777fb0728c1982ba333ab4535711620bbec2
MD5 af0bda08e268b61c91feeefd05c723d1
BLAKE2b-256 0a3a83f4046dcc50c682d3151e1b880d06068fb4e44f5eb02580c898658e9049

See more details on using hashes here.

File details

Details for the file pyramid_cloudflare_access-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pyramid_cloudflare_access-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 55d31a76f294d4070cc9780aa20eacb570cd20fab01e77cc2eb06604ece9f3fa
MD5 027d44adf63eec1ee7638c52924d3137
BLAKE2b-256 fd8e6eef8cec529665fa629be7e411ec87a54b32ca0020e631d37e6c63ab6d0b

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