jina.peapods.pods.factory

class jina.peapods.pods.factory.PodFactory[source]

Bases: object

A PodFactory is a factory class, abstracting the Pod creation

static build_pod(args, needs=None)[source]

Build an implementation of a BasePod interface

Parameters
  • args (Union[Namespace, Dict]) – pod arguments parsed from the CLI.

  • needs (Optional[Set[str]]) – pod names of preceding pods

Return type

BasePod

Returns

the created BasePod