Type annotations for boto3.ApiGatewayV2 1.13.26 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-apigatewayv2
Type annotations for boto3.ApiGatewayV2 1.13.26 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.13.26.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 728fe88360249f6abda8a4cf01d794b545e605ebd1599aee494786e0cc1a870e |
|
MD5 | 1ceb6e6a0d155bd91efaac6dd6c0eacc |
|
BLAKE2b-256 | 770168e482268020dee2c376eb9d09f62a652264fcec6a828c66bd12662c9913 |
Hashes for mypy_boto3_apigatewayv2-1.13.26.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd12225fcb687860eac65dbcfd236a678fd0ec43874cf2e82a1fdbb07bcd4234 |
|
MD5 | 2bd0785c63dc8a0bbc98916f21545433 |
|
BLAKE2b-256 | 950bf65ae981edbcc594b19911fffdda5992a718edbdf3b96dc679d687e4b499 |