Registry / web-framework / openedx-authz

openedx-authz

JSON →
library1.19.0pypypi✓ verified 79d ago

Open edX AuthZ provides the architecture and foundations of the authorization framework for the Open edX platform. Currently at version 1.15.0 (requires Python >=3.12), it offers a REST API for managing roles, scopes, and role assignments. The library is actively maintained by the Open edX community with regular releases.

pip install openedx-authz
INSTALL
IMPORT
SIG · OPENEDX-AUTHZ
O
openedx-authz
web-frameworkpythonv1.19.0
Install
10.0s avg
Import
Disk
172MB
Pass rate
6/ 10
Env Coverage6 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.23.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✕ build_error
✕ build_error
py 3.11
✓ —
✓ 9.5s
py 3.12
✓ —
✓ 10.4s
py 3.13
✓ —
✓ 10.1s
py 3.9
✕ build_error
✕ build_error
172MB installed
● package 172MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ROOT_DIRECTORY
from openedx_authz import ROOT_DIRECTORY
from openedx_authz.api.v1 import RoleAssignmentAPIClient
os
from openedx_authz import os
from openedx_authz.api.v1 import RoleAssignmentAPIClient

Initialize the REST API client and fetch role assignments.

from openedx_authz.api.v1 import RoleAssignmentAPIClient Client = RoleAssignmentAPIClient(base_url='http://localhost:8000', api_key=os.environ.get('API_KEY', '')) # Example: list role assignments assignments = Client.list_role_assignments() print(assignments)
Debug
Known issues
breakingPython 3.12 is required as of v1.15.0. Older Python versions will cause import errors.
fix
Upgrade Python to 3.12 or later.
affects: >=1.15.0
gotchaThe API client methods (e.g., list_role_assignments) now require keyword arguments for filters since v1.10.0. Passing positional arguments will result in a TypeError.
fix
Use keyword arguments: Client.list_role_assignments(org='my_org') instead of Client.list_role_assignments('my_org').
affects: >=1.10.0
deprecatedThe PUT /api/authz/v1/roles/users/ endpoint now supports bulk scopes as of v1.11.0; the old single-scope format is deprecated.
fix
Update payload to include scopes as a list: {"scopes": ["scope1", "scope2"]}.
affects: >=1.11.0
Upgrade
Version history
1.19.0latest on PyPI · released Jun 18, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
35 hits · last 30 days
node
32
OpenAI (training)
1
Resources
openedx-authz — pip install openedx-authz · libregistry