Type annotations for boto3.AppMesh 1.14.0 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-appmesh
Type annotations for boto3.AppMesh 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 AppMesh
service.
python -m pip install boto3-stubs[appmesh]
Use boto3
with mypy_boto3_appmesh
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_appmesh import AppMeshClient
# Now mypy can check if your code is valid.
client: AppMeshClient = boto3.client("appmesh")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: AppMeshClient = session.client("appmesh")
# Annotated paginators are included as well
import mypy_boto3_appmesh.paginator as appmesh_paginators
list_meshes_paginator: appmesh_paginators.ListMeshesPaginator = client.get_paginator("list_meshes")
list_routes_paginator: appmesh_paginators.ListRoutesPaginator = client.get_paginator("list_routes")
list_tags_for_resource_paginator: appmesh_paginators.ListTagsForResourcePaginator = client.get_paginator("list_tags_for_resource")
list_virtual_nodes_paginator: appmesh_paginators.ListVirtualNodesPaginator = client.get_paginator("list_virtual_nodes")
list_virtual_routers_paginator: appmesh_paginators.ListVirtualRoutersPaginator = client.get_paginator("list_virtual_routers")
list_virtual_services_paginator: appmesh_paginators.ListVirtualServicesPaginator = client.get_paginator("list_virtual_services")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_appmesh
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("appmesh")
session_client = boto3.Session().client("appmesh")
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-appmesh-1.14.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34ab775ff9d659857d2efbb167e5e6fb4213a7c6dcec9cf4c5a4f5c7194447c7 |
|
MD5 | 26bb4a6b2b88bafea16fc8c37b24d1a1 |
|
BLAKE2b-256 | 1cf1dc17fbc1d9969712b47017497c16eb8a50404b4adfbd323c3fc1254deecc |
Hashes for mypy_boto3_appmesh-1.14.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19bdd0c9db0276415d0374a3799014d8e43885979f36f86ba8b7151631ab9636 |
|
MD5 | 940d860c81fdc295f81544e1c1cc7925 |
|
BLAKE2b-256 | 917bc54e14fb534b77b044fb1d681a553c2ebf9b389e62b5ae29604244728a2b |