You are here: Home / LBN / Up2date / Core Linux / BastionLinux 36 / python3-drf-access-policy-1.3.0-1.lbn36.noarch

python3-drf-access-policy-1.3.0-1.lbn36.noarch

Package Attributes
RPM  python3-drf-access-policy-1.3.0-1.lbn36.noarch.rpm Architecture  noarch Size  49736 Created  2022/11/22 13:22:57 UTC
Package Specification
Summary Declarative access policies/permissions modeled after AWS' IAM policies.
Group Application/Internet
License ZPL
Home Page https://pypi.org/project/drf-access-policy
Description

Django REST - Access Policy

This project brings a declaritive, organized approach to managing access control in Django REST Framework projects. Each ViewSet or function-based view can be assigned an explicit policy for the exposed resource(s). No more digging through views or seralizers to understand access logic
it's all in one place in a format that less technical stakeholders can understand. If you're familiar with other declaritive access models, such as AWS' IAM, the syntax will be familiar. In short, you can start expressing your access rules like this: class ArticleAccessPolicy(AccessPolicy): statements = [ { "action": ["list", "retrieve"], "principal": "*", "effect": "allow" }, { "action": ["publish", "unpublish"], "principal": ["group:editor"], "effect": "allow" } ]

This project has complete test coverage and the base AccessPolicy class is only ~150 lines of co

Requires
rpmlib(PayloadFilesHavePrefix)  
rpmlib(PayloadIsZstd)  
rpmlib(CompressedFileNames)  
rpmlib(PartialHardlinkSets)  
rpmlib(FileDigests)  
Provides
python-drf-access-policy
python3-drf-access-policy
python3.10-drf-access-policy
python3.10dist(drf-access-policy)
python3dist(drf-access-policy)
Obsoletes
python-drf-access-policy

Document Actions