Registry / type-stubs / mypy-boto3-marketplacecommerceanalytics

mypy-boto3-marketplacecommerceanalytics

JSON →
library1.43.0pypypi✓ verified 23d ago

This package provides static type annotations for the `boto3` Marketplace Commerce Analytics service, enhancing developer experience by enabling IDE autocompletion, type checking with `mypy` or `pyright`, and early detection of potential API usage errors. It is generated by `mypy-boto3-builder 8.12.0` and currently supports `boto3` version `1.42.3`.

pip install mypy-boto3-marketplacecommerceanalytics
INSTALL
IMPORT
SIG · MYPY-BOTO3-MARKETP
M
mypy-boto3-marketplacecommerceanalytics
type-stubspythonv1.43.0
Install
1.8s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.43.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.2MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.8s · import 0.000s · 19MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MarketplaceCommerceAnalyticsClient
from mypy_boto3_marketplacecommerceanalytics import MarketplaceCommerceAnalyticsClient
from mypy_boto3_marketplacecommerceanalytics import MarketplaceCommerceAnalyticsClient

This quickstart demonstrates how to create a type-hinted `MarketplaceCommerceAnalyticsClient` and call the `generate_data_set` method with a type-hinted request payload. It uses `os.environ.get` for AWS credentials and region, making it runnable after setting appropriate environment variables. Replace placeholder values with your actual AWS resource ARNs and bucket names.

import os from datetime import datetime import boto3 from mypy_boto3_marketplacecommerceanalytics.client import MarketplaceCommerceAnalyticsClient from mypy_boto3_marketplacecommerceanalytics.type_defs import GenerateDataSetRequestTypeDef, GenerateDataSetResponseTypeDef def get_marketplace_analytics_client() -> MarketplaceCommerceAnalyticsClient: """Returns a type-annotated MarketplaceCommerceAnalytics client.""" session = boto3.Session( aws_access_key_id=os.environ.get('AWS_ACCESS_KEY_ID', 'DUMMY_KEY'), aws_secret_access_key=os.environ.get('AWS_SECRET_ACCESS_KEY', 'DUMMY_SECRET'), region_name=os.environ.get('AWS_DEFAULT_REGION', 'us-east-1') ) return session.client("marketplacecommerceanalytics") if __name__ == "__main__": client: MarketplaceCommerceAnalyticsClient = get_marketplace_analytics_client() request_params: GenerateDataSetRequestTypeDef = { "DataSetType": "example-data-set-type", "DataSetPublicationDate": datetime(2023, 1, 1), "RoleNameArn": "arn:aws:iam::123456789012:role/MyMarketplaceAnalyticsRole", "DestinationS3BucketName": "my-marketplace-data-bucket", "DestinationS3Prefix": "marketplace-analytics/", "SnsTopicArn": "arn:aws:sns:us-east-1:123456789012:MyMarketplaceAnalyticsTopic", "CustomerDefinedValues": {"key1": "value1"} } try: response: GenerateDataSetResponseTypeDef = client.generate_data_set(**request_params) print(f"Data set generation started. Status: {response.get('DataSetRequestId')}") except client.exceptions.ClientError as e: print(f"Error generating data set: {e}") except Exception as e: print(f"An unexpected error occurred: {e}")
Debug
Known issues
breakingPython 3.8 support has been removed. All `mypy-boto3` packages, including `mypy-boto3-marketplacecommerceanalytics`, now require Python 3.9 or newer.
fix
Upgrade your Python environment to version 3.9 or later.
affects: mypy-boto3-builder >= 8.12.0
breakingThe `mypy-boto3-builder` migrated to PEP 561 compliant packages. While direct `from mypy_boto3_...` imports should generally be unaffected, this change might influence advanced `mypy` configurations or custom import resolvers.
fix
Ensure your `mypy` configuration is up-to-date and leverages standard PEP 561 package discovery. If encountering issues, review `mypy`'s module search path configuration.
affects: mypy-boto3-builder >= 8.12.0
breakingTypeDef naming conventions were changed (e.g., `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`). If you previously relied on auto-generated or inferred `TypeDef` names, they might have changed.
fix
Review your code for `TypeDef` imports and usage, updating them to the new, often shorter, naming conventions. Check the documentation for the specific service's `type_defs` module.
affects: mypy-boto3-builder >= 8.9.0
gotchaFor the best autocompletion and static analysis experience, always explicitly type-annotate your `boto3` client variables with the corresponding `mypy-boto3` client type (e.g., `client: MarketplaceCommerceAnalyticsClient = session.client("marketplacecommerceanalytics")`).
fix
Add explicit type annotations to your `boto3` client and resource objects.
affects: All versions
gotchaThe `mypy-boto3-*` packages are generated against specific `boto3` versions. Using a `mypy-boto3` stub package with a significantly different `boto3` runtime version can lead to mismatches in type hints, missing attributes, or incorrect API signatures.
fix
Align your installed `mypy-boto3-marketplacecommerceanalytics` package version with your `boto3` installation's version to ensure accurate type hints. For example, `mypy-boto3-marketplacecommerceanalytics==1.42.3` is designed for `boto3==1.42.3`.
affects: All versions
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredProvides the AWS SDK for Python, which this package type-annotates.
pythonrequiredRequires Python 3.9 or newer for full compatibility with type features.
Agent activity
25 hits · last 30 days
node
22
OpenAI (training)
2
Resources
mypy-boto3-marketplacecommerceanalytics — pip install mypy-boto3-marketplacecommerceanalytics · libregistry