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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file Flask-ACSecure-0.1.2.tar.gz.

File metadata

  • Download URL: Flask-ACSecure-0.1.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.9

File hashes

Hashes for Flask-ACSecure-0.1.2.tar.gz
Algorithm Hash digest
SHA256 dff4440291f811fcf2cd8f1b755be33118570444e46d4a3972300f8589750747
MD5 5644f01d1111c3cfd852e92cd98b6541
BLAKE2b-256 0049af11d006df4a3b3ee8380d5fd55342573ae7d21d41c0172f043e8cd49959

See more details on using hashes here.

File details

Details for the file Flask_ACSecure-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: Flask_ACSecure-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.9

File hashes

Hashes for Flask_ACSecure-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3ed49339e03fb98ad63f839d07eab0fd2cea20ee8dbd19dba4b6f321b236f30c
MD5 08b2027417810b31277746aa5cd83764
BLAKE2b-256 7a1eb79fe8fe46838d4685df5e14f3ef11b0d72b593aa11aeff0e48f839707c6

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