jina.jaml.parsers.executor.legacy

class jina.jaml.parsers.executor.legacy.LegacyParser[source]

Bases: jina.jaml.parsers.base.VersionedYAMLParser

version = 'legacy'
parse(cls, data)[source]

Return the Flow YAML parser given the syntax version number

Parameters
  • cls (Type[BaseExecutor]) – target class type to parse into, must be a JAMLCompatible type

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

Return type

BaseExecutor

dump(data)[source]

Return the dictionary given a versioned flow object

Parameters

data (BaseExecutor) – versioned executor object

Return type

Dict