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

View In Hierarchy

Undocumented

Static Method abstract Create a ReflectionAbstract for an abstract class.
Static Method callable Create a ReflectionCallable for a callable object.
Static Method concrete Create a ReflectionConcrete for a concrete class.
Static Method instance Create a ReflectionInstance for an object instance.
Static Method isAbstract Determine if the object is an abstract base class.
Static Method isAsyncGen Determine if the object is an asynchronous generator.
Static Method isAsyncGenFunction Determine if the object is an asynchronous generator function.
Static Method isAwaitable Determine if the object can be awaited.
Static Method isBuiltIn Determine if the object is a built-in function or method.
Static Method isClass Determine if the object is a class.
Static Method isCode Determine if the object is a code object.
Static Method isConcreteClass Determine if the object is a concrete user-defined class.
Static Method isCoroutine Determine if the object is a coroutine.
Static Method isCoroutineFunction Determine if the object is a coroutine function.
Static Method isDataDescriptor Determine if the object is a data descriptor.
Static Method isFrame Determine if the object is a frame object.
Static Method isFunction Determine if the object is a Python function.
Static Method isGenerator Determine if the object is a generator.
Static Method isGeneratorFunction Determine if the object is a generator function.
Static Method isGeneric Determine if the provided type is a generic type.
Static Method isGetSetDescriptor Determine if the object is a getset descriptor.
Static Method isInstance Determine if the object is an instance of a user-defined class.
Static Method isMemberDescriptor Determine if the object is a member descriptor.
Static Method isMethod Determine if the object is a method.
Static Method isMethodDescriptor Determine if the object is a method descriptor.
Static Method isModule Determine if the object is a module.
Static Method isProtocol Determine if the object is a subclass of typing.Protocol.
Static Method isRoutine Determine if the object is a user-defined or built-in function or method.
Static Method isTraceback Determine if the object is a traceback object.
Static Method isTypingConstruct Determine if the object is a construct from the typing module.
Static Method module Create a reflection object for a module.
def abstract(abstract: type) -> IReflectionAbstract: (source)

Create a ReflectionAbstract for an abstract class.

Parameters
abstract:typeThe abstract class to reflect.
Returns
ReflectionAbstractReflection object for the provided abstract class.
def callable(fn: Callable) -> IReflectionCallable: (source)

Create a ReflectionCallable for a callable object.

Parameters
fn:CallableThe function or method to wrap.
Returns
ReflectionCallableReflection object encapsulating the provided callable.
def concrete(concrete: type) -> IReflectionConcrete: (source)

Create a ReflectionConcrete for a concrete class.

Parameters
concrete:typeThe concrete class to reflect.
Returns
ReflectionConcreteReflection object for the provided concrete class.
def instance(instance: Any) -> IReflectionInstance: (source)

Create a ReflectionInstance for an object instance.

Parameters
instance:AnyObject instance to reflect.
Returns
ReflectionInstanceReflection object for the provided instance.
def isAbstract(obj: Any) -> bool: (source)

Determine if the object is an abstract base class.

Parameters
obj:AnyObject to check for abstractness.
Returns
boolTrue if the object is an abstract base class, False otherwise.
def isAsyncGen(obj: Any) -> bool: (source)

Determine if the object is an asynchronous generator.

Parameters
obj:AnyObject to check.
Returns
boolTrue if the object is an asynchronous generator, False otherwise.
def isAsyncGenFunction(obj: Any) -> bool: (source)

Determine if the object is an asynchronous generator function.

Parameters
obj:AnyObject to check.
Returns
boolTrue if the object is an asynchronous generator function, False otherwise.
def isAwaitable(obj: Any) -> bool: (source)

Determine if the object can be awaited.

Parameters
obj:AnyObject to check for awaitability.
Returns
boolTrue if the object is awaitable, otherwise False.
def isBuiltIn(obj: Any) -> bool: (source)

Determine if the object is a built-in function or method.

Parameters
obj:AnyObject to check.
Returns
boolTrue if the object is a built-in function or method, False otherwise.
def isClass(obj: Any) -> bool: (source)

Determine if the object is a class.

Parameters
obj:AnyObject to check.
Returns
boolTrue if the object is a class, otherwise False.
def isCode(obj: Any) -> bool: (source)

Determine if the object is a code object.

Parameters
obj:AnyObject to check.
Returns
boolTrue if the object is a code object, otherwise False.
def isConcreteClass(obj: Any) -> bool: (source)

Determine if the object is a concrete user-defined class.

Parameters
obj:AnyObject to check for concreteness.
Returns
boolTrue if the object is a concrete class; False otherwise.
def isCoroutine(obj: Any) -> bool: (source)

Determine if the object is a coroutine.

Parameters
obj:AnyObject to check.
Returns
boolTrue if the object is a coroutine, otherwise False.
def isCoroutineFunction(obj: Any) -> bool: (source)

Determine if the object is a coroutine function.

Parameters
obj:AnyObject to check.
Returns
boolTrue if the object is a coroutine function, otherwise False.
def isDataDescriptor(obj: Any) -> bool: (source)

Determine if the object is a data descriptor.

Parameters
obj:AnyObject to check.
Returns
boolTrue if the object is a data descriptor, otherwise False.
def isFrame(obj: Any) -> bool: (source)

Determine if the object is a frame object.

Parameters
obj:AnyObject to check.
Returns
boolTrue if the object is a frame object, otherwise False.
def isFunction(obj: Any) -> bool: (source)

Determine if the object is a Python function.

Parameters
obj:AnyObject to check.
Returns
boolTrue if the object is a function, otherwise False.
def isGenerator(obj: Any) -> bool: (source)

Determine if the object is a generator.

Parameters
obj:AnyObject to check.
Returns
boolTrue if the object is a generator, otherwise False.
def isGeneratorFunction(obj: Any) -> bool: (source)

Determine if the object is a generator function.

Parameters
obj:AnyObject to check.
Returns
boolTrue if the object is a generator function, otherwise False.
def isGeneric(obj: Any) -> bool: (source)

Determine if the provided type is a generic type.

Parameters
obj:AnyThe type to check.
Returns
boolTrue if the type is generic, otherwise False.
def isGetSetDescriptor(obj: Any) -> bool: (source)

Determine if the object is a getset descriptor.

Parameters
obj:AnyObject to check.
Returns
boolTrue if the object is a getset descriptor, otherwise False.
def isInstance(obj: Any) -> bool: (source)

Determine if the object is an instance of a user-defined class.

Parameters
obj:AnyObject to evaluate.
Returns
boolTrue if the object is an instance of a user-defined class, False otherwise.
def isMemberDescriptor(obj: Any) -> bool: (source)

Determine if the object is a member descriptor.

Parameters
obj:AnyObject to check.
Returns
boolTrue if the object is a member descriptor, otherwise False.
def isMethod(obj: Any) -> bool: (source)

Determine if the object is a method.

Parameters
obj:AnyObject to check.
Returns
boolTrue if the object is a method, otherwise False.
def isMethodDescriptor(obj: Any) -> bool: (source)

Determine if the object is a method descriptor.

Parameters
obj:AnyObject to check.
Returns
boolTrue if the object is a method descriptor, otherwise False.
def isModule(obj: Any) -> bool: (source)

Determine if the object is a module.

Parameters
obj:AnyObject to check.
Returns
boolTrue if the object is a module, otherwise False.
def isProtocol(obj: Any) -> bool: (source)

Determine if the object is a subclass of typing.Protocol.

Parameters
obj:AnyObject or type to evaluate.
Returns
boolTrue if obj is a class that is a subclass of typing.Protocol (but not Protocol itself), otherwise False.
def isRoutine(obj: Any) -> bool: (source)

Determine if the object is a user-defined or built-in function or method.

Parameters
obj:AnyObject to check.
Returns
boolTrue if the object is a routine, otherwise False.
def isTraceback(obj: Any) -> bool: (source)

Determine if the object is a traceback object.

Parameters
obj:AnyObject to check.
Returns
boolTrue if the object is a traceback object, otherwise False.
def isTypingConstruct(obj: Any) -> bool: (source)

Determine if the object is a construct from the typing module.

Parameters
obj:AnyObject to evaluate.
Returns
boolTrue if the object is a recognized typing construct from the typing module, otherwise False.
def module(module: str) -> IReflectionModule: (source)

Create a reflection object for a module.

Parameters
module:strName of the module to reflect.
Returns
ReflectionModuleReflection object for the specified module.