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.

class documentation

class FreezeThaw: (source)

View In Hierarchy

Undocumented

Static Method _isContainer Determine if the object is a supported container type.
Static Method freeze Convert mutable containers to immutable equivalents recursively.
Static Method thaw Recursively convert frozen containers to mutable equivalents.
def _isContainer(obj: object) -> bool: (source)

Determine if the object is a supported container type.

Parameters
obj:objectThe object to check.
Returns
boolTrue if the object is a MappingProxyType, dict, list, or tuple; otherwise, False.

Convert mutable containers to immutable equivalents recursively.

Parameters
obj:objectThe object to freeze. Can be a dict, list, or tuple.
Returns
objectA fully immutable object with preserved references. Non-container objects or MappingProxyType are returned unchanged.

Recursively convert frozen containers to mutable equivalents.

Parameters
obj:objectThe object to thaw. Can be a MappingProxyType, dict, list, or tuple.
Returns
objectA fully mutable object with preserved references. Non-container objects are returned unchanged.