Registry /
type-stubs / mypy-boto3-cloudfront-keyvaluestore
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.2MB
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.
CloudFrontKeyValueStoreClient
✓ from mypy_boto3_cloudfront_keyvaluestore import CloudFrontKeyValueStoreClient
✗ from mypy_boto3_cloudfront_keyvaluestore import CloudFrontKeyValueStoreClient
Demonstrates how to import and use the `CloudFrontKeyValueStoreClient` type hint to annotate a boto3 client, enabling static type checking for your CloudFrontKeyValueStore operations.
import boto3
from mypy_boto3_cloudfront_keyvaluestore.client import CloudFrontKeyValueStoreClient
def get_key_value_client() -> CloudFrontKeyValueStoreClient:
"""Gets a typed CloudFront KeyValueStore client."""
client: CloudFrontKeyValueStoreClient = boto3.client("cloudfront-keyvaluestore")
return client
# Example usage (requires an AWS setup, e.g., via ~/.aws/credentials)
if __name__ == "__main__":
try:
cfkvs_client = get_key_value_client()
print(f"Successfully created CloudFront KeyValueStore client: {cfkvs_client.meta.region_name}")
# You can now use cfkvs_client with type hints
# For example, to list key value stores (if you have any):
# response = cfkvs_client.list_key_value_stores()
# print(response)
except Exception as e:
print(f"Error creating client: {e}")
Debug
Known issues
breakingPython 3.8 support has been removed since `mypy-boto3-builder` version 8.12.0. If you are using `mypy-boto3-cloudfront-keyvaluestore` version 1.42.3 or newer, your project must use Python 3.9 or higher.fixUpgrade your Python environment to 3.9 or later. If unable to upgrade Python, pin `mypy-boto3-cloudfront-keyvaluestore` to an older version (e.g., <1.42.3) that was built with `mypy-boto3-builder` versions supporting Python 3.8.
affects: >=1.42.3 (aligned with builder >=8.12.0)
gotchaThe version of `mypy-boto3-cloudfront-keyvaluestore` must closely match your installed `boto3` version. Mismatched versions can lead to incorrect or missing type hints, causing MyPy errors or silently allowing runtime issues.fixAlways install `mypy-boto3-cloudfront-keyvaluestore` with the same major and minor version as your `boto3` package. For example, if you use `boto3==1.42.3`, install `mypy-boto3-cloudfront-keyvaluestore==1.42.3`.
affects: All versions
breakingStarting with `mypy-boto3-builder` version 8.9.0, some TypeDef names were changed to be shorter (e.g., `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`) and conflicting `Extra` postfixes were reordered. While this specific service might not be directly affected, be aware of potential TypeDef renaming if migrating existing code using `mypy-boto3`.fixReview your code for direct imports or references to `TypeDef` classes from `mypy-boto3` packages after upgrading. Update class names according to the new conventions, often found in the generated `type_defs.pyi` files or release notes.
affects: Generated packages from builder >=8.9.0
gotchaBeginning with `mypy-boto3-builder` version 8.12.0, all generated packages migrated to PEP 561. This change is generally beneficial but might require ensuring your build system or `mypy` configuration correctly discovers the stubs, especially in complex project setups or when using `pip install -e .` (editable installs).fixFor editable installs, ensure `pyproject.toml` or `setup.py` correctly declares the package as `py.typed`. If `mypy` has trouble finding stubs, verify your `mypy` configuration (`mypy.ini`) and environment variables (`MYPYPATH`).
affects: >=1.42.3 (aligned with builder >=8.12.0)
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredProvides the runtime functionality for which these type stubs are generated. The stub version must match your boto3 version.
types-botocore-cloudfront-keyvaluestorerequiredThis package is a direct dependency that provides the underlying botocore type definitions for the service.