Examples#
Index > MarketplaceCommerceAnalytics > Examples
Auto-generated documentation for MarketplaceCommerceAnalytics type annotations stubs module types-aiobotocore-marketplacecommerceanalytics.
Client#
Implicit type annotations#
Can be used with types-aiobotocore[marketplacecommerceanalytics]
package installed.
Write your MarketplaceCommerceAnalytics
code as usual,
type checking and code completion should work out of the box.
# MarketplaceCommerceAnalyticsClient usage example
from aiobotocore.session import get_session
session = get_session()
async with session.create_client("marketplacecommerceanalytics") as client: # (1)
result = await client.generate_data_set() # (2)
- client: MarketplaceCommerceAnalyticsClient
- result: GenerateDataSetResultTypeDef
Explicit type annotations#
With types-aiobotocore-lite[marketplacecommerceanalytics]
or a standalone types_aiobotocore_marketplacecommerceanalytics
package, you have to explicitly specify
client: MarketplaceCommerceAnalyticsClient
type annotation.
All other type annotations are optional, as types should be discovered automatically. However, these type annotations can be helpful in your functions and methods.
# MarketplaceCommerceAnalyticsClient usage example with type annotations
from aiobotocore.session import get_session
from types_aiobotocore_marketplacecommerceanalytics.client import MarketplaceCommerceAnalyticsClient
from types_aiobotocore_marketplacecommerceanalytics.type_defs import GenerateDataSetResultTypeDef
from types_aiobotocore_marketplacecommerceanalytics.type_defs import GenerateDataSetRequestRequestTypeDef
session = get_session()
async with session.create_client("marketplacecommerceanalytics") as client:
client: MarketplaceCommerceAnalyticsClient
kwargs: GenerateDataSetRequestRequestTypeDef = {...}
result: GenerateDataSetResultTypeDef = await client.generate_data_set(**kwargs)