Type annotations for boto3.Snowball 1.14.0 service, generated by mypy-boto3-buider 2.1.0
Project description
mypy-boto3-snowball
Type annotations for boto3.Snowball 1.14.0 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.1.0.
More information can be found on boto3-stubs page.
How to install
Make sure you have mypy installed and activated in your IDE.
Install boto3-stubs
for Snowball
service.
python -m pip install boto3-stubs[snowball]
How to use
Client annotations
SnowballClient
provides annotations for boto3.client("snowball")
.
import boto3
from mypy_boto3_snowball import SnowballClient
client: SnowballClient = boto3.client("snowball")
# now client usage is checked by mypy and IDE should provide code auto-complete
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: SnowballClient = session.client("snowball")
Paginators annotations
mypy_boto3_snowball.paginator
module contains type annotations for all paginators.
from mypy_boto3_snowball import SnowballClient
from mypy_boto3_snowball.paginator import (
DescribeAddressesPaginator,
ListClusterJobsPaginator,
ListClustersPaginator,
ListCompatibleImagesPaginator,
ListJobsPaginator,
)
client: SnowballClient = boto3.client("snowball")
# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
# VSCode requires explicit type annotations
describe_addresses_paginator: DescribeAddressesPaginator = client.get_paginator("describe_addresses")
list_cluster_jobs_paginator: ListClusterJobsPaginator = client.get_paginator("list_cluster_jobs")
list_clusters_paginator: ListClustersPaginator = client.get_paginator("list_clusters")
list_compatible_images_paginator: ListCompatibleImagesPaginator = client.get_paginator("list_compatible_images")
list_jobs_paginator: ListJobsPaginator = client.get_paginator("list_jobs")
Typed dictionations
mypy_boto3_snowball.type_defs
module contains structures and shapes assembled
to typed dictionaries for additional type checking.
from mypy_boto3_snowball.type_defs import AddressTypeDef, ...
def get_structure() -> AddressTypeDef:
return {
...
}
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_snowball
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("snowball")
session_client = boto3.Session().client("snowball")
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-snowball-1.14.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d63303f4ed4d06ea9a73dec559e0a99d8937c0b9427647e97d28f6e6b166fa75 |
|
MD5 | ba8a3bea244b4190f82f91f09986bbc5 |
|
BLAKE2b-256 | e6b75f372a1bff2f363f091630f6519c19cde0ae287308f0b96c6eada5e76bf3 |
Hashes for mypy_boto3_snowball-1.14.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a07df93493c36f2671aad374207df3b55e810e82909a82108ab95936f8e41164 |
|
MD5 | a31c0ab640954a8c6cda57006f06f49d |
|
BLAKE2b-256 | 83be7800adf9e2dcfdc9dfefcb864c7053c21e3099de45ebc6b04b67b55e9954 |