Skip to content

DataExchange module#

Index > DataExchange

Auto-generated documentation for DataExchange type annotations stubs module mypy-boto3-dataexchange.

How to install#

VSCode extension#

Add AWS Boto3 extension to your VSCode and run AWS boto3: Quick Start command.

Click Modify and select boto3 common and DataExchange.

From PyPI with pip#

Install boto3-stubs for DataExchange service.

# install with boto3 type annotations
python -m pip install 'boto3-stubs[dataexchange]'

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

# standalone installation
python -m pip install mypy-boto3-dataexchange

How to uninstall#

python -m pip uninstall -y mypy-boto3-dataexchange


Code samples can be found in Examples.


Type annotations and code completion for boto3.client("dataexchange") as DataExchangeClient boto3 documentation

# DataExchangeClient usage example

from boto3.session import Session

from mypy_boto3_dataexchange.client import DataExchangeClient

def get_client() -> DataExchangeClient:
    return Session().client("dataexchange")


Type annotations and code completion for paginators from boto3.client("dataexchange").get_paginator("...").

# ListDataSetRevisionsPaginator usage example

from boto3.session import Session

from mypy_boto3_dataexchange.paginator import ListDataSetRevisionsPaginator

def get_list_data_set_revisions_paginator() -> ListDataSetRevisionsPaginator:
    return Session().client("dataexchange").get_paginator("list_data_set_revisions"))


Type annotations for literals used in methods and schemas.

# AssetTypeType usage example

from mypy_boto3_dataexchange.literals import AssetTypeType

def get_value() -> AssetTypeType:
    return "API_GATEWAY_API"

Typed dictionaries#

Type annotations for typed dictionaries used in methods and schema.

# ApiGatewayApiAssetTypeDef usage example

from mypy_boto3_dataexchange.type_defs import ApiGatewayApiAssetTypeDef

def get_value() -> ApiGatewayApiAssetTypeDef:
    return {
        "ApiDescription": ...,