ip whitelisting security package
Project description
Check Whitelisted IP
This is a simple security package to check whether client IP is allowed to access the flask`s backend APIs.
Setup
from flask import Flask
from security.check_ip import IPCheck
# Initialize the Flask app
app = Flask(__name__)
# import IP_list from the config file or declare it here
ip_list = <>
"""Set up IPCheck, there is no need to pass third argument which is "logging_enabled"
By default it is set to false, but if you want to see the incoming request IP then make it true, and it will
be printed in the log
optional
----------
IPBlock(app, ip_list, logging_enabled=True)
"""
ipcheck= IPBlock(app, ip_list)
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
Close
Hashes for quotient-security-check-0.0.1.dev1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0aac1ea03f1eb592655809d4b700fc2b9f251b9bf73d95ab278a15a19f300b8a |
|
MD5 | deb3bcc789cdb896d51083e1659eb392 |
|
BLAKE2b-256 | a6ef331285eed3400f091f44d8505cdf05ede7b11f34f7e6c763f7a4d1a2d38a |