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 Reflection: (source)
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 | is |
Determine if the object is an abstract base class. |
| Static Method | is |
Determine if the object is an asynchronous generator. |
| Static Method | is |
Determine if the object is an asynchronous generator function. |
| Static Method | is |
Determine if the object can be awaited. |
| Static Method | is |
Determine if the object is a built-in function or method. |
| Static Method | is |
Determine if the object is a class. |
| Static Method | is |
Determine if the object is a code object. |
| Static Method | is |
Determine if the object is a concrete user-defined class. |
| Static Method | is |
Determine if the object is a coroutine. |
| Static Method | is |
Determine if the object is a coroutine function. |
| Static Method | is |
Determine if the object is a data descriptor. |
| Static Method | is |
Determine if the object is a frame object. |
| Static Method | is |
Determine if the object is a Python function. |
| Static Method | is |
Determine if the object is a generator. |
| Static Method | is |
Determine if the object is a generator function. |
| Static Method | is |
Determine if the provided type is a generic type. |
| Static Method | is |
Determine if the object is a getset descriptor. |
| Static Method | is |
Determine if the object is an instance of a user-defined class. |
| Static Method | is |
Determine if the object is a member descriptor. |
| Static Method | is |
Determine if the object is a method. |
| Static Method | is |
Determine if the object is a method descriptor. |
| Static Method | is |
Determine if the object is a module. |
| Static Method | is |
Determine if the object is a subclass of typing.Protocol. |
| Static Method | is |
Determine if the object is a user-defined or built-in function or method. |
| Static Method | is |
Determine if the object is a traceback object. |
| Static Method | is |
Determine if the object is a construct from the typing module. |
| Static Method | module |
Create a reflection object for a module. |
Create a ReflectionAbstract for an abstract class.
| Parameters | |
abstract:type | The abstract class to reflect. |
| Returns | |
ReflectionAbstract | Reflection object for the provided abstract class. |
Create a ReflectionCallable for a callable object.
| Parameters | |
fn:Callable | The function or method to wrap. |
| Returns | |
ReflectionCallable | Reflection object encapsulating the provided callable. |
Create a ReflectionConcrete for a concrete class.
| Parameters | |
concrete:type | The concrete class to reflect. |
| Returns | |
ReflectionConcrete | Reflection object for the provided concrete class. |
Create a ReflectionInstance for an object instance.
| Parameters | |
instance:Any | Object instance to reflect. |
| Returns | |
ReflectionInstance | Reflection object for the provided instance. |
Determine if the object is an abstract base class.
| Parameters | |
obj:Any | Object to check for abstractness. |
| Returns | |
bool | True if the object is an abstract base class, False otherwise. |
Determine if the object is an asynchronous generator.
| Parameters | |
obj:Any | Object to check. |
| Returns | |
bool | True if the object is an asynchronous generator, False otherwise. |
Determine if the object is an asynchronous generator function.
| Parameters | |
obj:Any | Object to check. |
| Returns | |
bool | True if the object is an asynchronous generator function, False otherwise. |
Determine if the object can be awaited.
| Parameters | |
obj:Any | Object to check for awaitability. |
| Returns | |
bool | True if the object is awaitable, otherwise False. |
Determine if the object is a built-in function or method.
| Parameters | |
obj:Any | Object to check. |
| Returns | |
bool | True if the object is a built-in function or method, False otherwise. |
Determine if the object is a class.
| Parameters | |
obj:Any | Object to check. |
| Returns | |
bool | True if the object is a class, otherwise False. |
Determine if the object is a code object.
| Parameters | |
obj:Any | Object to check. |
| Returns | |
bool | True if the object is a code object, otherwise False. |
Determine if the object is a concrete user-defined class.
| Parameters | |
obj:Any | Object to check for concreteness. |
| Returns | |
bool | True if the object is a concrete class; False otherwise. |
Determine if the object is a coroutine.
| Parameters | |
obj:Any | Object to check. |
| Returns | |
bool | True if the object is a coroutine, otherwise False. |
Determine if the object is a coroutine function.
| Parameters | |
obj:Any | Object to check. |
| Returns | |
bool | True if the object is a coroutine function, otherwise False. |
Determine if the object is a data descriptor.
| Parameters | |
obj:Any | Object to check. |
| Returns | |
bool | True if the object is a data descriptor, otherwise False. |
Determine if the object is a frame object.
| Parameters | |
obj:Any | Object to check. |
| Returns | |
bool | True if the object is a frame object, otherwise False. |
Determine if the object is a Python function.
| Parameters | |
obj:Any | Object to check. |
| Returns | |
bool | True if the object is a function, otherwise False. |
Determine if the object is a generator.
| Parameters | |
obj:Any | Object to check. |
| Returns | |
bool | True if the object is a generator, otherwise False. |
Determine if the object is a generator function.
| Parameters | |
obj:Any | Object to check. |
| Returns | |
bool | True if the object is a generator function, otherwise False. |
Determine if the provided type is a generic type.
| Parameters | |
obj:Any | The type to check. |
| Returns | |
bool | True if the type is generic, otherwise False. |
Determine if the object is a getset descriptor.
| Parameters | |
obj:Any | Object to check. |
| Returns | |
bool | True if the object is a getset descriptor, otherwise False. |
Determine if the object is an instance of a user-defined class.
| Parameters | |
obj:Any | Object to evaluate. |
| Returns | |
bool | True if the object is an instance of a user-defined class, False otherwise. |
Determine if the object is a member descriptor.
| Parameters | |
obj:Any | Object to check. |
| Returns | |
bool | True if the object is a member descriptor, otherwise False. |
Determine if the object is a method.
| Parameters | |
obj:Any | Object to check. |
| Returns | |
bool | True if the object is a method, otherwise False. |
Determine if the object is a method descriptor.
| Parameters | |
obj:Any | Object to check. |
| Returns | |
bool | True if the object is a method descriptor, otherwise False. |
Determine if the object is a module.
| Parameters | |
obj:Any | Object to check. |
| Returns | |
bool | True if the object is a module, otherwise False. |
Determine if the object is a subclass of typing.Protocol.
| Parameters | |
obj:Any | Object or type to evaluate. |
| Returns | |
bool | True if obj is a class that is a subclass of typing.Protocol
(but not Protocol itself), otherwise False. |
Determine if the object is a user-defined or built-in function or method.
| Parameters | |
obj:Any | Object to check. |
| Returns | |
bool | True if the object is a routine, otherwise False. |
Determine if the object is a traceback object.
| Parameters | |
obj:Any | Object to check. |
| Returns | |
bool | True if the object is a traceback object, otherwise False. |
Create a reflection object for a module.
| Parameters | |
module:str | Name of the module to reflect. |
| Returns | |
ReflectionModule | Reflection object for the specified module. |