anod.driver

Anod driver for executing primitives.

Module Contents

Classes

AnodDriver

Driver for executing Anod primitive operations.

Functions

primitive_check(→ collections.abc.Callable[[F], F])

Check that a primitive exists and the Anod instance is activated.

Attributes

logger

F

anod.driver.logger
anod.driver.F
anod.driver.primitive_check() collections.abc.Callable[[F], F]

Check that a primitive exists and the Anod instance is activated.

class anod.driver.AnodDriver(anod_instance: e3.anod.spec.Anod, store: e3.store.backends.base.Store)

Driver for executing Anod primitive operations.

activate(sandbox: e3.anod.sandbox.SandBox, spec_repository: e3.anod.loader.AnodSpecRepository) None

Activate the Anod instance by binding it to a sandbox.

Parameters:
  • sandbox – the sandbox to bind to

  • spec_repository – the specification repository

call(action: str) Any

Call an Anod action.

Parameters:

action – the action (build, install, test, …)

static unknown_action() Literal[False]

Handle unknown actions.

Returns:

False

download() None

Run the download primitive.