Registry /
type-stubs / mypy-boto3-route53profiles
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
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.3MB
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.
Route53ProfilesClient
✓ from mypy_boto3_route53profiles import Route53ProfilesClient
✗ from mypy_boto3_route53profiles import Route53ProfilesClient
This quickstart demonstrates how to initialize a type-hinted `boto3` Route53Profiles client and call a method. `mypy` will use the provided stubs to validate method calls, argument types, and return types, improving code reliability and developer experience.
import boto3
from mypy_boto3_route53profiles.client import Route53ProfilesClient
from mypy_boto3_route53profiles.type_defs import ListProfileAssociationsOutputTypeDef
def get_profile_associations() -> ListProfileAssociationsOutputTypeDef:
# In a real application, boto3 will automatically pick up credentials
# from environment variables, ~/.aws/credentials, or IAM roles.
# For local testing, ensure your AWS credentials are configured.
client: Route53ProfilesClient = boto3.client("route53profiles")
response = client.list_profile_associations(
MaxResults=5 # Example optional parameter
)
print(f"Found {len(response.get('ProfileAssociations', []))} profile associations.")
# Mypy will ensure 'response' has methods like .get() for 'ProfileAssociations'
# and that 'ProfileAssociations' contains correctly typed dicts.
return response
if __name__ == "__main__":
# To run this code, ensure AWS credentials are set up for boto3.
# For type checking only, you don't need active credentials.
print("This quickstart demonstrates type hinting for boto3's Route53Profiles client.")
print("Run `mypy your_script_name.py` to see the type checking in action.")
# Example of mypy benefits:
client_typed: Route53ProfilesClient = boto3.client("route53profiles")
# client_typed.non_existent_method() # Mypy would flag this as an error
# client_typed.list_profile_associations(InvalidParam=True) # Mypy would flag this
Debug
Known issues
breakingPython 3.8 support was removed starting with `mypy-boto3-builder 8.12.0`. All `mypy-boto3-*` packages generated with this builder version or later no longer support Python 3.8.fixUpgrade your Python environment to 3.9 or newer. Alternatively, pin your `mypy-boto3-builder` version to `<8.12.0` (not recommended for long-term use).
affects: mypy-boto3-builder >= 8.12.0 and corresponding `mypy-boto3-*` service packages.
breakingSome `TypeDef` naming conventions changed with `mypy-boto3-builder 8.9.0`. Specifically, names for packed method arguments became shorter (e.g., `CreateDistributionRequestRequestTypeDef` -> `CreateDistributionRequestTypeDef`), and conflicting `Extra` postfixes were moved (e.g., `CreateDistributionExtraRequestTypeDef` -> `CreateDistributionRequestExtraTypeDef`).fixIf you explicitly import and use these `TypeDef` names in your code, update them to reflect the new naming conventions.
affects: mypy-boto3-builder >= 8.9.0 and corresponding `mypy-boto3-*` service packages.
gotchaThis library provides type stubs only. For your code to function at runtime, you must have the actual `boto3` library installed.fixEnsure `boto3` is installed alongside `mypy-boto3-route53profiles` (e.g., `pip install boto3 mypy-boto3-route53profiles`).
affects: All versions of `mypy-boto3-route53profiles`.
gotchaTo ensure accurate type checking, the version of `mypy-boto3-route53profiles` should ideally match the major and minor version of your installed `boto3` library. Mismatched versions can lead to incorrect type hints for new or changed `boto3` features.fixRegularly update both `boto3` and `mypy-boto3-route53profiles` (e.g., `pip install --upgrade boto3 mypy-boto3-route53profiles`). If issues arise, pin both packages to compatible versions.
affects: All versions.
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredProvides the actual runtime implementation for AWS SDK interactions.
mypyoptionalRequired for static type checking using these stubs.