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 IReflectionCallable(ABC): (source)
Known subclasses: orionis.introspection.ReflectionCallable
Undocumented
| Method | clear |
Clear all cached reflection data. |
| Method | get |
Return the callable function associated with this instance. |
| Method | get |
Analyze and return the dependency signature of the wrapped callable. |
| Method | get |
Return the docstring of the callable. |
| Method | get |
Retrieve the absolute path to the source file of the callable. |
| Method | get |
Return the module name where the callable is defined. |
| Method | get |
Return the fully qualified name of the callable. |
| Method | get |
Return the name of the callable. |
| Method | get |
Return the signature of the callable. |
| Method | get |
Retrieve the source code of the wrapped callable. |
| Class Variable | __slots__ |
Undocumented |
orionis.introspection.ReflectionCallableClear all cached reflection data.
Removes all cached entries stored in the reflection instance. Forces fresh computation on subsequent method calls.
| Returns | |
None | This method does not return a value. |
orionis.introspection.ReflectionCallableReturn the callable function associated with this instance.
| Returns | |
callable | The function object encapsulated by this instance. |
orionis.introspection.ReflectionCallableAnalyze and return the dependency signature of the wrapped callable.
Inspects the callable's parameters and resolves each one into a typed dependency descriptor. The result is cached so that repeated calls do not re-run the analysis.
| Returns | |
Signature | A structure that holds the resolved and unresolved dependencies derived from the callable's parameter annotations. |
orionis.introspection.ReflectionCallableReturn the docstring of the callable.
| Returns | |
str | The docstring of the function, or an empty string if not present. |
orionis.introspection.ReflectionCallableReturn the module name where the callable is defined.
| Returns | |
str | The name of the module in which the function was declared. |
orionis.introspection.ReflectionCallableReturn the fully qualified name of the callable.
Combines the module name and callable name to create a complete identifier.
| Returns | |
str | The module and callable name separated by a dot. |
orionis.introspection.ReflectionCallableReturn the name of the callable.
| Returns | |
str | Name of the function as defined in its declaration. |
orionis.introspection.ReflectionCallableReturn the signature of the callable.
| Returns | |
inspect.Signature | The signature object representing the callable's parameters, default values, and type annotations. |
orionis.introspection.ReflectionCallableRetrieve the source code of the wrapped callable.
Uses Python's inspect module to extract the complete source code of the callable function from its definition file.
| Returns | |
str | The source code of the callable function as a string. |
| Raises | |
AttributeError | If the source code cannot be obtained due to an OSError or if the callable is built-in without accessible source. |