Component

BaseComponentAPI

class trinity.extensibility.component.BaseComponentAPI
classmethod configure_parser(arg_parser: argparse.ArgumentParser, subparser: argparse._SubParsersAction) → None

Give the component a chance to amend the Trinity CLI argument parser.

classmethod validate_cli(boot_info: trinity.boot_info.BootInfo) → None

Give the component a chance to do runtime validation of the command line arguments.

Application

class trinity.extensibility.component.Application
classmethod validate_cli(boot_info: trinity.boot_info.BootInfo) → None

Give the component a chance to do runtime validation of the command line arguments.

ComponentAPI

class trinity.extensibility.component.ComponentAPI(boot_info: trinity.boot_info.BootInfo)

AsyncioIsolatedComponent

class trinity.extensibility.asyncio.AsyncioIsolatedComponent(boot_info: trinity.boot_info.BootInfo)
coroutine do_run(event_bus: lahja.base.EndpointAPI) → None

Define the entry point of the component. Should be overwritten in subclasses.