Type annotations for boto3.ApiGatewayV2 1.13.24 service, generated by mypy-boto3-buider 2.0.2
Project description
mypy-boto3-apigatewayv2
Type annotations for boto3.ApiGatewayV2 1.13.24 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.0.2.
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]
# update installed packages index for automated type discovery
python -m mypy_boto3
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")
Automated type discovery
mypy_boto3
package can generate index for mypy_boto3_apigatewayv2
and other installed services.
# Run this command when you add or remove service packages
python -m mypy_boto3
Generated index provides overloads for boto3.client
and boto3.service
,
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 carefullyVSCode
does not currently support function overloads
Also, generated index allows you to import types from mypy_boto3
:
# you can replace imports
import mypy_boto3_apigatewayv2 as apigatewayv2
from mypy_boto3_apigatewayv2 import ApiGatewayV2Client
# with these
from mypy_boto3 import apigatewayv2
from mypy_boto3.apigatewayv2 import ApiGatewayV2Client
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.24.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e1ac21eb90e4c2307a993864ae796f26d6a46ae939059b6b1d92fdac5b0c8ed |
|
MD5 | 4e8329d65e82b9b1408ebcc2e0d5e9de |
|
BLAKE2b-256 | c916db0243f361d13b674b4a80dcfc9fc08b26a7de3ac435399306b514c8c2a3 |
Hashes for mypy_boto3_apigatewayv2-1.13.24.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c135f077e83ce765af1606bc5d81fad6cf7008f3e00f54e3a5ec289e50a6f13 |
|
MD5 | 086d20c3f541789dfdf6072be78d8af7 |
|
BLAKE2b-256 | b1a23fecb2fc8342185aac786f6eacd7b3ef386f421a1b77fa2b6819ac9a6963 |