jina.parsers.helper

Module for helper functions in the parser

jina.parsers.helper.add_arg_group(parser, title)[source]

Add the arguments for a specific group to the parser

Parameters
  • parser – the parser configure

  • title – the group name

Returns

the new parser

jina.parsers.helper.UUIDString(astring)[source]

argparse type to check if a string is a valid UUID string

Parameters

astring – the string to check

Return type

str

Returns

the string

class jina.parsers.helper.KVAppendAction(option_strings, dest, nargs=None, const=None, default=None, type=None, choices=None, required=False, help=None, metavar=None)[source]

Bases: argparse.Action

argparse action to split an argument into KEY=VALUE form on the first = and append to a dictionary. This is used for setting up –env

class jina.parsers.helper.DockerKwargsAppendAction(option_strings, dest, nargs=None, const=None, default=None, type=None, choices=None, required=False, help=None, metavar=None)[source]

Bases: argparse.Action

argparse action to split an argument into KEY: VALUE form on the first : and append to a dictionary. This is used for setting up arbitrary kwargs for docker sdk