Registry / type-stubs / mypy-boto3-partnercentral-account

mypy-boto3-partnercentral-account

JSON →
library1.43.57pypypi✓ verified 22d ago

This package provides type annotations for the `boto3` PartnerCentralAccountAPI service, generated by `mypy-boto3-builder`. It enables static type checking with tools like MyPy, Pyright, and enhances IDE auto-completion for `boto3` clients and resources. The `mypy-boto3` ecosystem receives frequent updates, typically aligning with new `boto3` and `botocore` releases.

pip install mypy-boto3-partnercentral-account
INSTALL
IMPORT
SIG · MYPY-BOTO3-PARTNER
M
mypy-boto3-partnercentral-account
type-stubspythonv1.43.57
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.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
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.4MB
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.

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.
fix
Upgrade 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.
fix
Ensure 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.
fix
Review 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.
fix
If 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.
Agent activity
12 hits · last 30 days
node
8
OpenAI (training)
2
Resources
mypy-boto3-partnercentral-account — pip install mypy-boto3-partnercentral-account · libregistry