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

Usage#

Code samples can be found in Examples.

PersonalizeClient#

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")

Paginators#

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"))

Literals#

Type annotations for literals used in methods and schema.

# BatchInferenceJobModeType usage example

from mypy_boto3_personalize.literals import BatchInferenceJobModeType

def get_value() -> BatchInferenceJobModeType:
    return "BATCH_INFERENCE"

Type definitions#

Type annotations for type definitions used in methods and schema.