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

Undocumented

Method __contains__ Check if the cache contains the specified key.
Method __delitem__ Remove an item from the memory cache by key.
Method __getitem__ Retrieve a cached value by key.
Method __init__ Initialize the ReflectionModule by importing the specified module.
Method __setitem__ Store a value in the cache with the specified key.
Method clearCache Clear all cached reflection data.
Method getClass Retrieve a class object by its name from the module.
Method getClasses Return a dictionary of classes defined in the module.
Method getConstant Retrieve a constant value by name from the module.
Method getConstants Retrieve constants defined in the module.
Method getFile Return the file path of the module.
Method getFunctions Return a dictionary of functions defined in the module.
Method getImports Retrieve imported modules from the module.
Method getModule Return the imported module object.
Method getPrivateAsyncFunctions Return private asynchronous functions defined in the module.
Method getPrivateClasses Return a dictionary of private classes defined in the module.
Method getPrivateConstants Retrieve private constants defined in the module.
Method getPrivateFunctions Return private functions defined in the module.
Method getPrivateSyncFunctions Return private synchronous functions defined in the module.
Method getProtectedAsyncFunctions Return protected asynchronous functions defined in the module.
Method getProtectedClasses Return a dictionary of protected classes defined in the module.
Method getProtectedConstants Return protected constants defined in the module.
Method getProtectedFunctions Return a dictionary of protected functions defined in the module.
Method getProtectedSyncFunctions Return protected synchronous functions defined in the module.
Method getPublicAsyncFunctions Return a dictionary of public asynchronous functions in the module.
Method getPublicClasses Return a dictionary of public classes defined in the module.
Method getPublicConstants Retrieve public constants defined in the module.
Method getPublicFunctions Return a dictionary of public functions defined in the module.
Method getPublicSyncFunctions Return a dictionary of public synchronous functions in the module.
Method getSourceCode Retrieve the source code of the module.
Method hasClass Check if a class with the specified name exists in the module.
Method removeClass Remove a class from the module.
Method setClass Set a class in the module.
Instance Variable __memory_cache Undocumented
Instance Variable __module Undocumented
def __contains__(self, key: str) -> bool: (source)

Check if the cache contains the specified key.

Parameters
key:strThe key to check for existence in the cache.
Returns
boolTrue if the key exists in the cache, False otherwise.
def __delitem__(self, key: str): (source)

Remove an item from the memory cache by key.

Parameters
key:strThe key to remove from the cache.
Returns
NoneThis method does not return a value.
def __getitem__(self, key: str) -> object | None: (source)

Retrieve a cached value by key.

Parameters
key:strThe key to look up in the cache.
Returns
object or NoneThe cached value if found, otherwise None.
def __init__(self, module: str): (source)

Initialize the ReflectionModule by importing the specified module.

Parameters
module:strName of the module to import and reflect upon.
Returns
NoneThis method does not return a value.
Raises
TypeErrorIf module is not a non-empty string or cannot be imported.
def __setitem__(self, key: str, value: object): (source)

Store a value in the cache with the specified key.

Parameters
key:strThe key under which to store the value.
value:objectThe value to store in the cache.
Returns
NoneThis method does not return a value.
def clearCache(self): (source)

Clear all cached reflection data.

Removes all cached entries stored in the reflection instance. Forces fresh computation on subsequent method calls.

Parameters
None
Returns
NoneThis method does not return a value.
def getClass(self, class_name: str) -> type | None: (source)

Retrieve a class object by its name from the module.

Parameters
class_name:strName of the class to retrieve.
Returns
type or NoneThe class object if found, otherwise None.
def getClasses(self) -> dict: (source)

Return a dictionary of classes defined in the module.

Parameters
None
Returns
dictDictionary with class names as keys and class objects as values.
def getConstant(self, constant_name: str) -> object | None: (source)

Retrieve a constant value by name from the module.

Parameters
constant_name:strName of the constant to retrieve.
Returns
object or NoneValue of the constant if found, otherwise None.
def getConstants(self) -> dict: (source)

Retrieve constants defined in the module.

Parameters
None
Returns
dictDictionary with constant names as keys and their values as values.
def getFile(self) -> str: (source)

Return the file path of the module.

Returns
strThe absolute file path of the module.
def getFunctions(self) -> dict: (source)

Return a dictionary of functions defined in the module.

Parameters
None
Returns
dictDictionary with function names as keys and function objects as values.
def getImports(self) -> dict: (source)

Retrieve imported modules from the module.

Returns
dictDictionary mapping import names to module objects.
def getModule(self) -> object: (source)

Return the imported module object.

Returns
objectThe imported module object.
def getPrivateAsyncFunctions(self) -> dict: (source)

Return private asynchronous functions defined in the module.

Returns
dictDictionary with function names as keys and function objects as values.
def getPrivateClasses(self) -> dict: (source)

Return a dictionary of private classes defined in the module.

Parameters
None
Returns
dictDictionary with class names as keys and class objects as values.
def getPrivateConstants(self) -> dict: (source)

Retrieve private constants defined in the module.

Parameters
None
Returns
dictDictionary with constant names as keys and their values as values.
def getPrivateFunctions(self) -> dict: (source)

Return private functions defined in the module.

Parameters
None
Returns
dictDictionary mapping function names to function objects.
def getPrivateSyncFunctions(self) -> dict: (source)

Return private synchronous functions defined in the module.

Parameters
None
Returns
dictDictionary with function names as keys and function objects as values.
def getProtectedAsyncFunctions(self) -> dict: (source)

Return protected asynchronous functions defined in the module.

Parameters
None
Returns
dictDictionary mapping function names to function objects.
def getProtectedClasses(self) -> dict: (source)

Return a dictionary of protected classes defined in the module.

Parameters
None
Returns
dictDictionary with class names as keys and class objects as values.
def getProtectedConstants(self) -> dict: (source)

Return protected constants defined in the module.

Parameters
None
Returns
dictDictionary with constant names as keys and their values as values.
def getProtectedFunctions(self) -> dict: (source)

Return a dictionary of protected functions defined in the module.

Parameters
None
Returns
dictDictionary mapping protected function names to function objects.
def getProtectedSyncFunctions(self) -> dict: (source)

Return protected synchronous functions defined in the module.

Parameters
None
Returns
dictDictionary mapping function names to function objects.
def getPublicAsyncFunctions(self) -> dict: (source)

Return a dictionary of public asynchronous functions in the module.

Parameters
None
Returns
dictDictionary mapping function names to function objects.
def getPublicClasses(self) -> dict: (source)

Return a dictionary of public classes defined in the module.

Parameters
None
Returns
dictDictionary with class names as keys and class objects as values.
def getPublicConstants(self) -> dict: (source)

Retrieve public constants defined in the module.

Parameters
None
Returns
dictDictionary with constant names as keys and their values as values.
def getPublicFunctions(self) -> dict: (source)

Return a dictionary of public functions defined in the module.

Parameters
None
Returns
dictDictionary mapping function names to function objects.
def getPublicSyncFunctions(self) -> dict: (source)

Return a dictionary of public synchronous functions in the module.

Parameters
None
Returns
dictDictionary mapping function names to function objects.
def getSourceCode(self) -> str: (source)

Retrieve the source code of the module.

Returns
strThe source code of the module as a string.
Raises
ValueErrorIf the source code cannot be read from the module file.
def hasClass(self, class_name: str) -> bool: (source)

Check if a class with the specified name exists in the module.

Parameters
class_name:strName of the class to check.
Returns
boolTrue if the class exists in the module, otherwise False.
def removeClass(self, class_name: str) -> bool: (source)

Remove a class from the module.

Parameters
class_name:strName of the class to remove.
Returns
boolTrue if the class was removed successfully.
Raises
ValueErrorIf class_name is not a valid identifier or if the class does not exist.
def setClass(self, class_name: str, cls: type) -> bool: (source)

Set a class in the module.

Parameters
class_name:strName of the class to set.
cls:typeClass object to set.
Returns
boolTrue if the class was set successfully.
Raises
ValueErrorIf cls is not a class type, if class_name is not a valid identifier, or if class_name is a reserved keyword.
__memory_cache: dict = (source)

Undocumented

__module = (source)

Undocumented