Type annotations for boto3.DataSync 1.14.0 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-datasync
Type annotations for boto3.DataSync 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 DataSync
service.
python -m pip install boto3-stubs[datasync]
Use boto3
with mypy_boto3_datasync
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_datasync import DataSyncClient
# Now mypy can check if your code is valid.
client: DataSyncClient = boto3.client("datasync")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: DataSyncClient = session.client("datasync")
# Annotated paginators are included as well
import mypy_boto3_datasync.paginator as datasync_paginators
list_agents_paginator: datasync_paginators.ListAgentsPaginator = client.get_paginator("list_agents")
list_locations_paginator: datasync_paginators.ListLocationsPaginator = client.get_paginator("list_locations")
list_tags_for_resource_paginator: datasync_paginators.ListTagsForResourcePaginator = client.get_paginator("list_tags_for_resource")
list_task_executions_paginator: datasync_paginators.ListTaskExecutionsPaginator = client.get_paginator("list_task_executions")
list_tasks_paginator: datasync_paginators.ListTasksPaginator = client.get_paginator("list_tasks")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_datasync
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("datasync")
session_client = boto3.Session().client("datasync")
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-datasync-1.14.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a00ddded74063509e3d570a2e48c22d01b2d4d4fe9257f32e8b398ff1dadddd2 |
|
MD5 | fe2709b1f40e62676ff0a8ed47a58081 |
|
BLAKE2b-256 | bad2e9200ba6b347ff725fdffaf1b5961edfd2feeb8d435c4aa60fe1abe82104 |
Hashes for mypy_boto3_datasync-1.14.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd65db4f114e6b361429bbf6bf931ea53fcd3ac47ca682ddd2f0d867c3b42534 |
|
MD5 | 6d1535af7a9c09ce97033e23405e81ee |
|
BLAKE2b-256 | d332e70e4245794e025b1b4cd587c078aa1ae57dea8510d18f16c546bd81fe2d |