Type annotations for boto3.ApiGatewayV2 1.13.26 service, generated by mypy-boto3-buider 2.0.3
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.3.
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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 049b8ff161f9186719519168c15111fe5453ef02b1d0d25fba0ee1d903324329 |
|
MD5 | 106d1506b1ef35abd017dab34fdbd984 |
|
BLAKE2b-256 | 994bbd4403628fa3ca60517647022ecb38e84b6553331102c56b590a7a24c947 |
Hashes for mypy_boto3_apigatewayv2-1.13.26.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de437083681bb39f096d9747056e49936da2f509ed4c5353a3c6f9bde4bde494 |
|
MD5 | 5478b21822cafcccb6a5c29de71930e8 |
|
BLAKE2b-256 | 6a527c34fe406693b5907bd64ffc7c28ad9cb2e8ce45c840f99bf940cfe3bba0 |