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

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 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page