harp.services.containers

Inheritance diagram of harp.services.containers

class Container[source]

Bases: Container

Override’s rodi container with our way to load services. This is a working implementation, although it would need polishing. Maybe the container should be reworked entirely to avoid the rodi duplications entirely, here the api methods using the builtin rodi providers/resolvers are still available, and that’s maybe not what we want, for the long term.

load(filename, *, bind_settings)[source]

Loads a declarative service collection from a yaml file, and bind settings for config resolution.

Parameters:
  • filename – str

  • bind_settings – dict-like

strict