Registry / aws / aws-cryptography-internal-kms

aws-cryptography-internal-kms

JSON →
library1.11.2pypiunverified

aws-cryptography-internal-kms is an internal Python library published by Amazon Web Services. It is a low-level component, likely providing performance enhancements or specific cryptographic implementations for AWS KMS operations within other AWS SDK components like `botocore` or `boto3`. It is not intended for direct use by end-user applications, lacks public documentation, and its API is subject to change without notice. The current version is 1.11.2. Its release cadence is tied to other AWS SDK component updates.

pip install aws-cryptography-internal-kms
INSTALL
IMPORT
SIG · AWS-CRYPTOGRAPHY-I
A
aws-cryptography-internal-kms
awsenv1.11.2
Install
3.8s avg
Import
Disk
56MB
Pass rate
6/ 10
Env Coverage6 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.11.2 · 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
glibc
py 3.10
✕ build_error
✕ build_error
py 3.11
✓ —
✓ 4.25s
py 3.12
✓ —
✓ 3.8s
py 3.13
✓ —
✓ 3.45s
py 3.9
✕ build_error
✕ build_error
56MB installed
● package 56MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

aws_kms_client
from aws_cryptography_internal_kms import aws_kms_client
This import exposes low-level internal client functionalities, but direct usage is strongly discouraged. Use boto3 for standard KMS operations.

This quickstart explicitly demonstrates how to interact with AWS KMS using `boto3`, which is the standard and recommended approach. The `aws-cryptography-internal-kms` library is an internal component and should not be used directly by end-user applications. The example lists KMS keys, requiring AWS credentials to be configured in the environment or via standard AWS configuration files.

# This library is NOT intended for direct use by end-user applications. # The standard and recommended way to interact with AWS KMS is via boto3. import os import boto3 # Ensure AWS credentials are configured (e.g., via environment variables or ~/.aws/credentials) # For example, by setting AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION_NAME aws_region = os.environ.get('AWS_REGION_NAME', 'us-east-1') # Instantiate a KMS client using boto3 (the recommended approach) kms_client = boto3.client('kms', region_name=aws_region) try: # Example: List up to 5 KMS keys response = kms_client.list_keys(Limit=5) print(f"Successfully listed {len(response['Keys'])} KMS keys using boto3.") # print(response) except Exception as e: print(f"Error interacting with KMS via boto3: {e}") print("Please ensure your AWS credentials are configured correctly.") # Attempting to directly use aws-cryptography-internal-kms is strongly discouraged. # from aws_cryptography_internal_kms import aws_kms_client # print("Direct import of aws-cryptography-internal-kms components is possible ") # print("but is not recommended due to unstable API and lack of documentation.")
Debug
Known issues
breakingThis library is NOT INTENDED FOR DIRECT USE by end-user applications. Its API is internal, unstable, and subject to change without warning, which will lead to frequent breaking changes in user code. Always use `boto3` for AWS KMS interactions.
fix
Migrate any direct usage to `boto3.client('kms')` for stable, supported KMS operations.
affects: All versions
gotchaThere is no official public documentation or support for `aws-cryptography-internal-kms`. Relying on its internal structure for custom solutions is highly discouraged as it will be unmaintainable and unsupported.
fix
Refer to the `boto3` documentation for official AWS SDK interactions.
affects: All versions
gotchaThis package primarily serves as an internal dependency for other AWS SDK components. Installing it directly or attempting to import it for application logic is usually a misstep and indicates a misunderstanding of its purpose.
fix
If you need KMS functionality, ensure `boto3` is installed (`pip install boto3`) and use its well-documented API.
affects: All versions
gotchaThe `requires_python` constraint for this library is `>=3.11.0,<4.0.0`. Attempting to install or use it with Python versions outside this range (e.g., Python 3.10 or Python 4.x) will likely result in installation failures or runtime errors.
fix
Ensure your Python environment is running a compatible version (Python 3.11 or 3.12).
affects: All versions
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'aws_cryptography_internal_kms'
The `aws-cryptography-internal-kms` package is not installed in your Python environment.
fix
Run `pip install aws-cryptography-internal-kms`. However, note that this library is for internal use and direct usage is not recommended.
AttributeError: module 'aws_cryptography_internal_kms' has no attribute 'KMSClient'
You are attempting to use the internal library as if it were a high-level client like `boto3`.
fix
Use `boto3.client('kms')` for standard AWS KMS interactions. The `aws-cryptography-internal-kms` library is not designed for direct public consumption and does not expose a 'KMSClient' attribute for end-user interaction.
ERROR: Could not find a version that satisfies the requirement aws-cryptography-internal-kms (from versions: none)
Your Python version might be incompatible with the package's `Requires-Python` metadata (>=3.11.0,<4.0.0) or there might be network issues.
fix
Ensure you are using Python 3.11 or 3.12. Check your internet connection and PyPI accessibility. If using a custom mirror, ensure it's up to date.
Upgrade
Version history
1.11.2latest on PyPI · released Feb 23, 2026
Audit
Dependencies
botocorerequiredCore dependency for AWS SDK interactions, likely used internally by this component.
Agent activity
31 hits · last 30 days
node
28
OpenAI (training)
1
Resources

No resource links recorded.

aws-cryptography-internal-kms — pip install aws-cryptography-internal-kms · libregistry