Skip to main content

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


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.8.tar.gz (6.2 kB view hashes)

Uploaded Source

Built Distribution

protectremote-0.0.0.8-py3-none-any.whl (7.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page