mypy-boto3-neptune-graph Type Stubs

1.42.43 · active · verified Sat Apr 11

mypy-boto3-neptune-graph provides type annotations for the AWS NeptuneGraph service client in boto3, ensuring type-safe AWS interactions with MyPy. It is part of the larger `mypy-boto3` collection, automatically generated by `mypy-boto3-builder` version 8.12.0, and is currently at version 1.42.43. The `mypy-boto3` ecosystem follows a regular release cadence, often aligning with new boto3 service releases or builder improvements.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to obtain a type-annotated `NeptuneGraphClient` using `boto3.client`. The `mypy-boto3-neptune-graph` stubs provide the `NeptuneGraphClient` type for static analysis.

import boto3
from mypy_boto3_neptune_graph.client import NeptuneGraphClient
from botocore.exceptions import ClientError

def get_neptune_graph_client() -> NeptuneGraphClient:
    """Gets a type-annotated NeptuneGraph client."""
    try:
        client: NeptuneGraphClient = boto3.client("neptune-graph")
        # Example usage: list graphs (requires appropriate permissions)
        # response = client.list_graphs()
        # print(f"Graphs: {response.get('graphs')}")
        return client
    except ClientError as e:
        print(f"Error creating NeptuneGraph client: {e}")
        raise

if __name__ == "__main__":
    neptune_client = get_neptune_graph_client()
    print(f"NeptuneGraph client type: {type(neptune_client)}")

view raw JSON →