Skip to content

Personalize module#

Index > Personalize

Auto-generated documentation for Personalize type annotations stubs module mypy-boto3-personalize.

How to install#

VSCode extension#

Add AWS Boto3 extension to your VSCode and run AWS boto3: Quick Start command.

Click Modify and select boto3 common and Personalize.

From PyPI with pip#

Install boto3-stubs for Personalize service.

# install with boto3 type annotations
python -m pip install 'boto3-stubs[personalize]'

# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'boto3-stubs-lite[personalize]'

# standalone installation
python -m pip install mypy-boto3-personalize

How to uninstall#

python -m pip uninstall -y mypy-boto3-personalize


Code samples can be found in Examples.


Type annotations and code completion for boto3.client("personalize") as PersonalizeClient boto3 documentation

# PersonalizeClient usage example

from boto3.session import Session

from mypy_boto3_personalize.client import PersonalizeClient

def get_client() -> PersonalizeClient:
    return Session().client("personalize")


Type annotations and code completion for paginators from boto3.client("personalize").get_paginator("...").

# ListBatchInferenceJobsPaginator usage example

from boto3.session import Session

from mypy_boto3_personalize.paginator import ListBatchInferenceJobsPaginator

def get_list_batch_inference_jobs_paginator() -> ListBatchInferenceJobsPaginator:
    return Session().client("personalize").get_paginator("list_batch_inference_jobs"))


Type annotations for literals used in methods and schemas.

# DomainType usage example

from mypy_boto3_personalize.literals import DomainType

def get_value() -> DomainType:
    return "ECOMMERCE"

Typed dictionaries#

Type annotations for typed dictionaries used in methods and schema.

# AlgorithmImageTypeDef usage example

from mypy_boto3_personalize.type_defs import AlgorithmImageTypeDef

def get_value() -> AlgorithmImageTypeDef:
    return {
        "dockerURI": ...,