Type annotations for boto3.ApiGatewayV2 1.14.0 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-apigatewayv2
Type annotations for boto3.ApiGatewayV2 1.14.0 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.0.4.
More information can be found on boto3-stubs page.
How to use
Make sure you have mypy installed and activated in your IDE.
Install boto3-stubs
for ApiGatewayV2
service.
python -m pip install boto3-stubs[apigatewayv2]
Use boto3
with mypy_boto3_apigatewayv2
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_apigatewayv2 import ApiGatewayV2Client
# Now mypy can check if your code is valid.
client: ApiGatewayV2Client = boto3.client("apigatewayv2")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: ApiGatewayV2Client = session.client("apigatewayv2")
# Annotated paginators are included as well
import mypy_boto3_apigatewayv2.paginator as apigatewayv2_paginators
get_apis_paginator: apigatewayv2_paginators.GetApisPaginator = client.get_paginator("get_apis")
get_authorizers_paginator: apigatewayv2_paginators.GetAuthorizersPaginator = client.get_paginator("get_authorizers")
get_deployments_paginator: apigatewayv2_paginators.GetDeploymentsPaginator = client.get_paginator("get_deployments")
get_domain_names_paginator: apigatewayv2_paginators.GetDomainNamesPaginator = client.get_paginator("get_domain_names")
get_integration_responses_paginator: apigatewayv2_paginators.GetIntegrationResponsesPaginator = client.get_paginator("get_integration_responses")
get_integrations_paginator: apigatewayv2_paginators.GetIntegrationsPaginator = client.get_paginator("get_integrations")
get_models_paginator: apigatewayv2_paginators.GetModelsPaginator = client.get_paginator("get_models")
get_route_responses_paginator: apigatewayv2_paginators.GetRouteResponsesPaginator = client.get_paginator("get_route_responses")
get_routes_paginator: apigatewayv2_paginators.GetRoutesPaginator = client.get_paginator("get_routes")
get_stages_paginator: apigatewayv2_paginators.GetStagesPaginator = client.get_paginator("get_stages")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_apigatewayv2
and other installed services.
# Run this command after you add or remove service packages
python -m mypy_boto3
Generated type annotations provide overloads for boto3.client
and boto3.resource
,
boto3.Session.client
and boto3.Session.resource
functions,
so explicit type annotations are not needed.
mypy
supports function overloads as expectedPyCharm
also supports function overloads, but consumes a lot of RAM, use carefully if you have many services installedVSCode
does not currently support function overloads, use explicit type annotations
import boto3
# Type is discovered correctly by mypy and PyCharm
# VSCode still needs explicit type annotations
client = boto3.client("apigatewayv2")
session_client = boto3.Session().client("apigatewayv2")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mypy-boto3-apigatewayv2-1.14.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52496d4cac8fec324b82f871b0c41b66f20733785e1f5f1bc085f951f1bc5215 |
|
MD5 | 44e02d765452e1b2837f2ce9aeddf06b |
|
BLAKE2b-256 | 64b1436744a523cdab59da9c628b3485cb2f5ab68655a4b84e51bf66a503e2a9 |
Hashes for mypy_boto3_apigatewayv2-1.14.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c25e6b46d050503dc8964d8bf43846945b930092dd2c01741745c52d29142c4c |
|
MD5 | 2d399f3505ddecc15afa90a58f0d01e0 |
|
BLAKE2b-256 | 6d448903c8edde754202e6ee9c2ad2da2505b7d9c2270e3d5e2280ae55888e25 |