Type annotations for boto3.StorageGateway 1.14.0 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-storagegateway
Type annotations for boto3.StorageGateway 1.14.0 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.14.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13e1120e369d7bcb70188621cdbc5d3a20d3beeb2cc666bff8c05a4485a776c9 |
|
MD5 | a329d8c5aaa0d2c481e9fd0a1efa0051 |
|
BLAKE2b-256 | 2bdf74714faff763e1f8c33009b7c702b30813732c791687716d6a2d6b7c2dd7 |
Hashes for mypy_boto3_storagegateway-1.14.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45954313ceb1e963ec12c85735550560292bcc3c0bdca32b183627ab60cc82b7 |
|
MD5 | 2956b557194edfe778c213c4f4d842fe |
|
BLAKE2b-256 | 4094a2faf6294375ace982acba465fb64f2670b6fdd63fe64466a680b2fc2a74 |