Type annotations for boto3.StorageGateway 1.13.25 service, generated by mypy-boto3-buider 2.0.2
Project description
mypy-boto3-storagegateway
Type annotations for boto3.StorageGateway 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 StorageGateway
service.
python -m pip install boto3-stubs[storagegateway]
# update installed packages index for automated type discovery
python -m mypy_boto3
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")
Automated type discovery
mypy_boto3
package can generate index for mypy_boto3_storagegateway
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_storagegateway as storagegateway
from mypy_boto3_storagegateway import StorageGatewayClient
# with these
from mypy_boto3 import storagegateway
from mypy_boto3.storagegateway import StorageGatewayClient
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.25.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf61ef17b99f2ee90222e7bfd6f3013583d16611257e162f691d84e1761039e5 |
|
MD5 | d9e75af0856672ac6ae97eff64bd6b64 |
|
BLAKE2b-256 | 148c46a32743ab330ec886867d84c8f2bebeb8164835eb4f4b7d86abb238bc00 |
Hashes for mypy_boto3_storagegateway-1.13.25.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c557b7a5d7db069f843c838025015b1df14a9c31f695611decc6c88a26bb2f71 |
|
MD5 | ace7befc07040f0cf93787fb8cb965e8 |
|
BLAKE2b-256 | 5646b4514223827daa3d3fb2b4d676ce4078652c714fa300121534abee148ac3 |