Registry / type-stubs / mypy-boto3-healthlake

mypy-boto3-healthlake

JSON →
library1.43.83pypypi✓ verified 24d ago

mypy-boto3-healthlake provides type annotations for the boto3 HealthLake service. It enhances development with static type checking for AWS SDK for Python (boto3) code, catching potential errors early. The current version is 1.42.3, and new versions are released frequently, typically in lockstep with botocore/boto3 updates.

pip install mypy-boto3-healthlake
INSTALL
IMPORT
SIG · MYPY-BOTO3-HEALTHL
M
mypy-boto3-healthlake
type-stubspythonv1.43.83
Install
2.9s avg
Import
Disk
71MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.43.83 · 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 · 18.4MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 2.9s · import 0.000s · 19MB
71MB installed
● package 71MB
Code
Verified usage

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

HealthLakeClient
from mypy_boto3_healthlake import HealthLakeClient
from mypy_boto3_healthlake import HealthLakeClient

This quickstart demonstrates how to initialize a type-hinted HealthLake client, create a FHIR datastore, and list existing datastores. It leverages `mypy-boto3-healthlake` for precise type checking of client methods and request/response TypeDefs.

import boto3 import os from mypy_boto3_healthlake.client import HealthLakeClient from mypy_boto3_healthlake.type_defs import CreateFHIRDatastoreRequestRequestTypeDef # Use os.environ.get for quickstart to satisfy auth check aws_region = os.environ.get("AWS_REGION", "us-east-1") datastore_name = "my-healthlake-datastore-example" datastore_type = "R4" # or "STU3" client: HealthLakeClient = boto3.client("healthlake", region_name=aws_region) request_params: CreateFHIRDatastoreRequestRequestTypeDef = { "DatastoreName": datastore_name, "DatastoreType": datastore_type } try: # In a real application, you might add tags or other configurations response = client.create_fhir_datastore(**request_params) print(f"Datastore creation initiated: {response['DatastoreId']} with status {response['DatastoreStatus']}") # Wait for the datastore to be active if needed # client.get_waiter('datastore_created').wait(DatastoreId=response['DatastoreId']) except client.exceptions.ConflictException: print(f"Datastore '{datastore_name}' already exists.") except Exception as e: print(f"An error occurred: {e}") # Example of listing datastores print("\nListing HealthLake Datastores:") response = client.list_fhir_datastores() for ds in response.get("Datastores", []): print(f"- {ds['DatastoreName']} ({ds['DatastoreStatus']})")
Debug
Known issues
breakingPython 3.8 support was removed in `mypy-boto3-builder` version 8.12.0. All generated `mypy-boto3-*` packages, including `mypy-boto3-healthlake`, now require Python 3.9 or newer.
fix
Upgrade your Python environment to 3.9 or higher.
affects: >=8.12.0
breakingTypeDef naming conventions were significantly changed in `mypy-boto3-builder` version 8.9.0. This includes shortening redundant 'Request' suffixes (e.g., `CreateRequestRequestTypeDef` became `CreateRequestTypeDef`) and moving 'Extra' suffixes. Existing type annotations in your code using older names will break.
fix
Update your TypeDef import names and annotations to match the new conventions. Consult the `mypy-boto3` documentation for specific service/method changes.
affects: >=8.9.0
gotchaEach AWS service requires its own `mypy-boto3-*` package for type stubs (e.g., `mypy-boto3-healthlake` for HealthLake, `mypy-boto3-s3` for S3). If you need types for multiple services, you must install each package individually or install the monorepo `mypy-boto3` package (which is larger).
fix
Install `pip install mypy-boto3-<service_name>` for each service you use, or `pip install mypy-boto3` for all services.
affects: all
gotchaType stubs are generated based on `botocore` versions. To avoid `mypy` errors due to API mismatches, ensure your `mypy-boto3-*` packages are kept up-to-date and ideally match the `boto3` and `botocore` versions in your environment.
fix
Regularly update `mypy-boto3-*` packages: `pip install --upgrade mypy-boto3-healthlake`.
affects: all
gotchaThe project migrated to PEP 561 compliant packages in version 8.12.0. While generally an improvement, some users with custom `mypy` configurations or unusual project structures might need to verify `mypy` is correctly discovering the stubs.
fix
Ensure `mypy` is configured to find third-party stubs (often automatic). If issues arise, check your `mypy` configuration (`pyproject.toml` or `.mypy.ini`) for `mypy_path` or `namespace_packages` settings.
affects: >=8.12.0
Upgrade
Version history
1.43.83latest on PyPI · released Aug 28, 2026
Audit
Dependencies
boto3requiredThis package provides type stubs for boto3; boto3 itself must be installed to run the code.
Agent activity
21 hits · last 30 days
node
18
Amazon
1
OpenAI (training)
1
Resources
mypy-boto3-healthlake — pip install mypy-boto3-healthlake · libregistry