Type annotations for boto3.StorageGateway 1.13.24 service, generated by mypy-boto3-buider 2.0.2
Project description
mypy-boto3-storagegateway
Type annotations for boto3.StorageGateway 1.13.24 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.24.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c293d2790c779e712dffcb1b55a43b760111f92c934590cce6140ee220ad118 |
|
MD5 | 5817a61d278969a74eb64e216badea9d |
|
BLAKE2b-256 | a58e75f368cb6d5d9bb32cc13d67a2f68dfbf55040d6a5dd08f8cc4ba677ad46 |
Hashes for mypy_boto3_storagegateway-1.13.24.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42898248628f9d11118b94e5f96b0ebe71691aca4fd03fca2b04a1ab7dc427c2 |
|
MD5 | eb0726435e4bc72e0612aecfa7674b63 |
|
BLAKE2b-256 | 4d172a141e24f8e52f6077f634705f4799ea0f9e39068e5185369080497997bb |