{"library":"mypy-boto3-payment-cryptography-data","title":"mypy-boto3-payment-cryptography-data Type Stubs","description":"This package provides type annotations for the `boto3` library's `PaymentCryptographyDataPlane` service. It allows for static type checking of `boto3` client calls and responses using tools like `mypy`. The current version is 1.42.12, generated by `mypy-boto3-builder 8.12.0`, and it's released frequently to keep pace with `boto3` updates and AWS service changes.","language":"python","status":"active","last_verified":"Thu May 14","install":{"commands":["pip install mypy-boto3-payment-cryptography-data boto3"],"cli":null},"imports":["from mypy_boto3_payment_cryptography_data.client import PaymentCryptographyDataPlaneClient","from mypy_boto3_payment_cryptography_data.type_defs import ListKeysOutputTypeDef"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import boto3\nfrom mypy_boto3_payment_cryptography_data.client import PaymentCryptographyDataPlaneClient\nfrom mypy_boto3_payment_cryptography_data.type_defs import (\n    ListKeysInputRequestTypeDef,\n    ListKeysOutputTypeDef\n)\nimport os # For accessing environment variables for auth, if needed\n\n# This package provides type stubs for boto3, not the actual client.\n# Ensure boto3 is installed: pip install boto3\n\n# AWS credentials and region should be configured (e.g., via ~/.aws/credentials, environment variables)\n# For example, ensure AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN, AWS_REGION are set or a profile is configured.\n\ndef get_payment_crypto_client() -> PaymentCryptographyDataPlaneClient:\n    \"\"\"Returns a type-hinted PaymentCryptographyDataPlane client.\"\"\"\n    # boto3.client will automatically pick up credentials from environment variables or ~/.aws/credentials\n    return boto3.client(\n        \"payment-cryptography-data\",\n        region_name=os.environ.get(\"AWS_REGION\", \"us-east-1\") # Example: use env var for region\n    )\n\nclient: PaymentCryptographyDataPlaneClient = get_payment_crypto_client()\n\n# Example: List keys (replace with actual logic if needed)\n# This operation requires appropriate IAM permissions (e.g., payment-cryptography:ListKeys)\ntry:\n    request: ListKeysInputRequestTypeDef = {\"MaxResults\": 5}\n    response: ListKeysOutputTypeDef = client.list_keys(**request)\n    print(f\"Successfully called list_keys. Found {len(response.get('Keys', []))} keys.\")\n    if response.get('Keys'):\n        print(f\"First key ARN: {response['Keys'][0]['KeyArn']}\")\n\nexcept Exception as e:\n    print(f\"Error listing keys: {e}\")\n    print(\"\\n--- Troubleshooting ---\")\n    print(\"1. Ensure you have AWS credentials configured (environment variables or ~/.aws/credentials).\")\n    print(\"2. Verify your IAM user/role has 'payment-cryptography:ListKeys' permission.\")\n    print(\"3. Check the AWS region (e.g., 'us-east-1') is correct for your resources.\")\n    print(\"\\nThis quickstart primarily demonstrates type hinting; actual API calls require a valid AWS setup.\")\n","lang":"python","description":"This quickstart demonstrates how to get a type-hinted `boto3` client for Payment Cryptography Data Plane and perform a basic operation, `list_keys`. Remember that `mypy-boto3-*` packages provide only type stubs, so `boto3` must be installed alongside for runtime functionality. Ensure AWS credentials are configured for successful execution.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":{"tag":null,"tag_description":null,"last_tested":"2026-05-14","installed_version":"1.43.0","pypi_latest":"1.43.0","is_stale":false,"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":3.8,"avg_import_s":0.63,"wheel_type":"wheel"},"results":[{"runtime":"python:3.10-alpine","python_version":"3.10","os_libc":"alpine (musl)","variant":"mypy-boto3-payment-cryptography-data","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.58,"mem_mb":13.1,"disk_size":"51.1M"},{"runtime":"python:3.10-alpine","python_version":"3.10","os_libc":"alpine (musl)","variant":"mypy-boto3-payment-cryptography-data","exit_code":0,"wheel_type":null,"failure_reason":null,"import_side_effects":null,"install_time_s":null,"import_time_s":0.62,"mem_mb":13,"disk_size":"51.0M"},{"runtime":"python:3.10-slim","python_version":"3.10","os_libc":"slim (glibc)","variant":"mypy-boto3-payment-cryptography-data","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":4.3,"import_time_s":0.45,"mem_mb":13.1,"disk_size":"52M"},{"runtime":"python:3.10-slim","python_version":"3.10","os_libc":"slim (glibc)","variant":"mypy-boto3-payment-cryptography-data","exit_code":0,"wheel_type":null,"failure_reason":null,"import_side_effects":null,"install_time_s":null,"import_time_s":0.49,"mem_mb":13,"disk_size":"51M"},{"runtime":"python:3.11-alpine","python_version":"3.11","os_libc":"alpine (musl)","variant":"mypy-boto3-payment-cryptography-data","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.75,"mem_mb":14.8,"disk_size":"54.1M"},{"runtime":"python:3.11-alpine","python_version":"3.11","os_libc":"alpine (musl)","variant":"mypy-boto3-payment-cryptography-data","exit_code":0,"wheel_type":null,"failure_reason":null,"import_side_effects":null,"install_time_s":null,"import_time_s":0.91,"mem_mb":14.7,"disk_size":"54.0M"},{"runtime":"python:3.11-slim","python_version":"3.11","os_libc":"slim (glibc)","variant":"mypy-boto3-payment-cryptography-data","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":3.9,"import_time_s":0.67,"mem_mb":14.8,"disk_size":"55M"},{"runtime":"python:3.11-slim","python_version":"3.11","os_libc":"slim (glibc)","variant":"mypy-boto3-payment-cryptography-data","exit_code":0,"wheel_type":null,"failure_reason":null,"import_side_effects":null,"install_time_s":null,"import_time_s":0.75,"mem_mb":14.7,"disk_size":"55M"},{"runtime":"python:3.12-alpine","python_version":"3.12","os_libc":"alpine (musl)","variant":"mypy-boto3-payment-cryptography-data","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.69,"mem_mb":14.1,"disk_size":"45.4M"},{"runtime":"python:3.12-alpine","python_version":"3.12","os_libc":"alpine (musl)","variant":"mypy-boto3-payment-cryptography-data","exit_code":0,"wheel_type":null,"failure_reason":null,"import_side_effects":null,"install_time_s":null,"import_time_s":0.88,"mem_mb":14,"disk_size":"45.3M"},{"runtime":"python:3.12-slim","python_version":"3.12","os_libc":"slim (glibc)","variant":"mypy-boto3-payment-cryptography-data","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":3.3,"import_time_s":0.64,"mem_mb":14.1,"disk_size":"46M"},{"runtime":"python:3.12-slim","python_version":"3.12","os_libc":"slim (glibc)","variant":"mypy-boto3-payment-cryptography-data","exit_code":0,"wheel_type":null,"failure_reason":null,"import_side_effects":null,"install_time_s":null,"import_time_s":0.73,"mem_mb":14,"disk_size":"46M"},{"runtime":"python:3.13-alpine","python_version":"3.13","os_libc":"alpine (musl)","variant":"mypy-boto3-payment-cryptography-data","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.62,"mem_mb":15.1,"disk_size":"45.1M"},{"runtime":"python:3.13-alpine","python_version":"3.13","os_libc":"alpine (musl)","variant":"mypy-boto3-payment-cryptography-data","exit_code":0,"wheel_type":null,"failure_reason":null,"import_side_effects":null,"install_time_s":null,"import_time_s":0.71,"mem_mb":14.9,"disk_size":"44.9M"},{"runtime":"python:3.13-slim","python_version":"3.13","os_libc":"slim (glibc)","variant":"mypy-boto3-payment-cryptography-data","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":3,"import_time_s":0.61,"mem_mb":15.1,"disk_size":"46M"},{"runtime":"python:3.13-slim","python_version":"3.13","os_libc":"slim (glibc)","variant":"mypy-boto3-payment-cryptography-data","exit_code":0,"wheel_type":null,"failure_reason":null,"import_side_effects":null,"install_time_s":null,"import_time_s":0.7,"mem_mb":14.9,"disk_size":"45M"},{"runtime":"python:3.9-alpine","python_version":"3.9","os_libc":"alpine (musl)","variant":"mypy-boto3-payment-cryptography-data","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.45,"mem_mb":12.3,"disk_size":"50.5M"},{"runtime":"python:3.9-alpine","python_version":"3.9","os_libc":"alpine (musl)","variant":"mypy-boto3-payment-cryptography-data","exit_code":0,"wheel_type":null,"failure_reason":null,"import_side_effects":null,"install_time_s":null,"import_time_s":0.51,"mem_mb":12.3,"disk_size":"50.5M"},{"runtime":"python:3.9-slim","python_version":"3.9","os_libc":"slim (glibc)","variant":"mypy-boto3-payment-cryptography-data","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":4.6,"import_time_s":0.43,"mem_mb":12.3,"disk_size":"51M"},{"runtime":"python:3.9-slim","python_version":"3.9","os_libc":"slim (glibc)","variant":"mypy-boto3-payment-cryptography-data","exit_code":0,"wheel_type":null,"failure_reason":null,"import_side_effects":null,"install_time_s":null,"import_time_s":0.4,"mem_mb":12.3,"disk_size":"51M"}]}}