Registry / type-stubs / mypy-boto3-personalize-events

mypy-boto3-personalize-events

JSON →
library1.43.0pypypi✓ verified 22d ago

mypy-boto3-personalize-events provides type annotations for the `boto3` PersonalizeEvents service, enabling static type checking with tools like MyPy, PyRight, and improved IDE auto-completion. It is part of the `mypy-boto3` project, which generates stubs for all `boto3` services. This package is currently at version 1.42.3, generated with `mypy-boto3-builder 8.12.0`, and follows a frequent release cadence, often aligning with `boto3` and `mypy-boto3-builder` updates.

pip install mypy-boto3-personalize-events
INSTALL
IMPORT
SIG · MYPY-BOTO3-PERSONA
M
mypy-boto3-personalize-events
type-stubspythonv1.43.0
Install
3.4s avg
Import
Disk
18MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.43.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 19.6MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 3.4s · import 0.000s · 20MB
18MB installed
● package 18MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PersonalizeEventsClient
from mypy_boto3_personalize_events import PersonalizeEventsClient
from mypy_boto3_personalize_events import PersonalizeEventsClient

This quickstart demonstrates how to initialize a `boto3` PersonalizeEvents client with explicit type hints from `mypy-boto3-personalize-events` and perform a `put_events` operation. It includes a `TYPE_CHECKING` guard to ensure the stub dependency is only active during type checking, not runtime, and uses environment variables for AWS credentials.

import boto3 import os from typing import TYPE_CHECKING if TYPE_CHECKING: from mypy_boto3_personalize_events.client import PersonalizeEventsClient from mypy_boto3_personalize_events.type_defs import PutEventsRequestRequestTypeDef def process_personalize_events(session: boto3.Session) -> None: # Client is explicitly typed for full IDE support and static analysis client: PersonalizeEventsClient = session.client("personalize-events") # Example: Put events event_data: PutEventsRequestRequestTypeDef = { "trackingId": "your-tracking-id", "sessionId": "user-session-id-123", "eventList": [ { "eventId": "event-id-1", "eventType": "Purchase", "itemId": "item-id-101", "sentAt": "2026-04-11T13:00:00Z", "properties": "{\"price\": 10.99}" } ] } response = client.put_events(**event_data) print(f"PutEvents response: {response}") if __name__ == "__main__": # Use environment variables for credentials in production aws_session = boto3.Session( aws_access_key_id=os.environ.get('AWS_ACCESS_KEY_ID', 'DUMMY_KEY'), aws_secret_access_key=os.environ.get('AWS_SECRET_ACCESS_KEY', 'DUMMY_SECRET'), region_name=os.environ.get('AWS_REGION', 'us-east-1') ) process_personalize_events(aws_session)
Debug
Known issues
breakingSupport for Python 3.8 was officially removed for all `mypy-boto3` packages with `mypy-boto3-builder` version 8.12.0.
fix
Upgrade to Python 3.9 or higher to continue receiving updates and full type-checking support.
affects: mypy-boto3-builder >=8.12.0
breakingSome generated TypeDefs for method arguments were renamed for brevity (e.g., `CreateDistributionRequestRequestTypeDef` to `CreateDistributionRequestTypeDef`) in `mypy-boto3-builder` 8.9.0. Similarly, conflicting TypeDef `Extra` postfixes were moved to the end.
fix
Review and update TypeDef names in your code if you are upgrading from an older `mypy-boto3-builder` version and were using these specific type definitions.
affects: mypy-boto3-builder >=8.9.0
gotchaWhen using standalone packages like `mypy-boto3-personalize-events` or `boto3-stubs-lite`, explicit type annotations for `session.client()` and `session.resource()` calls are often necessary in IDEs (like VSCode with Pylance) to ensure full auto-completion and correct type inference.
fix
Always explicitly type the client or resource object upon creation, e.g., `client: PersonalizeEventsClient = session.client('personalize-events')`.
affects: All versions
gotchaPyCharm users might experience performance issues due to its handling of `Literal` overloads. For better performance, especially in larger projects, `boto3-stubs-lite` is recommended over full `boto3-stubs` or standalone packages.
fix
Consider installing `boto3-stubs-lite` (e.g., `pip install 'boto3-stubs-lite[personalize-events]'`) and using explicit type annotations, or use a different IDE.
affects: All versions
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredThis package provides type stubs for boto3; boto3 itself must be installed and available at runtime.
boto3-stubs-extractedrequiredCore dependency for generated stubs, contains shared type definitions. This is an implicit dependency if installing the service-specific package.
Agent activity
15 hits · last 30 days
node
12
OpenAI (training)
1
Resources
mypy-boto3-personalize-events — pip install mypy-boto3-personalize-events · libregistry