Access Secure Flask Middleware
Project description
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
create project
project ID and Token
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for Flask_ACSecure-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ed49339e03fb98ad63f839d07eab0fd2cea20ee8dbd19dba4b6f321b236f30c |
|
MD5 | 08b2027417810b31277746aa5cd83764 |
|
BLAKE2b-256 | 7a1eb79fe8fe46838d4685df5e14f3ef11b0d72b593aa11aeff0e48f839707c6 |