Skip to content

PersonalizeRuntime module

Index > PersonalizeRuntime

Auto-generated documentation for PersonalizeRuntime type annotations stubs module types-aiobotocore-personalize-runtime.

How to install

From PyPI with pip

Install types-aioboto3 for PersonalizeRuntime service.

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


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


# standalone installation
python -m pip install types-aiobotocore-personalize-runtime

How to uninstall

python -m pip uninstall -y types-aiobotocore-personalize-runtime

Usage

Code samples can be found in Examples.

PersonalizeRuntimeClient

Type annotations and code completion for session.client("personalize-runtime") as PersonalizeRuntimeClient boto3 documentation

Usage example
from aioboto3.session import Session

from types_aiobotocore_personalize_runtime.client import PersonalizeRuntimeClient


session = Session()
async with session.client("personalize-runtime") as client:
    client: PersonalizeRuntimeClient

Literals

Type annotations for literals used in methods and schema.

Usage example
from types_aiobotocore_personalize_runtime.literals import PersonalizeRuntimeServiceName

def get_value() -> PersonalizeRuntimeServiceName:
    return "personalize-runtime"

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from types_aiobotocore_personalize_runtime.type_defs import GetPersonalizedRankingRequestRequestTypeDef

def get_value() -> GetPersonalizedRankingRequestRequestTypeDef:
    return {
        "campaignArn": ...,
        "inputList": ...,
        "userId": ...,
    }