Type annotations for boto3.GlobalAccelerator 1.13.26 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-globalaccelerator
Type annotations for boto3.GlobalAccelerator 1.13.26 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 GlobalAccelerator
service.
python -m pip install boto3-stubs[globalaccelerator]
Use boto3
with mypy_boto3_globalaccelerator
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_globalaccelerator import GlobalAcceleratorClient
# Now mypy can check if your code is valid.
client: GlobalAcceleratorClient = boto3.client("globalaccelerator")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: GlobalAcceleratorClient = session.client("globalaccelerator")
# Annotated paginators are included as well
import mypy_boto3_globalaccelerator.paginator as globalaccelerator_paginators
list_accelerators_paginator: globalaccelerator_paginators.ListAcceleratorsPaginator = client.get_paginator("list_accelerators")
list_endpoint_groups_paginator: globalaccelerator_paginators.ListEndpointGroupsPaginator = client.get_paginator("list_endpoint_groups")
list_listeners_paginator: globalaccelerator_paginators.ListListenersPaginator = client.get_paginator("list_listeners")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_globalaccelerator
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("globalaccelerator")
session_client = boto3.Session().client("globalaccelerator")
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-globalaccelerator-1.13.26.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3105b90496d22846b56245a0b1e2e89c5e0deb66c82e3b5f466f301ad7718efb |
|
MD5 | b53c026fb6a2a79c424a1d96ad871aa8 |
|
BLAKE2b-256 | 9b92b33724ba2e28dc3305e4b765ddbf76ba77466dbd3e95249ff47895274c0f |
Hashes for mypy_boto3_globalaccelerator-1.13.26.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 664d7d524b797f880f49422fc8d42151592e0057555d9a017a00528b14010e0d |
|
MD5 | 29209510c27c64d0b83bc37560d2ef84 |
|
BLAKE2b-256 | fa1fb2d7476440209ff2396ac289b2147eaccaa66f3f83eebadabab0bb82f1fa |