Type annotations for boto3.DataExchange 1.13.26 service, generated by mypy-boto3-buider 2.0.3
Project description
mypy-boto3-dataexchange
Type annotations for boto3.DataExchange 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 DataExchange
service.
python -m pip install boto3-stubs[dataexchange]
# update installed packages index for automated type discovery
python -m mypy_boto3
Use boto3
with mypy_boto3_dataexchange
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_dataexchange import DataExchangeClient
# Now mypy can check if your code is valid.
client: DataExchangeClient = boto3.client("dataexchange")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: DataExchangeClient = session.client("dataexchange")
# Annotated paginators are included as well
import mypy_boto3_dataexchange.paginator as dataexchange_paginators
list_data_set_revisions_paginator: dataexchange_paginators.ListDataSetRevisionsPaginator = client.get_paginator("list_data_set_revisions")
list_data_sets_paginator: dataexchange_paginators.ListDataSetsPaginator = client.get_paginator("list_data_sets")
list_jobs_paginator: dataexchange_paginators.ListJobsPaginator = client.get_paginator("list_jobs")
list_revision_assets_paginator: dataexchange_paginators.ListRevisionAssetsPaginator = client.get_paginator("list_revision_assets")
Automated type discovery
mypy_boto3
package can generate index for mypy_boto3_dataexchange
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_dataexchange as dataexchange
from mypy_boto3_dataexchange import DataExchangeClient
# with these
from mypy_boto3 import dataexchange
from mypy_boto3.dataexchange import DataExchangeClient
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-dataexchange-1.13.26.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c9046a7235c0fa2786d30e49bb1e1df1b336d3e13f7c0b4cd6ea6b92b766d4a |
|
MD5 | b8d60d072d546618e509eacff7fe05f6 |
|
BLAKE2b-256 | fad90a574c574114f2f394f8651f1496a5b349ea33b9618ba85f2d0eb36cd881 |
Hashes for mypy_boto3_dataexchange-1.13.26.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f10a3a67a99dc7fdd10babc16e45abd48466cb87aa6d69538d034e5a2e288c3a |
|
MD5 | 82d163939e3ef0e600cbf04f82217f4d |
|
BLAKE2b-256 | f14f847ae29627c19d5f20f543b1ed8ba44584e9d02520ddf691f797551eda51 |