Type annotations for boto3.DataPipeline 1.13.26 service, generated by mypy-boto3-buider 2.0.2
Project description
mypy-boto3-datapipeline
Type annotations for boto3.DataPipeline 1.13.26 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 DataPipeline
service.
python -m pip install boto3-stubs[datapipeline]
# update installed packages index for automated type discovery
python -m mypy_boto3
Use boto3
with mypy_boto3_datapipeline
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_datapipeline import DataPipelineClient
# Now mypy can check if your code is valid.
client: DataPipelineClient = boto3.client("datapipeline")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: DataPipelineClient = session.client("datapipeline")
# Annotated paginators are included as well
import mypy_boto3_datapipeline.paginator as datapipeline_paginators
describe_objects_paginator: datapipeline_paginators.DescribeObjectsPaginator = client.get_paginator("describe_objects")
list_pipelines_paginator: datapipeline_paginators.ListPipelinesPaginator = client.get_paginator("list_pipelines")
query_objects_paginator: datapipeline_paginators.QueryObjectsPaginator = client.get_paginator("query_objects")
Automated type discovery
mypy_boto3
package can generate index for mypy_boto3_datapipeline
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_datapipeline as datapipeline
from mypy_boto3_datapipeline import DataPipelineClient
# with these
from mypy_boto3 import datapipeline
from mypy_boto3.datapipeline import DataPipelineClient
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-datapipeline-1.13.26.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 129c4d0601a81a52f3c31b1ffedd1d72b59abf426afdd2e6c1c3c9f69afa75f3 |
|
MD5 | 8775fa1ce220bd9c4a74151414209d9d |
|
BLAKE2b-256 | 70e96789d98e65cc1537cf0d44d89d9725cb968072b323aaef5e7e397b4bdb5e |
Hashes for mypy_boto3_datapipeline-1.13.26.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89afb37bde09d1e5463af47bbcf8738f1f97d8ac956a6557ea6032be9fa4d432 |
|
MD5 | 1a57b7f42b35d80431d654700daa1944 |
|
BLAKE2b-256 | cdf6d13c7fc6d9071f7b54c7c131cf0a0b3c4b7c9b15d8a69d2d85d25032ea43 |