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.2.tar.gz
(5.7 kB
view hashes)
Built Distribution
Close
Hashes for protectremote-0.0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b5b67cc6888c13e53e9146953e43629d47ea4746d6032e5a8c2b19c08aa6d93 |
|
MD5 | a69a9dbc5dd69fcb122996043ab15982 |
|
BLAKE2b-256 | c29b51d56582bfdc463012c7e05586b9c81953cefb864d8ca3704bf1766fb2ff |