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 tokens operations through lookup_owner.

Function _integer_key Cast only bounded decimal strings, including on strict SQL engines.
Async Function lookup_owner Read a token and a native ORM identity in one bounded SELECT.
Constant _COLUMNS Columns definitions used by lookup.
Constant _INTEGER_DIGITS Integer digits value used by lookup.
Constant _INTEGERS Integers used by lookup.
Constant _STRINGS Strings used by lookup.
def _integer_key(value: ColumnElement, length: Callable) -> ColumnElement: (source)

Cast only bounded decimal strings, including on strict SQL engines.

Parameters
value:sqlalchemy.sql.elements.ColumnElementSQL expression containing the stored string identifier.
length:collections.abc.CallableDialect-specific SQL string-length function.
Returns
sqlalchemy.sql.elements.ColumnElementGuarded 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.RawQueryBuilderToken digest query, with no plaintext credential in its bindings.
identities:objectProvider to optimize only when its native lookup semantics are known.
validate:collections.abc.CallableValidate token metadata before hydrating or dispatching identity events.
Returns
tuple | None | NotImplementedToken row and hydrated identity, no match, or an unsupported combination. Retrieval events still run before the guard's final conditional touch.
_COLUMNS: tuple[str, ...] = (source)

Columns definitions used by lookup.

Value
('id',
 'tokenable_type',
 'tokenable_id',
 'name',
 'abilities',
 'expires_at',
 'created_at',
...
_INTEGER_DIGITS: int = (source)

Integer digits value used by lookup.

Value
19
_INTEGERS = (source)

Integers used by lookup.

Value
frozenset(set([ColumnType.BIG_INTEGER,
               ColumnType.INTEGER,
               ColumnType.SMALL_INTEGER,
               ColumnType.BIGINT,
               ColumnType.INT,
               ColumnType.SMALLINT]))
_STRINGS = (source)

Strings used by lookup.

Value
frozenset(set([ColumnType.STRING,
               ColumnType.UNICODE,
               ColumnType.CHAR,
               ColumnType.VARCHAR,
               ColumnType.NCHAR,
               ColumnType.NVARCHAR]))