Skip to content

Executors

The executors module provides base classes and utilities for creating and running executors. Executors are responsible for handling specific tasks or requests with input/output validation based on data models.

Overview

Module Description
Base Base executor class for creating task handlers
CLI Command-line interface utilities for executors

Quick Start

from aibs_informatics_core.executors import BaseExecutor

class MyExecutor(BaseExecutor):
    def handle(self, request):
        # Process the request
        return {"result": "success"}

Running from CLI

The library provides a utility function for running executors from the command line:

from aibs_informatics_core.executors import run_cli_executor

# This is typically called as an entry point
run_cli_executor()