Type annotations for boto3.StorageGateway 1.13.26 service, generated by mypy-boto3-buider 2.0.3
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.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 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.26.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7c9c7d14ae6a4ffd7ac010a72b8d390224efcc779c4cfcdb3892ddcff8ff0cf |
|
MD5 | 256d2cbdbb992a34570fcc9f4c3f68ab |
|
BLAKE2b-256 | 929564be8740069eec08dd00bac989c5ffe553d14865db3c99da0d7e5731724e |
Hashes for mypy_boto3_storagegateway-1.13.26.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 792885e06080ed89b430a96f4701ff1645b4f5fcec37af699f0ff103f96f1791 |
|
MD5 | 1a1e114ad569782a3a277b60057d8dba |
|
BLAKE2b-256 | aa3aa04679570569e41fec44a9960d44ee58903987c8612b66c9de28616a955b |