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 IReflectionModule(ABC): (source)
Known subclasses: orionis.introspection.ReflectionModule
Undocumented
| Method | clear |
Clear all cached reflection data. |
| Method | get |
Retrieve a class object by its name from the module. |
| Method | get |
Return a dictionary of classes defined in the module. |
| Method | get |
Retrieve a constant value by name from the module. |
| Method | get |
Retrieve constants defined in the module. |
| Method | get |
Return the file path of the module. |
| Method | get |
Return a dictionary of functions defined in the module. |
| Method | get |
Retrieve imported modules from the module. |
| Method | get |
Return the imported module object. |
| Method | get |
Return private asynchronous functions defined in the module. |
| Method | get |
Return a dictionary of private classes defined in the module. |
| Method | get |
Retrieve private constants defined in the module. |
| Method | get |
Return private functions defined in the module. |
| Method | get |
Return private synchronous functions defined in the module. |
| Method | get |
Return protected asynchronous functions defined in the module. |
| Method | get |
Return a dictionary of protected classes defined in the module. |
| Method | get |
Return protected constants defined in the module. |
| Method | get |
Return a dictionary of protected functions defined in the module. |
| Method | get |
Return protected synchronous functions defined in the module. |
| Method | get |
Return a dictionary of public asynchronous functions in the module. |
| Method | get |
Return a dictionary of public classes defined in the module. |
| Method | get |
Retrieve public constants defined in the module. |
| Method | get |
Return a dictionary of public functions defined in the module. |
| Method | get |
Return a dictionary of public synchronous functions in the module. |
| Method | get |
Retrieve the source code of the module. |
| Method | has |
Check if a class with the specified name exists in the module. |
| Method | remove |
Remove a class from the module. |
| Method | set |
Set a class in the module. |
orionis.introspection.ReflectionModuleClear all cached reflection data.
Removes all cached entries stored in the reflection instance. Forces fresh computation on subsequent method calls.
| Parameters | |
| Returns | |
None | This method does not return a value. |
orionis.introspection.ReflectionModuleReturn a dictionary of classes defined in the module.
| Parameters | |
| Returns | |
dict | Dictionary with class names as keys and class objects as values. |
orionis.introspection.ReflectionModuleRetrieve constants defined in the module.
| Parameters | |
| Returns | |
dict | Dictionary with constant names as keys and their values as values. |
orionis.introspection.ReflectionModuleReturn the file path of the module.
| Returns | |
str | The absolute file path of the module. |
orionis.introspection.ReflectionModuleReturn a dictionary of functions defined in the module.
| Parameters | |
| Returns | |
dict | Dictionary with function names as keys and function objects as values. |
orionis.introspection.ReflectionModuleRetrieve imported modules from the module.
| Returns | |
dict | Dictionary mapping import names to module objects. |
orionis.introspection.ReflectionModuleReturn the imported module object.
| Returns | |
object | The imported module object. |
orionis.introspection.ReflectionModuleReturn private asynchronous functions defined in the module.
| Returns | |
dict | Dictionary with function names as keys and function objects as values. |
orionis.introspection.ReflectionModuleReturn a dictionary of private classes defined in the module.
| Parameters | |
| Returns | |
dict | Dictionary with class names as keys and class objects as values. |
orionis.introspection.ReflectionModuleRetrieve private constants defined in the module.
| Parameters | |
| Returns | |
dict | Dictionary with constant names as keys and their values as values. |
orionis.introspection.ReflectionModuleReturn private functions defined in the module.
| Parameters | |
| Returns | |
dict | Dictionary mapping function names to function objects. |
orionis.introspection.ReflectionModuleReturn private synchronous functions defined in the module.
| Parameters | |
| Returns | |
dict | Dictionary with function names as keys and function objects as values. |
orionis.introspection.ReflectionModuleReturn protected asynchronous functions defined in the module.
| Parameters | |
| Returns | |
dict | Dictionary mapping function names to function objects. |
orionis.introspection.ReflectionModuleReturn a dictionary of protected classes defined in the module.
| Parameters | |
| Returns | |
dict | Dictionary with class names as keys and class objects as values. |
orionis.introspection.ReflectionModuleReturn protected constants defined in the module.
| Parameters | |
| Returns | |
dict | Dictionary with constant names as keys and their values as values. |
orionis.introspection.ReflectionModuleReturn a dictionary of protected functions defined in the module.
| Parameters | |
| Returns | |
dict | Dictionary mapping protected function names to function objects. |
orionis.introspection.ReflectionModuleReturn protected synchronous functions defined in the module.
| Parameters | |
| Returns | |
dict | Dictionary mapping function names to function objects. |
orionis.introspection.ReflectionModuleReturn a dictionary of public asynchronous functions in the module.
| Parameters | |
| Returns | |
dict | Dictionary mapping function names to function objects. |
orionis.introspection.ReflectionModuleReturn a dictionary of public classes defined in the module.
| Parameters | |
| Returns | |
dict | Dictionary with class names as keys and class objects as values. |
orionis.introspection.ReflectionModuleRetrieve public constants defined in the module.
| Parameters | |
| Returns | |
dict | Dictionary with constant names as keys and their values as values. |
orionis.introspection.ReflectionModuleReturn a dictionary of public functions defined in the module.
| Parameters | |
| Returns | |
dict | Dictionary mapping function names to function objects. |
orionis.introspection.ReflectionModuleReturn a dictionary of public synchronous functions in the module.
| Parameters | |
| Returns | |
dict | Dictionary mapping function names to function objects. |
orionis.introspection.ReflectionModuleRetrieve the source code of the module.
| Returns | |
str | The source code of the module as a string. |
| Raises | |
ValueError | If the source code cannot be read from the module file. |
orionis.introspection.ReflectionModuleRemove a class from the module.
| Parameters | |
classstr | Name of the class to remove. |
| Returns | |
bool | True if the class was removed successfully. |
| Raises | |
ValueError | If class_name is not a valid identifier or if the class does not exist. |
orionis.introspection.ReflectionModuleSet a class in the module.
| Parameters | |
classstr | Name of the class to set. |
cls:type | Class object to set. |
| Returns | |
bool | True if the class was set successfully. |
| Raises | |
ValueError | If cls is not a class type, if class_name is not a valid identifier,
or if class_name is a reserved keyword. |