Type annotations for boto3.StorageGateway 1.13.26 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-storagegateway
Type annotations for boto3.StorageGateway 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 StorageGateway
service.
python -m pip install boto3-stubs[storagegateway]
Use boto3
with mypy_boto3_storagegateway
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_storagegateway import StorageGatewayClient
# Now mypy can check if your code is valid.
client: StorageGatewayClient = boto3.client("storagegateway")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: StorageGatewayClient = session.client("storagegateway")
# Annotated paginators are included as well
import mypy_boto3_storagegateway.paginator as storagegateway_paginators
describe_tape_archives_paginator: storagegateway_paginators.DescribeTapeArchivesPaginator = client.get_paginator("describe_tape_archives")
describe_tape_recovery_points_paginator: storagegateway_paginators.DescribeTapeRecoveryPointsPaginator = client.get_paginator("describe_tape_recovery_points")
describe_tapes_paginator: storagegateway_paginators.DescribeTapesPaginator = client.get_paginator("describe_tapes")
describe_vtl_devices_paginator: storagegateway_paginators.DescribeVTLDevicesPaginator = client.get_paginator("describe_vtl_devices")
list_file_shares_paginator: storagegateway_paginators.ListFileSharesPaginator = client.get_paginator("list_file_shares")
list_gateways_paginator: storagegateway_paginators.ListGatewaysPaginator = client.get_paginator("list_gateways")
list_tags_for_resource_paginator: storagegateway_paginators.ListTagsForResourcePaginator = client.get_paginator("list_tags_for_resource")
list_tapes_paginator: storagegateway_paginators.ListTapesPaginator = client.get_paginator("list_tapes")
list_volumes_paginator: storagegateway_paginators.ListVolumesPaginator = client.get_paginator("list_volumes")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_storagegateway
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("storagegateway")
session_client = boto3.Session().client("storagegateway")
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-storagegateway-1.13.26.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2dc323fb86e353951483acb542e067a99f38fc019a369c2ed3c2eebfb21bf514 |
|
MD5 | a5f34ed369f3c3829195349374b5dec7 |
|
BLAKE2b-256 | 07e3ab6fefaaa64e415be784a6c9adf24742b243f9addcbaa19045f98bd5ae91 |
Hashes for mypy_boto3_storagegateway-1.13.26.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6792c100e030d939e438bb9dd51f6890c64ba809cc75e038d4e165690e4250cf |
|
MD5 | ad11985093e113fdb6e97d312a6218a5 |
|
BLAKE2b-256 | 19c556c083f773c2c5d528617f654c33b7e0a8d8df5fc47e7e18617641616ff1 |