Type annotations for boto3.DataPipeline 1.14.0 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-datapipeline
Type annotations for boto3.DataPipeline 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 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.14.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c467b7e2b7b262acb938bc6abe85a9d939f13a3740b92b582cb4af296dc01f6b |
|
MD5 | aa338794e5d2289602b4787199ee8332 |
|
BLAKE2b-256 | e71f45bff888f6c50d2658974c394903fd069559511171afa452013ee9880938 |
Hashes for mypy_boto3_datapipeline-1.14.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0036055a135a0e6e2b8477e13e97f32c792a0c6843bc576ee8492795dd9ab55c |
|
MD5 | 6db4d94118f33e7eb4bb02d7a1da04c5 |
|
BLAKE2b-256 | 175b431cf4914092f1b826cac18e4590d62a1d09412acb4fc4a98d1c8979bafa |