jina.jaml.parsers.default.v1 module
class jina.jaml.parsers.default.v1.V1Parser[source]
Bases: jina.jaml.parsers.base.VersionedYAMLParser
V1 default parser, used as the default parser for objects.
version = ‘1’
the version number this parser designed for
parse(cls, data)[source]
Parameters
cls (
Type
[JAMLCompatible]) – target class type to parse into, must be aJAMLCompatible
typedata (
Dict
) – flow yaml file loaded as python dict
Return type
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