ads.opctl package
Subpackages
- ads.opctl.backend package
- ads.opctl.conda package
- ads.opctl.config package
- ads.opctl.diagnostics package
- ads.opctl.distributed package
- Subpackages
- ads.opctl.distributed.common package
- Submodules
- ads.opctl.distributed.common.abstract_cluster_provider module
- ads.opctl.distributed.common.abstract_framework_spec_builder module
- ads.opctl.distributed.common.cluster_config_helper module
- ads.opctl.distributed.common.cluster_provider_factory module
- ads.opctl.distributed.common.cluster_runner module
- ads.opctl.distributed.common.framework_factory module
- Module contents
- ads.opctl.distributed.common package
- Submodules
- ads.opctl.distributed.certificates module
- ads.opctl.distributed.cli module
- ads.opctl.distributed.cmds module
- Module contents
- Subpackages
- ads.opctl.spark package
- ads.opctl.spec package
Submodules
ads.opctl.cli module
ads.opctl.cmds module
ads.opctl.constants module
ads.opctl.utils module
- ads.opctl.utils.build_image(image_type: str, gpu: bool = False, source_folder: Optional[str] = None, dst_image: Optional[str] = None) None
Build an image for opctl.
- Parameters:
image_type (str) – specify the image to build, can take ‘job-local’ or ‘ads-ops-base’, former for running job with conda pack locally, latter for running operators
gpu (bool) – whether to use gpu version of image
source_folder (str) – source folder when building custom operator, to be included in custom image
dst_image (str) – image to save as when building custom operator
- Return type:
None
- ads.opctl.utils.get_docker_client() docker.client.DockerClient
- ads.opctl.utils.get_namespace(auth: dict) str
- ads.opctl.utils.get_oci_region(auth: dict) str
- ads.opctl.utils.get_region_key(auth: dict) str
- ads.opctl.utils.get_service_pack_prefix() Dict
- ads.opctl.utils.is_in_notebook_session()
- ads.opctl.utils.list_ads_operators() dict
- ads.opctl.utils.parse_conda_uri(uri: str) Tuple[str, str, str, str]
- ads.opctl.utils.publish_image(image: str, registry: Optional[str] = None) None
Publish an image.
- Parameters:
image (str) – image name
registry (str) – registry to push to
- Return type:
None
- ads.opctl.utils.run_command(cmd: Union[str, List[str]], cwd: Optional[str] = None, shell: bool = False) Popen
- ads.opctl.utils.run_container(image: str, bind_volumes: Dict, env_vars: Dict, command: str = None, entrypoint: str = None, verbose: bool = False)
- ads.opctl.utils.suppress_traceback(debug: bool = True) None
Decorator to suppress traceback when in debug mode.
- Parameters:
debug (bool) – turn on debug mode or not
- Return type:
None
Module contents
- ads.opctl.set_log_level(level)