{"id":27487,"library":"types-aiobotocore-events","title":"types-aiobotocore-events","description":"Type annotations for aiobotocore EventBridge 3.5.0 service, generated with mypy-boto3-builder 8.12.0. Provides static typing for EventBridge interactions with aiobotocore. Current version: 3.5.0, released April 2025. Release cadence matches aiobotocore updates.","status":"active","version":"3.5.0","language":"python","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["types","aiobotocore","eventbridge","type-hints","mypy"],"install":[{"cmd":"pip install types-aiobotocore-events","lang":"bash","label":"pip"}],"dependencies":[{"reason":"Required for type annotations on Python <3.12","package":"typing-extensions","optional":false}],"imports":[{"note":"aiobotocore does not expose type stubs directly; use types_aiobotocore_events package","wrong":"from aiobotocore.events import EventBridgeClient","symbol":"EventBridgeClient","correct":"from types_aiobotocore_events.client import EventBridgeClient"},{"note":"Paginator types are in the paginator submodule","wrong":"from aiobotocore.paginate import ListRulesPaginator","symbol":"ListRulesPaginator","correct":"from types_aiobotocore_events.paginator import ListRulesPaginator"},{"note":"TypeDefs are auto-generated; import from literals or type_defs","wrong":"from typing import TypedDict; class PutEventsRequest(...)","symbol":"PutEventsRequestRequestTypeDef","correct":"from types_aiobotocore_events.literals import PutEventsRequestRequestTypeDef"}],"quickstart":{"code":"import asyncio\nfrom types_aiobotocore_events import EventBridgeClient\n\nasync def main():\n    session = ...  # your aiobotocore session\n    async with session.create_client('events', region_name='us-east-1') as client:\n        # client is type-annotated as EventBridgeClient\n        response = await client.put_events(Entries=[{'Source': 'my.app', 'DetailType': 'test', 'Detail': '{}'}])  # type: ignore\n        print(response)\n\nasyncio.run(main())","lang":"python","description":"Basic usage with async client, enabling type checking for EventBridge operations."},"warnings":[{"fix":"pip install aiobotocore types-aiobotocore-events","message":"The package provides only type stubs; you must install aiobotocore and botocore separately.","severity":"gotcha","affected_versions":"all"},{"fix":"Use Python >=3.9","message":"Python 3.8 is no longer supported since types-aiobotocore 3.x (mypy-boto3-builder 8.12.0+).","severity":"deprecated","affected_versions":">=3.5.0"},{"fix":"Update type imports to use the shorter TypeDef names.","message":"TypeDef names for method arguments were simplified in mypy-boto3-builder 8.9.0 (e.g., CreateDistributionRequestRequestTypeDef → CreateDistributionRequestTypeDef).","severity":"breaking","affected_versions":"types-aiobotocore-events <3.0.0 (if based on builder <8.9.0)"},{"fix":"Align your aiobotocore version with the types package version.","message":"Version numbers for types-aiobotocore-events match the aiobotocore service version, not the builder version. Check the aiobotocore release notes for breaking API changes.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"pip install types-aiobotocore-events","cause":"Package not installed or wrong import path.","error":"ModuleNotFoundError: No module named 'types_aiobotocore_events'"},{"fix":"Ensure aiobotocore is installed: pip install aiobotocore; check that client is created with session.create_client('events').","cause":"Using wrong import or missing aiobotocore installation.","error":"AttributeError: 'EventBridgeClient' object has no attribute 'put_events'"},{"fix":"Add from __future__ import annotations at top of file or upgrade to Python 3.9+.","cause":"Using List[SomeTypeDef] without future annotations import in Python <3.9.","error":"TypeError: 'type' object is not subscriptable"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}