Declarative access policies/permissions modeled after AWS' IAM policies for Django REST Framework. Current version 1.5.0, with active development and periodic releases.
pip install drf-access-policyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Define an access policy as a dictionary on the view. The policy controls actions allowed for principals.
Replace 'condition' elements with 'condition_expression' and use Python-style boolean operators.
Use 'from rest_framework_access_policy import AccessPolicy'.
Upgrade your Python environment to 3.6 or newer.