Skip to content

Personalize module#

Index > Personalize

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

How to install#

You can generate type annotations for boto3 package locally with mypy_boto3_builder. Use uv for build isolation.

  1. Run mypy-boto3-builder in your package root directory: uvx --with 'boto3==1.35.86' mypy_boto3_builder
  2. Select boto3 AWS SDK.
  3. Add Personalize service.
  4. Use provided commands to install generated packages.

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 types-boto3 for Personalize service.

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

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

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

How to uninstall#

python -m pip uninstall -y types-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 types_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 types_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 types_boto3_personalize.literals import BatchInferenceJobModeType

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

Type definitions#

Type annotations for type definitions used in methods and schema.