Type annotations for boto3.NetworkManager 1.13.26 service, generated by mypy-boto3-buider 2.0.3
Project description
mypy-boto3-networkmanager
Type annotations for boto3.NetworkManager 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 NetworkManager
service.
python -m pip install boto3-stubs[networkmanager]
# update installed packages index for automated type discovery
python -m mypy_boto3
Use boto3
with mypy_boto3_networkmanager
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_networkmanager import NetworkManagerClient
# Now mypy can check if your code is valid.
client: NetworkManagerClient = boto3.client("networkmanager")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: NetworkManagerClient = session.client("networkmanager")
# Annotated paginators are included as well
import mypy_boto3_networkmanager.paginator as networkmanager_paginators
describe_global_networks_paginator: networkmanager_paginators.DescribeGlobalNetworksPaginator = client.get_paginator("describe_global_networks")
get_customer_gateway_associations_paginator: networkmanager_paginators.GetCustomerGatewayAssociationsPaginator = client.get_paginator("get_customer_gateway_associations")
get_devices_paginator: networkmanager_paginators.GetDevicesPaginator = client.get_paginator("get_devices")
get_link_associations_paginator: networkmanager_paginators.GetLinkAssociationsPaginator = client.get_paginator("get_link_associations")
get_links_paginator: networkmanager_paginators.GetLinksPaginator = client.get_paginator("get_links")
get_sites_paginator: networkmanager_paginators.GetSitesPaginator = client.get_paginator("get_sites")
get_transit_gateway_registrations_paginator: networkmanager_paginators.GetTransitGatewayRegistrationsPaginator = client.get_paginator("get_transit_gateway_registrations")
Automated type discovery
mypy_boto3
package can generate index for mypy_boto3_networkmanager
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_networkmanager as networkmanager
from mypy_boto3_networkmanager import NetworkManagerClient
# with these
from mypy_boto3 import networkmanager
from mypy_boto3.networkmanager import NetworkManagerClient
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-networkmanager-1.13.26.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f710f6167b1be39ac201e9d52be26ccbc3c1e89b760169fc4a12cb25579672b8 |
|
MD5 | 1eccee720c15210c94e3bd0c72ff502e |
|
BLAKE2b-256 | dbff5881cb1c5da47185d6b7e4e169073b7f49ebcaa3475772ddad18e703ebe2 |
Hashes for mypy_boto3_networkmanager-1.13.26.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d61064ef1cff1f46004b1998a89a785115aa549b170777abd945cee028ae778 |
|
MD5 | 2b212fb12364605907a28c53507c7a3f |
|
BLAKE2b-256 | dee1e26601f7b3cc15b70c369addbd79f92ffc24fde642d80485c7f6cfb6baae |