ORIONIS API REFERENCE

THE ORIONIS API

Build with clarity.

Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.

module documentation

Load permissions and roles from the framework authorization tables.

Class DatabasePermissionRepository Load permissions and roles from the framework authorization tables.
Constant _MODEL_ID model_id.
Constant _MODEL_PERMISSIONS_TABLE model_has_permissions.
Constant _MODEL_ROLES_TABLE model_has_roles.
Constant _MODEL_TYPE Column names reused across the three queries below.
Constant _PERMISSION_ID permission_id.
Constant _PERMISSIONS_TABLE Tables shipped by the framework migrations. They follow the polymorphic layout so any model can own permissions and roles.
Constant _ROLE_ID role_id.
Constant _ROLE_PERMISSIONS_TABLE role_has_permissions.
Constant _ROLES_TABLE roles.
_MODEL_ID: str = (source)

model_id.

Value
'model_id'
_MODEL_PERMISSIONS_TABLE: str = (source)

model_has_permissions.

Value
'model_has_permissions'
_MODEL_ROLES_TABLE: str = (source)

model_has_roles.

Value
'model_has_roles'
_MODEL_TYPE: str = (source)

Column names reused across the three queries below.

Value
'model_type'
_PERMISSION_ID: str = (source)

permission_id.

Value
'permission_id'
_PERMISSIONS_TABLE: str = (source)

Tables shipped by the framework migrations. They follow the polymorphic layout so any model can own permissions and roles.

Value
'permissions'
_ROLE_ID: str = (source)

role_id.

Value
'role_id'
_ROLE_PERMISSIONS_TABLE: str = (source)

role_has_permissions.

Value
'role_has_permissions'
_ROLES_TABLE: str = (source)

roles.

Value
'roles'