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.
class documentation
class Authenticatable: (source)
Turn any Orionis model into an authenticatable identity.
Mix it into the model backing your users:
class User(Model, Authenticatable, Authorizable):
id = Integer().primary().autoIncrement()
email = String(255).unique()
password = String(255)
The mixin is a plain class registered as a virtual implementation of
IAuthenticatable. Inheriting from the ABC directly would
clash with ModelMeta, the metaclass of every Orionis model.
| Method | get |
Return the value uniquely identifying this identity. |
| Method | get |
Return the attribute holding the unique identifier. |
| Method | get |
Return the stored password hash of this identity. |
| Constant | AUTH |
Undocumented |
| Class Variable | __slots__ |
Undocumented |
Return the value uniquely identifying this identity.
| Returns | |
object | Primary key value, or None when the model was never persisted. |
Return the attribute holding the unique identifier.
| Returns | |
str | Primary key declared by the model metadata. |
Return the stored password hash of this identity.
| Returns | |
str | Encoded hash, or an empty string when the attribute is unset. |