Skip to main content

Access Secure Flask Middleware

Project description

PyPI version

Flask-ACSecure

Access Secure middleware for Flask, for logging, anti-spamming and black/white list...

Install

  • Go to https://logsecure.io, create an account and project. Remember project ID and keep project token in secret. (See images below for details)

  • pip install Flask-ACSecure
    
  • Config and Usage

    from flask_acsecure import ACSecure
    
    app.config.update({
      'ACSECURE_APP_ID': 'my_app_id',
      'ACSECURE_APP_TOKEN': 'my_app_token',
    })
    
    ACSecure(app)
    
    @app.errorhandler(403)
    def forbidden(e):
      return { 'message': 'forbidden' }
    
    @app.route('/')
    def index():
      return { 'message': 'ok' }
    

Images

register

register.JPG

create project

create-project.JPG

project ID and Token

console.JPG

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

Flask-ACSecure-0.1.2.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

Flask_ACSecure-0.1.2-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

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