jina.jaml.parsers.base module#
- class jina.jaml.parsers.base.VersionedYAMLParser[source]#
Bases:
object
Flow YAML parser for specific version
- Every
VersionedYAMLParser
must implement two methods and one class attribute:
- version = 'legacy'#
the version number this parser designed for
- parse(cls, data, runtime_args)[source]#
Return the Flow YAML parser given the syntax version number
- Parameters
cls (
type
) – target class type to parse into, must be aJAMLCompatible
typedata (
Dict
) – flow yaml file loaded as python dictruntime_args (
Optional
[Dict
[str
,Any
]]) – Optional runtime_args to be directly passed without being parsed into a yaml config
- Return type
Union
[ForwardRef
,ForwardRef
]
- Every