Install & Compatibility
Where this runs
tested against v1.43.66 · 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 · 21.3MB
glibcpy 3.10–3.910 runs
installs and imports cleanly · install 3.5s · import 0.000s · 22MB
19MB installed
● package 19MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
SecurityHubClient
✓ from mypy_boto3_securityhub import SecurityHubClient
✗ from mypy_boto3_securityhub import SecurityHubClient
This quickstart demonstrates how to obtain a type-hinted `SecurityHubClient` using `boto3` and perform a basic API call. Ensure `boto3` is installed and AWS credentials are configured in your environment.
import boto3
from mypy_boto3_securityhub.client import SecurityHubClient
def get_securityhub_client() -> SecurityHubClient:
"""Initializes and returns a typed AWS SecurityHub client."""
session = boto3.Session()
client: SecurityHubClient = session.client("securityhub")
return client
if __name__ == "__main__":
# Example usage (requires AWS credentials configured)
try:
securityhub_client = get_securityhub_client()
response = securityhub_client.describe_standards()
print(f"Successfully retrieved {len(response.get('Standards', []))} Security Hub standards.")
except Exception as e:
print(f"Error interacting with SecurityHub: {e}")
Debug
Known issues
breakingSupport for Python 3.8 was removed in `mypy-boto3-builder` version 8.12.0. If you are using Python 3.8, you must upgrade to Python 3.9 or newer, or pin to an older `mypy-boto3-builder` release (and corresponding `mypy-boto3-*` packages).fixUpgrade your Python environment to 3.9+ or use an older version of `mypy-boto3-builder` (and derived packages) compatible with Python 3.8.
affects: mypy-boto3-builder >=8.12.0
breakingTypeDef naming conventions changed in `mypy-boto3-builder` version 8.9.0. Some TypeDef names were shortened (e.g., `CreateDistributionRequestRequestTypeDef` to `CreateDistributionRequestTypeDef`), and conflicting postfixes were reordered. Code explicitly referencing these generated type definitions may break.fixUpdate imports and references to TypeDefs to reflect the new naming conventions. Consult the `mypy-boto3` documentation for the specific service for updated names.
affects: mypy-boto3-builder >=8.9.0
gotchaThis package provides only type annotations for `boto3`'s SecurityHub service. It does *not* include the `boto3` library itself. You must install `boto3` separately for your code to function at runtime.fixEnsure `boto3` is installed in your environment: `pip install boto3`.
affects: All
gotchaWhile `mypy-boto3-securityhub` versions generally aim to match corresponding `boto3` versions, minor discrepancies or specific `requires_dist` in PyPI metadata can lead to `boto3` version incompatibility. Always ensure your `mypy-boto3-securityhub` package is compatible with your installed `boto3` version to avoid type checking errors or runtime issues.fixCheck the `mypy-boto3` documentation or PyPI `requires_dist` for specific version compatibility. Ideally, update `mypy-boto3-securityhub` and `boto3` to closely matching or compatible versions.
affects: All
Upgrade
Version history
1.43.66latest on PyPI · released Aug 7, 2026
Audit
Dependencies
boto3requiredThis package provides type stubs for boto3; the boto3 library itself must be installed to make actual AWS calls.