Registry /
type-stubs / mypy-boto3-partnercentral-account
Install & Compatibility
Where this runs
tested against v1.43.57 · 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
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.4MB
glibcpy 3.10–3.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.
PartnerCentralAccountClient
✓ from mypy_boto3_partnercentral_account import PartnerCentralAccountClient
✗ from mypy_boto3_partnercentral_account import PartnerCentralAccountClient
Demonstrates how to initialize a type-hinted `PartnerCentralAccountClient` and make a basic API call. This example uses `get_alliance_lead_contact`, which may require specific AWS permissions or an existing setup in AWS Partner Central.
import boto3
from typing import TYPE_CHECKING
import os
if TYPE_CHECKING:
from mypy_boto3_partnercentral_account.client import PartnerCentralAccountClient
# Optionally import other types like paginators, waiters, or TypeDefs
# from mypy_boto3_partnercentral_account.type_defs import CreatePartnerRequestRequestTypeDef
def get_partnercentral_account_client() -> "PartnerCentralAccountClient":
"""Returns a type-hinted PartnerCentralAccount client."""
# Ensure AWS credentials are set via environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)
# or other boto3 configuration methods.
return boto3.client(
"partnercentral-account",
region_name=os.environ.get("AWS_REGION", "us-east-1")
)
client = get_partnercentral_account_client()
# Example usage: Replace with an actual API call relevant to your use case.
# get_alliance_lead_contact is used here as a simple example that doesn't require complex input.
try:
# This call might require specific permissions or existing resources in your AWS account.
response = client.get_alliance_lead_contact()
print("Successfully called get_alliance_lead_contact (example API call).")
if response:
print(f"Response keys: {list(response.keys())}")
except Exception as e:
print(f"An error occurred: {e}")
print("Ensure AWS credentials are configured and you have permissions for partnercentral-account:GetAllianceLeadContact.")
Debug
Known issues
breakingSupport for Python 3.8 was removed in `mypy-boto3-builder` version 8.12.0. All generated packages, including this one, now require Python 3.9 or newer.fixUpgrade your Python environment to 3.9 or higher.
affects: >=8.12.0 (builder)
breakingThe `mypy-boto3-builder` migrated to PEP 561 packages in version 8.12.0. This change might affect how type checkers or IDEs locate and use the stubs if you are using older or non-standard Python tooling configurations.fixEnsure your type checker (e.g., mypy, pyright) and IDE are updated to recent versions that fully support PEP 561 package layouts.
affects: >=8.12.0 (builder)
breakingTypeDef naming conventions were changed in `mypy-boto3-builder` version 8.9.0. This could lead to `NameError` if you were explicitly importing and using TypeDefs in your code.fixReview your explicit TypeDef imports and update their names according to the new conventions (e.g., `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`).
affects: >=8.9.0 (builder)
gotchaFor PyCharm users, there can be performance issues related to `Literal` overloads in `mypy-boto3` packages. If you experience slowdowns, consider using the `boto3-stubs-lite` version which offers a more RAM-friendly experience at the cost of requiring more explicit type annotations.fixIf PyCharm performance is an issue, install `boto3-stubs-lite` for the service (e.g., `pip install 'boto3-stubs-lite[partnercentral-account]'`) and provide more explicit type hints.
affects: All versions
Upgrade
Version history
1.43.57latest on PyPI · released Jul 27, 2026
Audit
Dependencies
boto3requiredRuntime dependency for the actual AWS SDK. This package provides type stubs for it.
pythonrequiredRequires Python 3.9 or higher.