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.3.tar.gz
(5.7 kB
view hashes)
Built Distribution
Close
Hashes for protectremote-0.0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aba546f0f3903d301435041a8fe8692f9074752e0464cf63cb4466edb455b698 |
|
MD5 | 8a87e6fe4953aa18e25d336eeb67e6aa |
|
BLAKE2b-256 | 5655051d23d0e23fc9dcb7b327454f0d9fc5401dedb4a9ad83f8e2588ccf7cb3 |