PersonalizeRuntime module#
Index > PersonalizeRuntime
Auto-generated documentation for PersonalizeRuntime type annotations stubs module types-aiobotocore-personalize-runtime.
How to install#
Generate locally (recommended)#
You can generate type annotations for aioboto3 package locally with mypy-boto3-builder.
Use uv for build isolation.
- Run mypy-boto3-builder in your package root directory:
uvx --with 'aioboto3==14.1.0' mypy-boto3-builder - Select
aioboto3AWS SDK. - Add
PersonalizeRuntimeservice. - Use provided commands to install generated packages.
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
# PersonalizeRuntimeClient 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.
# PersonalizeRuntimeServiceName usage example
from types_aiobotocore_personalize_runtime.literals import PersonalizeRuntimeServiceName
def get_value() -> PersonalizeRuntimeServiceName:
return "personalize-runtime"
Type definitions#
Type annotations for type definitions used in methods and schema.
- GetActionRecommendationsRequestTypeDef
- PredictedActionTypeDef
- ResponseMetadataTypeDef
- GetPersonalizedRankingRequestTypeDef
- PredictedItemTypeDef
- PromotionTypeDef
- GetActionRecommendationsResponseTypeDef
- GetPersonalizedRankingResponseTypeDef
- GetRecommendationsResponseTypeDef
- GetRecommendationsRequestTypeDef