{"library":"openedx-authz","title":"Open edX AuthZ","description":"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.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install openedx-authz"],"cli":null},"imports":["from openedx_authz.api.v1 import RoleAssignmentAPIClient","from openedx_authz.role_api import AuthzService","from openedx_authz.models import RoleModelHelper"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from openedx_authz.api.v1 import RoleAssignmentAPIClient\nClient = RoleAssignmentAPIClient(base_url='http://localhost:8000', api_key=os.environ.get('API_KEY', ''))\n# Example: list role assignments\nassignments = Client.list_role_assignments()\nprint(assignments)","lang":"python","description":"Initialize the REST API client and fetch role assignments.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}