Registry / type-stubs / mypy-boto3-config

mypy-boto3-config

JSON →
library1.43.42pypypi✓ verified 23d ago

mypy-boto3-config provides comprehensive type annotations for the AWS Boto3 ConfigService client, enabling static type checking with tools like MyPy. It is part of the `mypy-boto3` ecosystem, which generates stubs for all Boto3 services. Updates are frequent, often aligned with Boto3 releases and `mypy-boto3-builder` enhancements, with the current version being 1.42.68.

pip install mypy-boto3-config
INSTALL
IMPORT
SIG · MYPY-BOTO3-CONFIG
M
mypy-boto3-config
type-stubspythonv1.43.42
Install
2.7s avg
Import
Disk
51MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
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
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 19MB
glibc
py 3.103.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.
fix
Upgrade 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`).
fix
Review 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.
fix
Ensure `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.
fix
Regularly 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.
Agent activity
31 hits · last 30 days
node
26
OpenAI (training)
2
Resources
mypy-boto3-config — pip install mypy-boto3-config · libregistry