Type annotations for boto3.Snowball 1.13.26 service, generated by mypy-boto3-buider 2.0.3
Project description
mypy-boto3-snowball
Type annotations for boto3.Snowball 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 Snowball
service.
python -m pip install boto3-stubs[snowball]
# update installed packages index for automated type discovery
python -m mypy_boto3
Use boto3
with mypy_boto3_snowball
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_snowball import SnowballClient
# Now mypy can check if your code is valid.
client: SnowballClient = boto3.client("snowball")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: SnowballClient = session.client("snowball")
# Annotated paginators are included as well
import mypy_boto3_snowball.paginator as snowball_paginators
describe_addresses_paginator: snowball_paginators.DescribeAddressesPaginator = client.get_paginator("describe_addresses")
list_cluster_jobs_paginator: snowball_paginators.ListClusterJobsPaginator = client.get_paginator("list_cluster_jobs")
list_clusters_paginator: snowball_paginators.ListClustersPaginator = client.get_paginator("list_clusters")
list_compatible_images_paginator: snowball_paginators.ListCompatibleImagesPaginator = client.get_paginator("list_compatible_images")
list_jobs_paginator: snowball_paginators.ListJobsPaginator = client.get_paginator("list_jobs")
Automated type discovery
mypy_boto3
package can generate index for mypy_boto3_snowball
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_snowball as snowball
from mypy_boto3_snowball import SnowballClient
# with these
from mypy_boto3 import snowball
from mypy_boto3.snowball import SnowballClient
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.13.26.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee07ecb44bee5b3279a62f020886ea5d4b20cb244d1ac06017163c98eae0e89d |
|
MD5 | 437766ab05e32847e6f57ba80c340259 |
|
BLAKE2b-256 | 6c732a0999efd4fc58c334ee2078d8e52aacec0c5f257744a20edd47464d938c |
Hashes for mypy_boto3_snowball-1.13.26.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98cdc313da42d999842d908f866c4a7194da6f5b890be06a417f2d5799fb3ab0 |
|
MD5 | dea5b0a5da08af55a66b2aef21e59ea3 |
|
BLAKE2b-256 | 68a0dd0692635e26eca5408aed54f3cd496ed63fa117863e4ee7874304c42d9f |