Type annotations for boto3.NetworkManager 1.13.25 service, generated by mypy-boto3-buider 2.0.2
Project description
mypy-boto3-networkmanager
Type annotations for boto3.NetworkManager 1.13.25 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 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.25.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19a668b1dbc982d59ce1237c3f5dd3454cab38764f55be724b10eace2543cacb |
|
MD5 | 061b21a4ad10a176f9d9d52b6e7edd1b |
|
BLAKE2b-256 | 6e376f8ab9948c78d18e0e102b3e45837cdce50b1fa2855d113c469b11d68f33 |
Hashes for mypy_boto3_networkmanager-1.13.25.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1335ffd5b64094ff5be28af554b3dc397cb4a7d3698e7ba04dfe340ceeb8e6e |
|
MD5 | 2b2d8a4a502ee2e19058d9de1587830c |
|
BLAKE2b-256 | 6817759376436d3e1ae1a3f84748a5efe03a119b4eb2564b7cdee8be8d452381 |