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

Convert nested mutable structures to immutable snapshots and back.

Class FreezeThaw Convert nested mutable structures to immutable snapshots and back.
Function _freeze_sequences Resolve sequence dependencies and cache their immutable tuple snapshots.
Function _mutable_graph Copy graph containers and record edges that require reference updates.
Constant _CONTAINER_TYPES Container types traversed when constructing a mutable snapshot.
Constant _MUTABLE_TYPES Mutable types definitions used by freezer.
def _freeze_sequences(sequences: dict[int, list | tuple], cache: dict[int, Any]): (source)

Resolve sequence dependencies and cache their immutable tuple snapshots.

Parameters
sequences:dict[int, list | tuple]Original sequences indexed by identity.
cache:dict[int, typing.Any]Completed snapshots, including preallocated mapping proxies.
Returns
NoneNo return value.
Raises
ValueErrorIf a cycle consists entirely of sequences.
def _mutable_graph(obj: object) -> tuple[dict[int, Any], list[tuple[Any, Any]]]: (source)

Copy graph containers and record edges that require reference updates.

Parameters
obj:objectRoot container to traverse without recursion.
Returns
tuple[dict[int, typing.Any], list[tuple[typing.Any, typing.Any]]]Mutable copies indexed by original identity and their pending edges.
_CONTAINER_TYPES: tuple[type, ...] = (source)

Container types traversed when constructing a mutable snapshot.

Value
(dict, list, tuple, MappingProxyType)
_MUTABLE_TYPES: tuple[type, ...] = (source)

Mutable types definitions used by freezer.

Value
(dict, list, tuple)