mypy-boto3-groundstation

1.42.35 · active · verified Sat Apr 11

mypy-boto3-groundstation provides type annotations for the `boto3` GroundStation service, generated by `mypy-boto3-builder`. It enhances developer experience by enabling static type checking for `boto3` client calls. The current version is 1.42.35, and it follows the release cadence of `mypy-boto3-builder`, which updates frequently with AWS service changes.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to obtain a type-hinted `boto3` GroundStation client and use one of its methods, `list_configs`, with its corresponding response type definition. This allows `mypy` to validate your `boto3` usage statically.

import boto3
from mypy_boto3_groundstation.client import GroundStationClient
from mypy_boto3_groundstation.type_defs import ListConfigsResponseTypeDef

def get_groundstation_config_types() -> List[str]:
    # The 'client' variable is now type-hinted by mypy-boto3-groundstation
    client: GroundStationClient = boto3.client("groundstation")

    # Methods and their return types are type-checked
    response: ListConfigsResponseTypeDef = client.list_configs()
    config_types = [config['configType'] for config in response.get('configList', [])]
    return config_types

if __name__ == "__main__":
    # Example of running the function (requires AWS credentials configured for boto3)
    try:
        print(f"Available GroundStation config types: {get_groundstation_config_types()}")
    except Exception as e:
        print(f"Error fetching config types (ensure AWS config): {e}")

view raw JSON →