Type annotations for boto3.ApiGatewayV2 1.13.26 service, generated by mypy-boto3-buider 2.0.2
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.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.26.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 582aa05c3d59d89f6980d32662722da08d3f5114fba45df12fc072b1b2b8015c |
|
MD5 | 0a415c0f31d579a8872dbf2617330ca5 |
|
BLAKE2b-256 | 43965df01114bc37158c4c74f4a6c3ad9cf3ecbc8ecfaa770e001c9977e2be81 |
Hashes for mypy_boto3_apigatewayv2-1.13.26.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ef9adb3c07567efa3efe0111aa00e12928f08d507945fac0870e9662b3c2728 |
|
MD5 | 1c5884e6dd4dce18dd596ab17a7e859d |
|
BLAKE2b-256 | 6af718996ad92e69ea8ae4ab5224fcf502d1fafc80145a9fd7a7bb7a36986817 |