Metadata-Version: 2.1
Name: Flask-ACSecure
Version: 0.1.2
Summary: Access Secure Flask Middleware
Home-page: https://github.com/TrentaIcedCoffee/access-secure
Author: Xin Jin
Author-email: opposcript@gmail.com
License: MIT
Keywords: Flask,log,anti-spam
Platform: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.5
Description-Content-Type: text/markdown
Requires-Dist: certifi (==2019.11.28)
Requires-Dist: chardet (==3.0.4)
Requires-Dist: Click (==7.0)
Requires-Dist: Flask (==1.1.1)
Requires-Dist: idna (==2.8)
Requires-Dist: itsdangerous (==1.1.0)
Requires-Dist: Jinja2 (==2.11.1)
Requires-Dist: MarkupSafe (==1.1.1)
Requires-Dist: requests (==2.22.0)
Requires-Dist: urllib3 (==1.25.8)
Requires-Dist: Werkzeug (==1.0.0)

[![PyPI version](https://badge.fury.io/py/Flask-ACSecure.svg)](https://badge.fury.io/py/Flask-ACSecure)

# Flask-ACSecure

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

## Install

 - Go to [https://logsecure.io](https://www.logsecure.io/), create an account and project. Remember project ID and keep project token in secret. (See [images below for details](#images))
 -     pip install Flask-ACSecure
 - Config and Usage

	```python
	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    
<img alt="register.JPG" src="https://raw.githubusercontent.com/TrentaIcedCoffee/access-secure/master/images/register.JPG" width="600" />    

### create project    
<img alt="create-project.JPG" src="https://raw.githubusercontent.com/TrentaIcedCoffee/access-secure/master/images/create-project.JPG" width="600" />    

### project ID and Token    
<img alt="console.JPG" src="https://raw.githubusercontent.com/TrentaIcedCoffee/access-secure/master/images/console.JPG" width="600" />    


