jina.helper

jina.helper.batch_iterator(data, batch_size, axis=0, yield_slice=False)[source]
Return type

Iterator[Any]

jina.helper.parse_arg(v)[source]
Return type

Union[bool, int, str, list, float, None]

jina.helper.load_contrib_module()[source]
Return type

Optional[List[Any]]

class jina.helper.PathImporter[source]

Bases: object

static add_modules(*paths)[source]
Return type

Optional[module]

jina.helper.random_port()[source]
Return type

Optional[int]

jina.helper.get_random_identity()[source]
Return type

str

jina.helper.expand_env_var(v)[source]
Return type

Union[bool, int, str, list, float, None]

jina.helper.is_url(text)[source]
jina.helper.colored(text, color=None, on_color=None, attrs=None)[source]
Return type

str

jina.helper.kwargs2list(kwargs)[source]
Return type

List[str]

jina.helper.get_local_config_source(path, to_stream=False)[source]
Return type

Union[StringIO, TextIO, str]

jina.helper.is_valid_local_config_source(path)[source]
Return type

bool

class jina.helper.cached_property(func)[source]

Bases: object

jina.helper.complete_path(path)[source]
Return type

str