Skip to main content

Flask permissions the UNIX way using owner and groups

Project description

https://travis-ci.org/xvzf/flask-chown.svg?branch=master PyPI version Python Versions Documentation Status

Flask view permission management the UNIX way using owner and groups

Documentation

https://xvzf.tech/flask-chown

Example

from flask_chwon import PermissionManager

...
app = Flask(...)

pm = PermissionManager()
pm.init_app(app)
# or
# pm = PermissionManager(app)

...

@app.route("/")
@pm.chmod(user="helloworld", group="test")
def index():
    return "Hello World"

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

flask-chown-0.2.1.tar.gz (8.6 kB view hashes)

Uploaded Source

Built Distribution

flask_chown-0.2.1-py3-none-any.whl (9.3 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