Type annotations for boto3.SageMaker 1.14.6 service, generated by mypy-boto3-buider 2.2.0
Project description
mypy-boto3-sagemaker
Type annotations for boto3.SageMaker 1.14.6 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.2.0.
More information can be found on boto3-stubs page.
How to install
Make sure you have mypy installed and activated in your IDE.
Install boto3-stubs
for SageMaker
service.
python -m pip install boto3-stubs[sagemaker]
How to use
Client annotations
SageMakerClient
provides annotations for boto3.client("sagemaker")
.
import boto3
from mypy_boto3_sagemaker import SageMakerClient
from mypy_boto3_sagemaker.paginator import (
ListAlgorithmsPaginator,
ListAppsPaginator,
ListAutoMLJobsPaginator,
ListCandidatesForAutoMLJobPaginator,
ListCodeRepositoriesPaginator,
ListCompilationJobsPaginator,
ListDomainsPaginator,
ListEndpointConfigsPaginator,
ListEndpointsPaginator,
ListExperimentsPaginator,
ListFlowDefinitionsPaginator,
ListHumanTaskUisPaginator,
ListHyperParameterTuningJobsPaginator,
ListLabelingJobsForWorkteamPaginator,
ListLabelingJobsPaginator,
ListModelPackagesPaginator,
ListModelsPaginator,
ListMonitoringExecutionsPaginator,
ListMonitoringSchedulesPaginator,
ListNotebookInstanceLifecycleConfigsPaginator,
ListNotebookInstancesPaginator,
ListProcessingJobsPaginator,
ListSubscribedWorkteamsPaginator,
ListTagsPaginator,
ListTrainingJobsForHyperParameterTuningJobPaginator,
ListTrainingJobsPaginator,
ListTransformJobsPaginator,
ListTrialComponentsPaginator,
ListTrialsPaginator,
ListUserProfilesPaginator,
ListWorkteamsPaginator,
SearchPaginator,
)
from mypy_boto3_sagemaker.type_defs import AlgorithmSpecificationTypeDef, ...
from mypy_boto3_sagemaker.waiter import (
EndpointDeletedWaiter,
EndpointInServiceWaiter,
NotebookInstanceDeletedWaiter,
NotebookInstanceInServiceWaiter,
NotebookInstanceStoppedWaiter,
ProcessingJobCompletedOrStoppedWaiter,
TrainingJobCompletedOrStoppedWaiter,
TransformJobCompletedOrStoppedWaiter,
)
client: SageMakerClient = boto3.client("sagemaker")
# now client usage is checked by mypy and IDE should provide code auto-complete
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: SageMakerClient = session.client("sagemaker")
Paginators annotations
mypy_boto3_sagemaker.paginator
module contains type annotations for all paginators.
client: SageMakerClient = boto3.client("sagemaker")
# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
# VSCode requires explicit type annotations
list_algorithms_paginator: ListAlgorithmsPaginator = client.get_paginator("list_algorithms")
list_apps_paginator: ListAppsPaginator = client.get_paginator("list_apps")
list_auto_ml_jobs_paginator: ListAutoMLJobsPaginator = client.get_paginator("list_auto_ml_jobs")
list_candidates_for_auto_ml_job_paginator: ListCandidatesForAutoMLJobPaginator = client.get_paginator("list_candidates_for_auto_ml_job")
list_code_repositories_paginator: ListCodeRepositoriesPaginator = client.get_paginator("list_code_repositories")
list_compilation_jobs_paginator: ListCompilationJobsPaginator = client.get_paginator("list_compilation_jobs")
list_domains_paginator: ListDomainsPaginator = client.get_paginator("list_domains")
list_endpoint_configs_paginator: ListEndpointConfigsPaginator = client.get_paginator("list_endpoint_configs")
list_endpoints_paginator: ListEndpointsPaginator = client.get_paginator("list_endpoints")
list_experiments_paginator: ListExperimentsPaginator = client.get_paginator("list_experiments")
list_flow_definitions_paginator: ListFlowDefinitionsPaginator = client.get_paginator("list_flow_definitions")
list_human_task_uis_paginator: ListHumanTaskUisPaginator = client.get_paginator("list_human_task_uis")
list_hyper_parameter_tuning_jobs_paginator: ListHyperParameterTuningJobsPaginator = client.get_paginator("list_hyper_parameter_tuning_jobs")
list_labeling_jobs_paginator: ListLabelingJobsPaginator = client.get_paginator("list_labeling_jobs")
list_labeling_jobs_for_workteam_paginator: ListLabelingJobsForWorkteamPaginator = client.get_paginator("list_labeling_jobs_for_workteam")
list_model_packages_paginator: ListModelPackagesPaginator = client.get_paginator("list_model_packages")
list_models_paginator: ListModelsPaginator = client.get_paginator("list_models")
list_monitoring_executions_paginator: ListMonitoringExecutionsPaginator = client.get_paginator("list_monitoring_executions")
list_monitoring_schedules_paginator: ListMonitoringSchedulesPaginator = client.get_paginator("list_monitoring_schedules")
list_notebook_instance_lifecycle_configs_paginator: ListNotebookInstanceLifecycleConfigsPaginator = client.get_paginator("list_notebook_instance_lifecycle_configs")
list_notebook_instances_paginator: ListNotebookInstancesPaginator = client.get_paginator("list_notebook_instances")
list_processing_jobs_paginator: ListProcessingJobsPaginator = client.get_paginator("list_processing_jobs")
list_subscribed_workteams_paginator: ListSubscribedWorkteamsPaginator = client.get_paginator("list_subscribed_workteams")
list_tags_paginator: ListTagsPaginator = client.get_paginator("list_tags")
list_training_jobs_paginator: ListTrainingJobsPaginator = client.get_paginator("list_training_jobs")
list_training_jobs_for_hyper_parameter_tuning_job_paginator: ListTrainingJobsForHyperParameterTuningJobPaginator = client.get_paginator("list_training_jobs_for_hyper_parameter_tuning_job")
list_transform_jobs_paginator: ListTransformJobsPaginator = client.get_paginator("list_transform_jobs")
list_trial_components_paginator: ListTrialComponentsPaginator = client.get_paginator("list_trial_components")
list_trials_paginator: ListTrialsPaginator = client.get_paginator("list_trials")
list_user_profiles_paginator: ListUserProfilesPaginator = client.get_paginator("list_user_profiles")
list_workteams_paginator: ListWorkteamsPaginator = client.get_paginator("list_workteams")
search_paginator: SearchPaginator = client.get_paginator("search")
Waiters annotations
mypy_boto3_sagemaker.waiter
module contains type annotations for all waiters.
client: SageMakerClient = boto3.client("sagemaker")
# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
# VSCode requires explicit type annotations
endpoint_deleted_waiter: EndpointDeletedWaiter = client.get_waiter("endpoint_deleted")
endpoint_in_service_waiter: EndpointInServiceWaiter = client.get_waiter("endpoint_in_service")
notebook_instance_deleted_waiter: NotebookInstanceDeletedWaiter = client.get_waiter("notebook_instance_deleted")
notebook_instance_in_service_waiter: NotebookInstanceInServiceWaiter = client.get_waiter("notebook_instance_in_service")
notebook_instance_stopped_waiter: NotebookInstanceStoppedWaiter = client.get_waiter("notebook_instance_stopped")
processing_job_completed_or_stopped_waiter: ProcessingJobCompletedOrStoppedWaiter = client.get_waiter("processing_job_completed_or_stopped")
training_job_completed_or_stopped_waiter: TrainingJobCompletedOrStoppedWaiter = client.get_waiter("training_job_completed_or_stopped")
transform_job_completed_or_stopped_waiter: TransformJobCompletedOrStoppedWaiter = client.get_waiter("transform_job_completed_or_stopped")
Typed dictionations
mypy_boto3_sagemaker.type_defs
module contains structures and shapes assembled
to typed dictionaries for additional type checking.
def get_structure() -> AlgorithmSpecificationTypeDef:
return {
...
}
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_sagemaker
and other installed services.
# Run this command after you add or remove service packages
python -m mypy_boto3
Generated type annotations provide overloads for boto3.client
and boto3.resource
,
boto3.Session.client
and boto3.Session.resource
functions,
so explicit type annotations are not needed.
mypy
supports function overloads as expectedPyCharm
also supports function overloads, but consumes a lot of RAM, use carefully if you have many services installedVSCode
does not currently support function overloads, use explicit type annotations
# Type is discovered correctly by mypy and PyCharm
# VSCode still needs explicit type annotations
client = boto3.client("sagemaker")
session_client = boto3.Session().client("sagemaker")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mypy-boto3-sagemaker-1.14.6.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2f9c3b9935b731b05375be78990e42862d9dd260f67db987e9cbe0339512035 |
|
MD5 | 1cb480e2dce2cb358932f224d99899c8 |
|
BLAKE2b-256 | 666ac7367096de4786837af900234ebfbcf0a809d38df37952f6c415227e9a83 |
Hashes for mypy_boto3_sagemaker-1.14.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bfb6a044c68399d2c7841667f7ad9c88b807695379082bd2b34b863e951ec91 |
|
MD5 | 3a210bba6589729f0f9904e0339d5ae4 |
|
BLAKE2b-256 | 063790f7b114b341332c90c1b6057c9678e9cc0c92ee7f1309b6335f86002fa7 |