load_handler
Given a path to a handler, return an instance of that handler.
def load_handler(
path: string,
*args: any,
**kwargs: any
) - > object
Given a path to a handler, return an instance of that handler.
Parameters
| Name | Type | Description |
|---|---|---|
| path | string | The full Python dot-notation path to the handler class to be instantiated. |
| *args | any | Variable length argument list passed to the handler's constructor. |
| **kwargs | any | Arbitrary keyword arguments passed to the handler's constructor. |
Returns
| Type | Description |
|---|---|
object | An instance of the handler class specified by the import path, initialized with the provided arguments. |