Skip to content

MediaPackage module#

Index > MediaPackage

Auto-generated documentation for MediaPackage type annotations stubs module types-aiobotocore-mediapackage.

How to install#

From PyPI with pip#

Install types-aiobotocore for MediaPackage service.

# install with aiobotocore type annotations
python -m pip install 'types-aiobotocore[mediapackage]'


# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'types-aiobotocore-lite[mediapackage]'


# standalone installation
python -m pip install types-aiobotocore-mediapackage

How to uninstall#

python -m pip uninstall -y types-aiobotocore-mediapackage

Usage#

Code samples can be found in Examples.

MediaPackageClient#

Type annotations and code completion for session.create_client("mediapackage") as MediaPackageClient boto3 documentation

# MediaPackageClient usage example

from aiobotocore.session import get_session

from types_aiobotocore_mediapackage.client import MediaPackageClient


session = get_session()
async with session.create_client("mediapackage") as client:
    client: MediaPackageClient

Paginators#

Type annotations and code completion for paginators from session.create_client("mediapackage").get_paginator("...").

# ListChannelsPaginator usage example

from types_aiobotocore_mediapackage.paginator import ListChannelsPaginator

def get_list_channels_paginator() -> ListChannelsPaginator:
    return client.get_paginator("list_channels"))

Literals#

Type annotations for literals used in methods and schema.

# AdMarkersType usage example

from types_aiobotocore_mediapackage.literals import AdMarkersType

def get_value() -> AdMarkersType:
    return "DATERANGE"

Type definitions#

Type annotations for type definitions used in methods and schema.