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

Provide auth concerns operations.

Includes authorizable_key, model_primary_key.

Function authorizable_key Normalize a persisted identity's polymorphic authorization key.
Constant _FALLBACK_PRIMARY_KEY Attribute used when the object does not expose ORM metadata.
Constant _MAX_KEY_LENGTH Max key length value used by functions.
def authorizable_key(identity: object) -> tuple[str, str]: (source)

Normalize a persisted identity's polymorphic authorization key.

Parameters
identity:objectIdentity exposing getAuthorizableType and getAuthorizableId.
Returns
tuple[str, str]Stable owner type and canonical textual identifier.
Raises
orionis.auth.AuthExceptionIf the identity has no valid persisted scalar key.
_FALLBACK_PRIMARY_KEY: str = (source)

Attribute used when the object does not expose ORM metadata.

Value
'id'
_MAX_KEY_LENGTH: int = (source)

Max key length value used by functions.

Value
255