Registry / type-stubs / mypy-boto3-marketplace-reporting

mypy-boto3-marketplace-reporting

JSON →
library1.43.0pypypi✓ verified 23d ago

Type annotations for boto3's MarketplaceReportingService. This package, part of the `mypy-boto3` ecosystem, provides static type checking for AWS SDK for Python (boto3) clients, resources, and their associated data structures. It helps improve code quality by enabling IDE autocomplete and early error detection for `MarketplaceReportingService` operations. It is regularly updated to match `boto3` releases and requires Python >= 3.9.

pip install mypy-boto3-marketplace-reporting
INSTALL
IMPORT
SIG · MYPY-BOTO3-MARKETP
M
mypy-boto3-marketplace-reporting
type-stubspythonv1.43.0
Install
1.6s 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.6s · import 0.000s · 19MB
16MB installed
● package 16MB
Code
Verified usage

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

MarketplaceReportingClient
from mypy_boto3_marketplace_reporting import MarketplaceReportingClient
from mypy_boto3_marketplace_reporting import MarketplaceReportingClient
MarketplaceReportingServiceClient
from mypy_boto3_marketplace_reporting import MarketplaceReportingServiceClient
Client
from mypy_boto3_marketplace_reporting import Client

This quickstart demonstrates how to initialize a `MarketplaceReportingClient` with type annotations. It shows how to use `TYPE_CHECKING` for conditional stub imports, which is common practice to avoid runtime dependencies on stub packages. The example then performs a `list_entitlements` operation, with the response also type-hinted for improved static analysis.

from typing import TYPE_CHECKING import boto3 if TYPE_CHECKING: from mypy_boto3_marketplace_reporting.client import MarketplaceReportingClient from mypy_boto3_marketplace_reporting.type_defs import ListEntitlementsOutputTypeDef def get_marketplace_reporting_client() -> 'MarketplaceReportingClient': """Gets a typed Marketplace Reporting Service client.""" # boto3 client creation without type hint (type checkers will infer via stubs) client = boto3.client('marketplace-reporting') return client # type: ignore client: MarketplaceReportingClient = get_marketplace_reporting_client() # Example usage: List entitlements with type-hinted response # Replace 'YOUR_PRODUCT_CODE' with an actual AWS Marketplace Product Code try: response: ListEntitlementsOutputTypeDef = client.list_entitlements( ProductCode='YOUR_PRODUCT_CODE', MaxResults=5 ) print("Successfully listed entitlements:") for entitlement in response.get('Entitlements', []): print(f" Entitlement ID: {entitlement.get('EntitlementId')}") if response.get('NextToken'): print(f" NextToken: {response['NextToken']}") except client.exceptions.ClientError as e: print(f"Error listing entitlements: {e}")
Debug
Known issues
breakingSupport for Python 3.8 was removed from `mypy-boto3-builder` (version 8.12.0 onwards), impacting all generated `mypy-boto3` stub packages. Projects requiring Python 3.8 should use an older version of `mypy-boto3` stubs or upgrade their Python version.
fix
Upgrade to Python 3.9+ or pin `mypy-boto3-marketplace-reporting` to an earlier version compatible with Python 3.8.
affects: >=8.12.0 of mypy-boto3-builder (impacts mypy-boto3-marketplace-reporting 1.42.3 and newer)
breakingTypeDef naming conventions changed in `mypy-boto3-builder` (version 8.9.0), affecting all generated stub packages. For example, `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`. Existing code explicitly importing these verbose TypeDef names might break.
fix
Update your import paths and TypeDef names to reflect the shorter, standardized conventions. Refer to the specific service's `type_defs` documentation.
affects: >=8.9.0 of mypy-boto3-builder (impacts mypy-boto3-marketplace-reporting 1.42.3 and newer)
gotchaThis package provides only type annotations (`.pyi` files) for `boto3`. It does not include the `boto3` runtime library itself. You must install `boto3` separately to use the AWS SDK functionality at runtime.
fix
Ensure `boto3` is installed in your environment: `pip install boto3`.
affects: All versions
gotchaWhen using `TYPE_CHECKING` for conditional imports (as in the quickstart), Pylint may report `undefined-variable` errors for the conditionally imported types. This is a known issue with Pylint's static analysis.
fix
As a workaround, set the conditionally imported types to `object` in the `else` branch of the `TYPE_CHECKING` block. Example: `if TYPE_CHECKING: from my_module import MyType else: MyType = object`.
affects: All versions when using Pylint with `TYPE_CHECKING` guards
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
20
OpenAI (training)
2
Resources