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.7.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for protectremote-0.0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cea7dac809e36eef2efcd4a916807b9bab2d0585ec4ace679f87a03ad4600d9 |
|
MD5 | 5544a17712b2925d9f7d030d05234d40 |
|
BLAKE2b-256 | 554d462ba384492aee1787ad3e577a425327bff4bad27981d68ff5bde0b62cf8 |