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 reflection wrapper with a callable object.
Method __setitem__ Store a value in the cache with the specified key.
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
Instance Variable _cache Undocumented
Instance Variable _docstring Undocumented
Instance Variable _function Undocumented
Instance Variable _module Undocumented
Instance Variable _name 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, fn: callable): (source)

Initialize the reflection wrapper with a callable object.

Parameters
fn:callableThe function, method, or lambda to be wrapped.
Returns
NoneThis method does not return a value.
Raises
TypeErrorIf fn is not a function, method, or lambda.
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.

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.

Delegates to ReflectDependencies to inspect each parameter and resolve its type annotation into a dependency descriptor. The result is stored in the shared cache so that repeated calls skip reanalysis.

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.

Undocumented

_docstring: str = (source)

Undocumented

_function = (source)

Undocumented

Undocumented

Undocumented