jina.jaml.parsers.default.v1 module#

class jina.jaml.parsers.default.v1.V1Parser[source]#

Bases: VersionedYAMLParser

V1 default parser, used as the default parser for objects.

version = '1'#

the version number this parser designed for

parse(cls, data, runtime_args=None)[source]#
Parameters
  • cls (Type[JAMLCompatible]) – target class type to parse into, must be a JAMLCompatible type

  • data (Dict) – flow yaml file loaded as python dict

  • runtime_args (Optional[Dict[str, Any]]) – Optional runtime_args to be directly passed without being parsed into a yaml config

Return type

JAMLCompatible

Returns

the YAML parser given the syntax version number

dump(data)[source]#
Parameters

data (JAMLCompatible) – versioned flow object

Return type

Dict

Returns

the dictionary given a versioned flow object