Registry / type-stubs / mypy-boto3-securityhub

mypy-boto3-securityhub

JSON →
library1.43.66pypypi✓ verified 21d ago

mypy-boto3-securityhub provides comprehensive type annotations for the AWS SecurityHub service client in `boto3`. It enhances development with static type checking, auto-completion, and improved error detection for AWS interactions. The library's version typically aligns with the `boto3` version it types, and it is actively developed with a regular release cadence driven by `mypy-boto3-builder` updates.

pip install mypy-boto3-securityhub
INSTALL
IMPORT
SIG · MYPY-BOTO3-SECURIT
M
mypy-boto3-securityhub
type-stubspythonv1.43.66
Install
3.5s avg
Import
Disk
19MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
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
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 21.3MB
glibc
py 3.103.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).
fix
Upgrade 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.
fix
Update 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.
fix
Ensure `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.
fix
Check 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.
Agent activity
21 hits · last 30 days
node
18
OpenAI (training)
1
Resources