{"id":3608,"library":"mypy-boto3-kinesis-video-media","title":"mypy-boto3-kinesis-video-media Type Stubs","description":"mypy-boto3-kinesis-video-media provides type annotations for the `boto3` Kinesis Video Media service, enabling static type checking with tools like Mypy. It is part of the `mypy-boto3` project which generates comprehensive type stubs for all AWS services supported by `boto3`. The current version is 1.42.3, and new versions are released frequently, synchronized with `boto3`/`botocore` updates.","status":"active","version":"1.42.3","language":"python","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["AWS","Boto3","Type Hinting","Mypy","Stubs","Kinesis Video Media"],"install":[{"cmd":"pip install mypy-boto3-kinesis-video-media","lang":"bash","label":"Install service stubs"},{"cmd":"pip install boto3","lang":"bash","label":"Install runtime dependency (if not already)"}],"dependencies":[],"imports":[{"wrong":"from mypy_boto3_kinesis_video_media import KinesisVideoMediaClient","symbol":"KinesisVideoMediaClient","correct":"from mypy_boto3_kinesis_video_media import KinesisVideoMediaClient"}],"quickstart":{"code":"import boto3\nfrom typing import TYPE_CHECKING\n\n# These type imports are only needed for explicit annotations during type checking.\n# Mypy often discovers them automatically if the stubs are installed.\nif TYPE_CHECKING:\n    from mypy_boto3_kinesis_video_media.client import KinesisVideoMediaClient\n    from mypy_boto3_kinesis_video_media.type_defs import GetMediaInputRequestTypeDef\n\n\ndef get_kinesis_video_media_client():\n    # In a real application, ensure credentials/region are configured\n    # via environment variables, ~/.aws/credentials, or boto3 session config.\n    # For this example, we assume default configuration.\n    client = boto3.client(\"kinesis-video-media\")\n    \n    # For static type checking with Mypy, you can explicitly annotate the client.\n    if TYPE_CHECKING:\n        typed_client: KinesisVideoMediaClient = client\n        # Example of using a TypedDict from the stubs\n        get_media_params: GetMediaInputRequestTypeDef = {\n            \"StreamARN\": \"arn:aws:kinesisvideo:REGION:ACCOUNT_ID:stream/YOUR_STREAM/1234567890123\",\n            \"StartSelector\": {\"StartSelectorType\": \"NOW\"}\n        }\n        print(f\"Client with type hints ready: {typed_client}\")\n        # Mypy will now validate calls to `typed_client` based on KinesisVideoMedia API.\n        # Example (commented out as it requires a live stream and specific permissions):\n        # response = typed_client.get_media(**get_media_params)\n        # print(f\"Response: {response}\")\n    else:\n        print(f\"Runtime client: {client}\")\n\nget_kinesis_video_media_client()","lang":"python","description":"This quickstart demonstrates how to obtain a `boto3` Kinesis Video Media client and explicitly type it using the `mypy-boto3-kinesis-video-media` stubs. This allows static analysis tools like Mypy to provide autocompletion and validate method calls against the AWS API specification. Note that actual API calls require a properly configured AWS environment and valid stream ARNs."},"warnings":[{"fix":"Upgrade your Python environment to 3.9 or newer.","message":"Support for Python 3.8 was removed in `mypy-boto3-builder` version 8.12.0. Any `mypy-boto3-*` packages built with 8.12.0 or newer (including `mypy-boto3-kinesis-video-media` 1.42.3) require Python 3.9 or higher.","severity":"breaking","affected_versions":"mypy-boto3-builder >= 8.12.0 (and dependent service packages)"},{"fix":"Update your code to use the new TypeDef naming conventions. Consult the specific service's `mypy-boto3` documentation for exact changes.","message":"Starting with `mypy-boto3-builder` 8.9.0, TypeDef names for method arguments (especially those ending with 'RequestTypeDef') were shortened, and conflicting TypeDef 'Extra' postfixes were moved. This can break code that directly imports or references specific TypeDefs.","severity":"breaking","affected_versions":"mypy-boto3-builder >= 8.9.0 (and dependent service packages like `mypy-boto3-kinesis-video-media` 1.42.3)"},{"fix":"Install `mypy-boto3-core` for general boto3 typing or install specific `mypy-boto3-SERVICE_NAME` packages for each service your application uses.","message":"These are service-specific stubs. To type-check all `boto3` clients, you typically need to install `mypy-boto3-core` or install a separate `mypy-boto3-*` package for each AWS service you use. Mypy will only provide type hints for the services whose stubs are installed.","severity":"gotcha","affected_versions":"All versions"},{"fix":"No specific fix required for most users, as this improves standard behavior. If issues arise, ensure your `pip` is up-to-date and your environment correctly handles PEP 561 stub-only packages.","message":"The `mypy-boto3` project migrated to PEP 561 compliant packages in `mypy-boto3-builder` version 8.12.0. While this generally improves compatibility and discovery, ensure your build system properly recognizes and uses namespace packages if you encounter issues.","severity":"gotcha","affected_versions":"mypy-boto3-builder >= 8.12.0 (and dependent service packages)"}],"env_vars":null,"search_vec":"'1.42.3':58 'annot':17 'aw':49,70 'boto3':3,11,20,40,53,67,71 'botocor':68 'check':28 'comprehens':44 'current':55 'enabl':25 'frequent':64 'generat':43 'hint':73 'kinesi':4,12,21,76 'like':31 'media':6,14,23,78 'mypi':2,10,32,39,74 'mypy-boto3':38 'mypy-boto3-kinesis-video-media':1,9 'new':60 'part':35 'project':41 'provid':15 'releas':63 'servic':24,50 'static':26 'stub':8,46,75 'support':51 'synchron':65 'tool':30 'type':7,16,27,45,72 'updat':69 'version':56,61 'video':5,13,22,77","created_at":"2026-04-11T17:36:55.598359+00:00","updated_at":"2026-04-16T17:01:20.185544+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\n  File \"/tmp/tmpjghjouq2/venv/lib/python3.12/site-packages/mypy_boto3_kinesis_video_media/__init__.py\", line 22, in <module>\n    from .client import KinesisVideoMediaClient\n  File \"/tmp/tmpjghjouq2/venv/lib/python3.12/site-pac"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"1.43.0","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/youtype/mypy_boto3_builder","docs":"https://youtype.github.io/boto3_stubs_docs/mypy_boto3_kinesis_video_media/","changelog":null,"pypi":"https://pypi.org/project/mypy-boto3-kinesis-video-media/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["type-stubs","aws"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-08-29","next_check":"2026-07-10","install_tag":null}}