grove.entrypoints package

Grove entrypoints for different supported runtimes.

Submodules

grove.entrypoints.aws_lambda module

Grove AWS Lambda entrypoint.

grove.entrypoints.aws_lambda.entrypoint(event: Dict[str, Any], context: LambdaContext) Dict[str, Any][source]

Grove AWS Lambda wrapper.

Parameters:
  • event – Unused event data for this AWS Lambda invocation.

  • context – Execution context from AWS Lambda.

Returns:

An unused status message.

grove.entrypoints.base module

Provides functions used between entrypoints.

grove.entrypoints.base.configure() List[ConnectorConfig][source]

Fetches all configuration documents and associated secrets.

grove.entrypoints.base.dispatch(config: ConnectorConfig, context: Dict[str, str])[source]

Executes a connector, blocking until complete.

This function is intended to be called via a ThreadPoolExecutor to enable concurrent execution of connectors.

Parameters:
  • config – A connector configuration object for this connector thread.

  • context – Contextual information relating to the current runtime.

grove.entrypoints.base.entrypoint(context: Dict[str, Any])[source]

Provides the main entrypoint for Grove.

This function should be called from various wrappers in order to execute Grove when running under the respective runtime. This is in order to enable use in serverless, containerised, virtualised, and “bare metal” environments.

Parameters:

context – Contextual information relating to the current runtime.

grove.entrypoints.local_process module

Grove local process entrypoint.

grove.entrypoints.local_process.entrypoint()[source]

Grove local process entrypoint.

grove.entrypoints.local_process.runtime_information() Dict[str, str][source]

Attempts to determine the runtime, returning the relevant runtime data.

Returns:

A dictionary of runtime data.