Type annotations for boto3.DataPipeline 1.13.26 service, generated by mypy-boto3-buider 2.0.4
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.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 DataPipeline
service.
python -m pip install boto3-stubs[datapipeline]
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")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_datapipeline
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("datapipeline")
session_client = boto3.Session().client("datapipeline")
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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | df3b4e00346c2c2872b46df0b9bb87c8b9e2a5957a125d6e601a7f3166602653 |
|
MD5 | 758df23305b5f569d21768d64c40ab2c |
|
BLAKE2b-256 | 834fca08105c0a8fdbdaafc88d7645ced9eaece62cb4a31a9652574bc6ce9eef |
Hashes for mypy_boto3_datapipeline-1.13.26.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd1ddb555a9490c5d9cfb46048a679cdcef12812e256ed38a0799737a5c05d1e |
|
MD5 | ec0d92456f04607981b4e03ee44907f5 |
|
BLAKE2b-256 | 2b55f1ec3dcef951a85fb85b7039caa6430bd098a55267bbbc91a741c8699220 |