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.

Files for Flask-ACSecure, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size Flask_ACSecure-0.1.2-py3-none-any.whl (3.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size Flask-ACSecure-0.1.2.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page