{"id":24755,"library":"types-aiobotocore-opensearch","title":"types-aiobotocore-opensearch","description":"Type annotations for aiobotocore's OpenSearch service client, providing static type checking support for boto3/aiobotocore OpenSearch operations. Automatically generated from service model using mypy-boto3-builder. Current version 3.5.0, compatible with Python >=3.9. Releases follow aiobotocore versioning, typically updated together with new AWS SDK releases.","status":"active","version":"3.5.0","language":"python","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["types","aiobotocore","opensearch","aws","stubs","mypy"],"install":[{"cmd":"pip install types-aiobotocore-opensearch","lang":"bash","label":"Install types package"}],"dependencies":[{"reason":"Required for TypeDict and other typing constructs on Python <3.12","package":"typing-extensions","optional":false}],"imports":[{"note":"The types package only provides type annotations, not runtime classes. Import the client from aiobotocore.","wrong":"from types_aiobotocore_opensearch import OpenSearchServiceClient","symbol":"OpenSearchServiceClient","correct":"from aiobotocore.client import AioBaseClient"}],"quickstart":{"code":"import asyncio\nfrom aiobotocore.session import get_session\n\nasync def main():\n    session = get_session()\n    async with session.create_client('opensearch', region_name='us-east-1',\n                                     aws_access_key_id=os.environ.get('AWS_ACCESS_KEY_ID', ''),\n                                     aws_secret_access_key=os.environ.get('AWS_SECRET_ACCESS_KEY', '')) as client:\n        # List domain names (example)\n        result = await client.list_domain_names()\n        print(result)\n\nloop = asyncio.get_event_loop()\nloop.run_until_complete(main())","lang":"python","description":"Basic async usage with aiobotocore OpenSearch client. Install types-aiobotocore-opensearch for type checking support."},"warnings":[{"fix":"Import client from aiobotocore or boto3, not from the types package.","message":"Types package provides NO runtime functionality. Attempting to import classes from types_aiobotocore_opensearch will fail at runtime.","severity":"breaking","affected_versions":"all"},{"fix":"Use type: ignore comments or add explicit casts when needed. Report issues to the mypy_boto3_builder repository.","message":"Type annotations are generated from service model; they may not cover all customizations or edge cases. Missing or incorrect type hints are possible.","severity":"gotcha","affected_versions":"all"},{"fix":"Upgrade Python to 3.9 or later.","message":"Python 3.8 support was dropped in mypy-boto3-builder v8.12.0. This types package requires Python >=3.9.","severity":"deprecated","affected_versions":">=8.12.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'pip install types-aiobotocore-opensearch' (hyphenated, not underscored).","cause":"Package not installed or installed under a different name.","error":"ModuleNotFoundError: No module named 'types_aiobotocore_opensearch'"},{"fix":"Import the client from 'aiobotocore' or 'boto3' instead: 'from aiobotocore.client import AioBaseClient' or use 'session.create_client('opensearch')'.","cause":"Trying to import runtime classes from the types stub package, which only provides type hints.","error":"ImportError: cannot import name 'OpenSearchServiceClient' from 'types_aiobotocore_opensearch'"},{"fix":"Use the actual aiobotocore client: 'from aiobotocore.session import get_session'.","cause":"Same as above – the types package does not export any runtime attributes.","error":"AttributeError: module 'types_aiobotocore_opensearch' has no attribute 'OpenSearchServiceClient'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}