Install & Compatibility
Where this runs
tested against v1.43.42 · 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.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 19MB
glibcpy 3.10–3.910 runs
installs and imports cleanly · install 2.7s · import 0.000s · 19MB
51MB installed
● package 51MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
ConfigServiceClient
✓ from mypy_boto3_config.client import ConfigServiceClient
✗ from mypy_boto3_config import ConfigServiceClient
This quickstart demonstrates how to initialize a Boto3 ConfigService client and use the `mypy-boto3-config` stubs to add type hints for both the client object and its method responses, enhancing static analysis.
import boto3
from mypy_boto3_config.client import ConfigServiceClient
from mypy_boto3_config.type_defs import DescribeConfigurationRecordersResponseTypeDef
import os
def check_config_recorders() -> None:
# Initialize the Boto3 client, type-hinted with mypy-boto3-config's client type
config_client: ConfigServiceClient = boto3.client(
"config",
region_name=os.environ.get("AWS_REGION", "us-east-1")
)
try:
# Call a method and type-hint its response
response: DescribeConfigurationRecordersResponseTypeDef = config_client.describe_configuration_recorders()
print(f"Configuration recorders found: {len(response['ConfigurationRecorders'])}")
for recorder in response["ConfigurationRecorders"]:
strategy = recorder.get('recordingGroup', {}).get('recordingStrategy', {}).get('recordingStrategyType', 'N/A')
print(f"- {recorder['name']} (Status: {strategy})")
except Exception as e:
print(f"Error describing configuration recorders: {e}")
if __name__ == "__main__":
# Ensure AWS_REGION is set in your environment or replace 'us-east-1'
# For real applications, use proper credential management.
check_config_recorders()
Debug
Known issues
breakingSupport for Python 3.8 has been removed from `mypy-boto3-builder` version 8.12.0 onwards, which generates these stubs. This means `mypy-boto3-config` versions generated by `builder>=8.12.0` will not support Python 3.8.fixUpgrade your Python environment to 3.9 or newer.
affects: mypy-boto3-builder>=8.12.0 (and generated packages)
breakingTypeDef naming conventions changed in `mypy-boto3-builder` 8.9.0. Some deeply nested or conflicting TypeDef names may have been shortened or reordered (e.g., `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`).fixReview and update TypeDef names in your type hints if you encounter `NameError` or type checking failures after upgrading.
affects: mypy-boto3-builder>=8.9.0 (and generated packages)
gotchaThese packages provide type stubs for static analysis (e.g., MyPy) only; they do not include the Boto3 runtime. You must install `boto3` separately for your code to function.fixEnsure `pip install boto3` is run alongside `pip install mypy-boto3-config`.
affects: All versions
gotchaFor optimal type checking accuracy, the version of `mypy-boto3-config` should ideally match or be newer than your installed `boto3` version to reflect the latest AWS API changes.fixRegularly update `mypy-boto3-config` when you update `boto3` to ensure consistency.
affects: All versions
Upgrade
Version history
1.43.42latest on PyPI · released Jul 7, 2026
Audit
Dependencies
boto3requiredProvides the actual AWS SDK runtime, these are only type stubs.
mypyoptionalRequired for static type checking against the stubs.