Flask-Authorization
Simple user authorization to use alongside with Flask-Login.
Installation
pip3 install Flask-Authorization
Usage
from flask_Authorization import Authorize
authorize = Authorize()
# Initialize Extension
authorize.init_app(app)
For Flask-Authorization to work properly, your user models needs to implement a function called get_permissions() that returns a list of permissions. You can define any permissions you like, but "ROOT", "ADMIN", "USER" are recommended.
Flask-Authorization will check if the current user has the required permissions on routes decorated with the @flask_authorization.permission_required(permission) decorator.
Metadata
Release files for flask-authorization 1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flask-authorization-1.6.tar.gz | 2.7 kB | Without provenance | Details for flask-authorization-1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flask_authorization-1.6-py3-none-any.whl | Python 3 | none | any | Details for flask_authorization-1.6-py3-none-any.whl |
Total release size: 5.9 kB
Security for flask-authorization 1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.