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 IReflectionCallable(ABC): (source)

Known subclasses: orionis.introspection.ReflectionCallable

View In Hierarchy

Undocumented

Method clearCache Clear all cached reflection data.
Method getCallable Return the callable function associated with this instance.
Method getDependencies Analyze and return the dependency signature of the wrapped callable.
Method getDocstring Return the docstring of the callable.
Method getFile Retrieve the absolute path to the source file of the callable.
Method getModuleName Return the module name where the callable is defined.
Method getModuleWithCallableName Return the fully qualified name of the callable.
Method getName Return the name of the callable.
Method getSignature Return the signature of the callable.
Method getSourceCode Retrieve the source code of the wrapped callable.
Class Variable __slots__ Undocumented
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.

Returns
NoneThis method does not return a value.
def getCallable(self) -> callable: (source)

Return the callable function associated with this instance.

Returns
callableThe function object encapsulated by this instance.
def getDependencies(self) -> Signature: (source)

Analyze 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
SignatureA structure that holds the resolved and unresolved dependencies derived from the callable's parameter annotations.
def getDocstring(self) -> str: (source)

Return the docstring of the callable.

Returns
strThe docstring of the function, or an empty string if not present.
def getFile(self) -> str: (source)

Retrieve the absolute path to the source file of the callable.

Returns
strAbsolute path to the file containing the callable.
Raises
TypeErrorIf the callable is built-in or its file cannot be determined.
def getModuleName(self) -> str: (source)

Return the module name where the callable is defined.

Returns
strThe name of the module in which the function was declared.
def getModuleWithCallableName(self) -> str: (source)

Return the fully qualified name of the callable.

Combines the module name and callable name to create a complete identifier.

Returns
strThe module and callable name separated by a dot.
def getName(self) -> str: (source)

Return the name of the callable.

Returns
strName of the function as defined in its declaration.
def getSignature(self) -> inspect.Signature: (source)

Return the signature of the callable.

Returns
inspect.SignatureThe signature object representing the callable's parameters, default values, and type annotations.
def getSourceCode(self) -> str: (source)

Retrieve 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
strThe source code of the callable function as a string.
Raises
AttributeErrorIf the source code cannot be obtained due to an OSError or if the callable is built-in without accessible source.