Skip to content

shipany.bot.runtime

shipany.bot.runtime package

Submodules

shipany.bot.runtime.context module

pydantic model shipany.bot.runtime.context.RuntimeContext

Bases: BaseModel

The runtime context to provide the runtime information.

field secrets : Mapping[str, str] [Optional]

The secrets to provide to the runtime.

shipany.bot.runtime.context.runtime_context()

Provide the runtime context as a context manager.

  • Yields: RuntimeContext — The runtime context.
  • Return type: AsyncIterator[RuntimeContext]

shipany.bot.runtime.events_handler module

async shipany.bot.runtime.events_handler.handle(activation, steps, event)

Handle the activation. The handler is responsible for checking the preconditions and executing the steps.

shipany.bot.runtime.preconditions module

shipany.bot.runtime.preconditions.check_preconditions(context, condition)

Check the preconditions of event activation.

Raises:— : ActivationPreconditionNotMeetError: The condition is not met.

Module contents