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 tokens operations through lookup_owner.
| Function | _integer |
Cast only bounded decimal strings, including on strict SQL engines. |
| Async Function | lookup |
Read a token and a native ORM identity in one bounded SELECT. |
| Constant | _COLUMNS |
Columns definitions used by lookup. |
| Constant | _INTEGER |
Integer digits value used by lookup. |
| Constant | _INTEGERS |
Integers used by lookup. |
| Constant | _STRINGS |
Strings used by lookup. |
Cast only bounded decimal strings, including on strict SQL engines.
| Parameters | |
value:sqlalchemy.sql.elements.ColumnElement | SQL expression containing the stored string identifier. |
length:collections.abc.Callable | Dialect-specific SQL string-length function. |
| Returns | |
sqlalchemy.sql.elements.ColumnElement | Guarded integer cast, yielding SQL NULL for malformed keys. |
async def lookup_owner(query:
RawQueryBuilder, identities: object, validate: Callable[ [ dict], object | None]) -> tuple[ object, object] | NotImplementedType | None:
(source)
¶
Read a token and a native ORM identity in one bounded SELECT.
| Parameters | |
query:orionis.orm.query.raw_builder.RawQueryBuilder | Token digest query, with no plaintext credential in its bindings. |
identities:object | Provider to optimize only when its native lookup semantics are known. |
validate:collections.abc.Callable | Validate token metadata before hydrating or dispatching identity events. |
| Returns | |
tuple | None | NotImplemented | Token row and hydrated identity, no match, or an unsupported combination. Retrieval events still run before the guard's final conditional touch. |
Columns definitions used by lookup.
| Value |
|
Integers used by lookup.
| Value |
|