Registry / type-stubs / mypy-boto3-medical-imaging

mypy-boto3-medical-imaging

JSON →
library1.43.4pypypi✓ verified 23d ago

mypy-boto3-medical-imaging provides type annotations for the `boto3` HealthImaging (Medical Imaging) service. It allows static type checkers like MyPy to validate usage of `boto3` clients, resources, and session methods, enhancing code quality and developer experience. The current version is 1.42.81, and new versions are released frequently, typically mirroring `boto3` releases or `mypy-boto3-builder` updates.

pip install mypy-boto3-medical-imaging
INSTALL
IMPORT
SIG · MYPY-BOTO3-MEDICAL
M
mypy-boto3-medical-imaging
type-stubspythonv1.43.4
Install
1.6s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.43.4 · 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.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.3MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.000s · 19MB
16MB installed
● package 16MB
Code
Verified usage

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

HealthImagingClient
from mypy_boto3_medical_imaging import HealthImagingClient
from mypy_boto3_medical_imaging import HealthImagingClient

This quickstart demonstrates how to initialize a type-hinted `boto3` HealthImaging client and perform a basic operation (listing image sets). It highlights importing the specific client type and a response type definition for improved static analysis.

import boto3 from mypy_boto3_medical_imaging.client import HealthImagingClient from mypy_boto3_medical_imaging.type_defs import ListImageSetsOutputTypeDef # Ensure you have boto3 installed and configured for AWS access # Example for a typed HealthImaging client client: HealthImagingClient = boto3.client("health-imaging") try: # List image sets in a data store response: ListImageSetsOutputTypeDef = client.list_image_sets(datastoreId="YOUR_DATASTORE_ID") print(f"Successfully listed {len(response.get('imageSets', []))} image sets.") if response.get('imageSets'): print(f"First image set ID: {response['imageSets'][0]['imageSetId']}") except client.exceptions.ResourceNotFoundException: print("Data store not found. Please provide a valid datastoreId.") except Exception as e: print(f"An error occurred: {e}")
Debug
Known issues
breakingSupport for Python 3.8 was removed in `mypy-boto3-builder` version 8.12.0. This means `mypy-boto3-medical-imaging` versions built with 8.12.0 or newer (like 1.42.81) no longer support Python 3.8.
fix
Upgrade your Python environment to 3.9 or newer. If you must use Python 3.8, pin `mypy-boto3-medical-imaging` to an older version (e.g., <1.42.81) or use `mypy`'s `--python-version` flag carefully.
affects: >=1.42.81
breakingAs of `mypy-boto3-builder` version 8.12.0, all generated `mypy-boto3-*` packages, including `mypy-boto3-medical-imaging`, migrated to PEP 561 compliance. This changes the internal package structure, which could potentially affect tools or custom `mypy` configurations that relied on the previous layout.
fix
Ensure your `mypy` version is up-to-date. If you have custom `mypy` plugins or path configurations, you may need to review them. For most users, a simple `pip install -U mypy` should suffice.
affects: >=1.42.81
gotchaThe `boto3` service name for Medical Imaging is 'health-imaging', not 'medical-imaging'. Attempting to use `boto3.client("medical-imaging")` will result in a `UnknownServiceError` at runtime.
fix
Always use the correct `boto3` service name: `boto3.client("health-imaging")`.
affects: All
gotchaThe `mypy-boto3-*` stubs are generated for specific `boto3` versions. Using significantly mismatched versions (e.g., a very old `boto3` with the latest stubs, or vice-versa) can lead to incorrect type-checking warnings or errors, as the API signatures may have changed.
fix
Keep `boto3` and `mypy-boto3-medical-imaging` (and other `mypy-boto3-*` stubs) reasonably synchronized. The `mypy-boto3` packages typically list `boto3` as a dependency with a version constraint to help ensure compatibility.
affects: All
Upgrade
Version history
1.43.4latest on PyPI · released May 5, 2026
Audit
Dependencies
boto3requiredThis package provides type stubs for boto3. The `boto3` library itself is required at runtime to use these stubs.
typing-extensionsoptionalUsed for compatibility with older Python versions for advanced typing features. Automatically managed by mypy-boto3-builder.
Agent activity
24 hits · last 30 days
node
20
OpenAI (training)
2
Resources
mypy-boto3-medical-imaging — pip install mypy-boto3-medical-imaging · libregistry