jina.hubble.hubio module

Module for wrapping Jina Hub API calls.

class jina.hubble.hubio.HubIO(args=None, **kwargs)[source]

Bases: object

HubIO provides the way to interact with Jina Hub registry. You can use it with CLI to package a directory into a Jina Hub and publish it to the world. Examples:

  • jina hub push my_executor/ to push the executor package to Jina Hub

  • jina hub pull UUID8 to download the executor identified by UUID8

To create a HubIO object, simply:

Parameters

args (Optional[Namespace]) – arguments

new()[source]

Create a new executor folder interactively.

Return type

None

push()[source]

Push the executor pacakge to Jina Hub.

Return type

None

pull()[source]

Pull the executor package from Jina Hub.

Return type

str

Returns

the uses string