Skip to main content

Flask-Authorization

Downloads Downloads Downloads

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)

Source distribution for flask-authorization 1.6
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)

Table of built distributions (wheels) for flask-authorization 1.6
File Interpreter ABI Platform Actions
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

Release files / flask-authorization-1.6.tar.gz

Download URL flask-authorization-1.6.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
770d4334e7cb9cdd55c7b67988b0d61555311574a4bdd0bbfbe5adfe8cdc3bcd
BLAKE2b-256 checksum
How to use checksums
5eb29bcb5b3965d49fd9dcdd923d3bc01a57b93e4b0324e8983a5ece181dfb86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.2 Darwin/21.4.0

Release files / flask_authorization-1.6-py3-none-any.whl

Download URL flask_authorization-1.6-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e86fdc06231a5eebe9bdf70fd1622508fa014bb28c716f3c0226aa20e14fa7d4
BLAKE2b-256 checksum
How to use checksums
6ffb890d6b77eb13ed3f13b0abef148021a5a3e77dcd48755b4a9b7edf7d241f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.2 Darwin/21.4.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page