Next-gen security solution for remote workers
Project description
ProtectRemote
next-gen security solution for remote workers
Install
pip install protectremote
Usage
FLASK
Protect all routes
from flask import Flask
from protectremote import ProtechRemoteMiddleware
app = Flask(__name__)
app.wsgi_app = ProtechRemoteMiddleware(app.wsgi_app)
@app.route('/')
def public():
return 'Hello'
@app.route('/secured')
def secured():
return 'secured'
if __name__ == '__main__':
app.run()
Protect specific route only
from flask import Flask
from protectremote import pr_access
app = Flask(__name__)
@app.route('/')
def public():
return 'Hello'
@app.route('/secured')
@pr_access()
def secured():
return 'secured'
if __name__ == '__main__':
app.run()
### DJANGO
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
protectremote-0.0.0.6.tar.gz
(6.1 kB
view hashes)
Built Distribution
Close
Hashes for protectremote-0.0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0db8a572b9385f730349893ae8199e083e7ace14a4fbf15f4233b15cebd11b66 |
|
MD5 | 08f4a5aec4393a6f4dfff1aa08ae8a62 |
|
BLAKE2b-256 | 5512e4d275c06a940bd3853b6c14f0343745c37d4f1fccfb522c1c5f575f1d89 |