Python API#
This section includes the API documentation from the jina
codebase. These are automatically extracted from the docstrings in the code.
- jina package
- Subpackages
- jina.clients package
- Subpackages
- Submodules
- Module contents
- jina.helloworld package
- jina.hubble package
- Submodules
- jina.hubble.helper module
get_hub_packages_dir()
get_cache_db()
get_download_cache_dir()
get_hubble_url_v1()
get_hubble_url_v2()
parse_hub_uri()
is_valid_huburi()
md5file()
unpack_package()
archive_package()
download_with_resume()
upload_file()
disk_cache_offline()
is_requirements_installed()
install_requirements()
HubbleReturnStatus
HubbleReturnStatus.UNKNOWN_ERROR
HubbleReturnStatus.OK
HubbleReturnStatus.PARAM_VALIDATION_ERROR
HubbleReturnStatus.SQL_CREATION_ERROR
HubbleReturnStatus.DATA_STREAM_BROKEN_ERROR
HubbleReturnStatus.UNEXPECTED_MIME_TYPE_ERROR
HubbleReturnStatus.SSO_LOGIN_REQUIRED
HubbleReturnStatus.AUTHENTICATION_FAILED
HubbleReturnStatus.AUTHENTICATION_REQUIRED
HubbleReturnStatus.OPERATION_NOT_ALLOWED
HubbleReturnStatus.INTERNAL_RESOURCE_NOT_FOUND
HubbleReturnStatus.RPC_METHOD_NOT_FOUND
HubbleReturnStatus.REQUESTED_ENTITY_NOT_FOUND
HubbleReturnStatus.INTERNAL_RESOURCE_METHOD_NOT_ALLOWED
HubbleReturnStatus.INCOMPATIBLE_METHOD_ERROR
HubbleReturnStatus.INTERNAL_RESOURCE_ID_CONFLICT
HubbleReturnStatus.RESOURCE_POLICY_DENY
HubbleReturnStatus.TOO_LARGE_FILE
HubbleReturnStatus.INTERNAL_DATA_CORRUPTION
HubbleReturnStatus.IDENTIFIER_NAMESPACE_OCCUPIED
HubbleReturnStatus.SUBMITTED_DATA_MALFORMED
HubbleReturnStatus.EXTERNAL_SERVICE_FAILURE
HubbleReturnStatus.DOWNSTREAM_SERVICE_FAILURE
HubbleReturnStatus.SERVER_INTERNAL_ERROR
HubbleReturnStatus.DOWNSTREAM_SERVICE_ERROR
HubbleReturnStatus.SERVER_SUBPROCESS_ERROR
HubbleReturnStatus.SANDBOX_BUILD_NOT_FOUND
HubbleReturnStatus.NOT_IMPLEMENTED_ERROR
HubbleReturnStatus.RESPONSE_STREAM_CLOSED
NormalizerErrorCode
get_hubble_error_message()
- jina.hubble.hubapi module
- jina.hubble.hubio module
- jina.hubble.requirements module
- jina.hubble.helper module
- Module contents
- Submodules
- jina.jaml package
- jina.logging package
- jina.orchestrate package
- Subpackages
- jina.orchestrate.deployments package
- Subpackages
- Module contents
BaseDeployment
Deployment
Deployment.needs
Deployment.update_pod_args()
Deployment.update_worker_pod_args()
Deployment.is_sandbox
Deployment.tls_enabled
Deployment.external
Deployment.protocol
Deployment.first_pod_args
Deployment.host
Deployment.port
Deployment.ports
Deployment.dockerized_uses
Deployment.head_args
Deployment.uses_before_args
Deployment.uses_after_args
Deployment.all_args
Deployment.num_pods
Deployment.activate()
Deployment.get_worker_host()
Deployment.start()
Deployment.wait_start_success()
Deployment.join()
Deployment.is_ready
- jina.orchestrate.flow package
- Submodules
- jina.orchestrate.flow.asyncio module
- jina.orchestrate.flow.base module
Flow
Flow.last_deployment
Flow.needs()
Flow.needs_all()
Flow.add()
Flow.inspect()
Flow.gather_inspect()
Flow.build()
Flow.start()
Flow.num_deployments
Flow.num_pods
Flow.client
Flow.plot()
Flow.port
Flow.host
Flow.monitoring
Flow.port_monitoring
Flow.address_private
Flow.address_public
Flow.block()
Flow.protocol
Flow.workspace
Flow.workspace_id
Flow.env
Flow.expose_endpoint()
Flow.join()
Flow.to_k8s_yaml()
Flow.to_docker_compose_yaml()
Flow.client_args
Flow.gateway_args
Flow.update_network_interface()
- jina.orchestrate.flow.builder module
- Module contents
- Submodules
- jina.orchestrate.pods package
- jina.orchestrate.deployments package
- Submodules
- Module contents
- Subpackages
- jina.parsers package
- Subpackages
- jina.parsers.hubble package
- jina.parsers.orchestrate package
- Subpackages
- jina.parsers.orchestrate.runtimes package
- Submodules
- Module contents
- Subpackages
- Submodules
- Module contents
- Subpackages
- jina.proto package
- Submodules
- jina.proto.jina_pb2 module
- jina.proto.jina_pb2_grpc module
JinaControlRequestRPCStub
JinaControlRequestRPCServicer
add_JinaControlRequestRPCServicer_to_server()
JinaControlRequestRPC
JinaDataRequestRPCStub
JinaDataRequestRPCServicer
add_JinaDataRequestRPCServicer_to_server()
JinaDataRequestRPC
JinaSingleDataRequestRPCStub
JinaSingleDataRequestRPCServicer
add_JinaSingleDataRequestRPCServicer_to_server()
JinaSingleDataRequestRPC
JinaRPCStub
JinaRPCServicer
add_JinaRPCServicer_to_server()
JinaRPC
JinaDiscoverEndpointsRPCStub
JinaDiscoverEndpointsRPCServicer
add_JinaDiscoverEndpointsRPCServicer_to_server()
JinaDiscoverEndpointsRPC
- jina.proto.serializer module
- Module contents
- Submodules
- jina.schemas package
- jina.serve package
- Subpackages
- jina.serve.executors package
- jina.serve.runtimes package
- Subpackages
- jina.serve.runtimes.gateway package
- jina.serve.runtimes.head package
- jina.serve.runtimes.request_handlers package
- Submodules
- jina.serve.runtimes.request_handlers.data_request_handler module
DataRequestHandler
DataRequestHandler.handle()
DataRequestHandler.replace_docs()
DataRequestHandler.replace_parameters()
DataRequestHandler.merge_routes()
DataRequestHandler.close()
DataRequestHandler.get_docs_matrix_from_request()
DataRequestHandler.get_parameters_dict_from_request()
DataRequestHandler.get_docs_from_request()
DataRequestHandler.reduce()
DataRequestHandler.reduce_requests()
- jina.serve.runtimes.request_handlers.data_request_handler module
- Module contents
- Submodules
- jina.serve.runtimes.worker package
- Submodules
- jina.serve.runtimes.asyncio module
AsyncNewLoopRuntime
AsyncNewLoopRuntime.run_forever()
AsyncNewLoopRuntime.teardown()
AsyncNewLoopRuntime.async_setup()
AsyncNewLoopRuntime.async_teardown()
AsyncNewLoopRuntime.async_cancel()
AsyncNewLoopRuntime.async_run_forever()
AsyncNewLoopRuntime.activate()
AsyncNewLoopRuntime.is_ready()
AsyncNewLoopRuntime.wait_for_ready_or_shutdown()
- jina.serve.runtimes.base module
- jina.serve.runtimes.monitoring module
- jina.serve.runtimes.asyncio module
- Module contents
- Subpackages
- jina.serve.stream package
- Submodules
- jina.serve.networking module
ReplicaList
GrpcConnectionPool
GrpcConnectionPool.K8S_PORT_USES_AFTER
GrpcConnectionPool.K8S_PORT_USES_BEFORE
GrpcConnectionPool.K8S_PORT
GrpcConnectionPool.ConnectionStubs
GrpcConnectionPool.send_request()
GrpcConnectionPool.send_requests()
GrpcConnectionPool.send_discover_endpoint()
GrpcConnectionPool.send_request_once()
GrpcConnectionPool.send_requests_once()
GrpcConnectionPool.add_connection()
GrpcConnectionPool.remove_connection()
GrpcConnectionPool.start()
GrpcConnectionPool.close()
GrpcConnectionPool.get_grpc_channel()
GrpcConnectionPool.activate_worker_sync()
GrpcConnectionPool.activate_worker()
GrpcConnectionPool.deactivate_worker()
GrpcConnectionPool.send_request_sync()
GrpcConnectionPool.send_requests_sync()
GrpcConnectionPool.get_default_grpc_options()
GrpcConnectionPool.send_request_async()
GrpcConnectionPool.create_async_channel_stub()
GrpcConnectionPool.get_available_services()
in_docker()
host_is_local()
- jina.serve.networking module
- Module contents
- Subpackages
- jina.types package
- jina.clients package
- Submodules
- jina.checker module
- jina.enums module
- jina.excepts module
BaseJinaException
RuntimeFailToStart
RuntimeTerminated
FlowTopologyError
FlowMissingDeploymentError
FlowBuildLevelError
BadConfigSource
BadClient
BadClientCallback
BadClientInput
BadRequestType
BadImageNameError
BadYAMLVersion
NotSupportedError
RuntimeRunForeverEarlyError
DockerVersionError
NoContainerizedError
PortAlreadyUsed
- jina.helper module
batch_iterator()
parse_arg()
random_port()
random_identity()
random_uuid()
expand_env_var()
colored()
ArgNamespace
is_valid_local_config_source()
cached_property
typename()
get_public_ip()
get_internal_ip()
convert_tuple_to_list()
run_async()
deprecated_alias()
retry()
countdown()
CatchAllCleanupContextManager
download_mermaid_url()
get_readable_size()
get_or_reuse_loop()
get_rich_console()
- jina.importer module
- Module contents
AsyncFlow
Client()
Document
DocumentArray
Executor
Flow
Flow.last_deployment
Flow.needs()
Flow.needs_all()
Flow.add()
Flow.inspect()
Flow.gather_inspect()
Flow.build()
Flow.start()
Flow.num_deployments
Flow.num_pods
Flow.client
Flow.plot()
Flow.port
Flow.host
Flow.monitoring
Flow.port_monitoring
Flow.address_private
Flow.address_public
Flow.block()
Flow.protocol
Flow.workspace
Flow.workspace_id
Flow.env
Flow.expose_endpoint()
Flow.join()
Flow.to_k8s_yaml()
Flow.to_docker_compose_yaml()
Flow.client_args
Flow.gateway_args
Flow.update_network_interface()
monitor()
requests()
- Subpackages
- cli package