Type annotations for boto3.Glacier 1.14.0 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-glacier
Type annotations for boto3.Glacier 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 Glacier
service.
python -m pip install boto3-stubs[glacier]
Use boto3
with mypy_boto3_glacier
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_glacier import GlacierClient
# Now mypy can check if your code is valid.
client: GlacierClient = boto3.client("glacier")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: GlacierClient = session.client("glacier")
# Do you prefer resource approach? We've got you covered!
from mypy_boto3_glacier import GlacierServiceResource
resource: glacier.GlacierServiceResource = boto3.resource("glacier")
# Waiters are also supported
import mypy_boto3_glacier.waiter as glacier_waiters
vault_exists_waiter: glacier_waiters.VaultExistsWaiter = client.get_waiter("vault_exists")
vault_not_exists_waiter: glacier_waiters.VaultNotExistsWaiter = client.get_waiter("vault_not_exists")
# Annotated paginators are included as well
import mypy_boto3_glacier.paginator as glacier_paginators
list_jobs_paginator: glacier_paginators.ListJobsPaginator = client.get_paginator("list_jobs")
list_multipart_uploads_paginator: glacier_paginators.ListMultipartUploadsPaginator = client.get_paginator("list_multipart_uploads")
list_parts_paginator: glacier_paginators.ListPartsPaginator = client.get_paginator("list_parts")
list_vaults_paginator: glacier_paginators.ListVaultsPaginator = client.get_paginator("list_vaults")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_glacier
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("glacier")
resource = boto3.resource("glacier")
session_client = boto3.Session().client("glacier")
session_resource = boto3.Session().resource("glacier")
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-glacier-1.14.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5de8b3457e17f8f9a85776ecf82549718f69fcad84cccddcb4bad2d7e479653b |
|
MD5 | fb7eeb1950ac4a95995b1ed767dd99a3 |
|
BLAKE2b-256 | 95585bb2614aa1ec9f458c600fda29dda08f2520814399dd53fd9d943da7449a |
Hashes for mypy_boto3_glacier-1.14.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 145d7714fd6fbf884577be105730dcb6755f9ca9670009cf53765af202ad20b9 |
|
MD5 | 8871ba5eefe3a2fda2330313e8da89ee |
|
BLAKE2b-256 | c7731ba95827c32dd1211afc3589983673702a7bb7bb3bfd31a0752c0de0b703 |