Ligare.platform.identity

Functions

get_table_str(tablename, base)

Classes

RoleTable(base)

UserRoleTable(base)

UserTable(base)

protocol Ligare.platform.identity.Role[source]

typing.Protocol.

Classes that implement this protocol must have the following methods / attributes:

__tablename__: str
role_id: int
role_name: str
users: list[User[DeclarativeMeta]]
class Ligare.platform.identity.RoleTable(base: TMetaBase)[source]
static __new__(cls, base)[source]
Return type:

type[Role[TypeVar(TMetaBase, bound= DeclarativeMeta, covariant=True)]]

protocol Ligare.platform.identity.User[source]

typing.Protocol.

Classes that implement this protocol must have the following methods / attributes:

__tablename__: str
roles: list[Role[DeclarativeMeta]]
user_id: int
username: str
protocol Ligare.platform.identity.UserRole[source]

typing.Protocol.

Classes that implement this protocol must have the following methods / attributes:

role_id: int
user_id: int
class Ligare.platform.identity.UserRoleTable(base: TMetaBase)[source]
static __new__(cls, base)[source]
Return type:

type[UserRole[TypeVar(TMetaBase, bound= DeclarativeMeta, covariant=True)]]

class Ligare.platform.identity.UserTable(base: TMetaBase)[source]
static __new__(cls, base)[source]
Return type:

type[User[TypeVar(TMetaBase, bound= DeclarativeMeta, covariant=True)]]

Ligare.platform.identity.get_table_str(tablename, base)[source]

Modules

user_loader