Type annotations for boto3.Connect 1.13.25 service, generated by mypy-boto3-buider 2.0.2
Project description
mypy-boto3-connect
Type annotations for boto3.Connect 1.13.25 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 Connect
service.
python -m pip install boto3-stubs[connect]
# update installed packages index for automated type discovery
python -m mypy_boto3
Use boto3
with mypy_boto3_connect
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_connect import ConnectClient
# Now mypy can check if your code is valid.
client: ConnectClient = boto3.client("connect")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: ConnectClient = session.client("connect")
# Annotated paginators are included as well
import mypy_boto3_connect.paginator as connect_paginators
get_metric_data_paginator: connect_paginators.GetMetricDataPaginator = client.get_paginator("get_metric_data")
list_contact_flows_paginator: connect_paginators.ListContactFlowsPaginator = client.get_paginator("list_contact_flows")
list_hours_of_operations_paginator: connect_paginators.ListHoursOfOperationsPaginator = client.get_paginator("list_hours_of_operations")
list_phone_numbers_paginator: connect_paginators.ListPhoneNumbersPaginator = client.get_paginator("list_phone_numbers")
list_queues_paginator: connect_paginators.ListQueuesPaginator = client.get_paginator("list_queues")
list_routing_profiles_paginator: connect_paginators.ListRoutingProfilesPaginator = client.get_paginator("list_routing_profiles")
list_security_profiles_paginator: connect_paginators.ListSecurityProfilesPaginator = client.get_paginator("list_security_profiles")
list_user_hierarchy_groups_paginator: connect_paginators.ListUserHierarchyGroupsPaginator = client.get_paginator("list_user_hierarchy_groups")
list_users_paginator: connect_paginators.ListUsersPaginator = client.get_paginator("list_users")
Automated type discovery
mypy_boto3
package can generate index for mypy_boto3_connect
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_connect as connect
from mypy_boto3_connect import ConnectClient
# with these
from mypy_boto3 import connect
from mypy_boto3.connect import ConnectClient
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-connect-1.13.25.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 118910b173bb5cf5cd13e87c5fb70ecfd40c675ff95f262af4d2955e2ed1dd40 |
|
MD5 | 7dc4e8044dc3f21419bd063e0b0e0bc1 |
|
BLAKE2b-256 | b69756bf3823971d474336aa710dbad8cdf9bfc03854a239460e24ff3e7703c1 |
Hashes for mypy_boto3_connect-1.13.25.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d026569ade9dc7576c72e8ed4cc6027a60df1f2c4077b4fd1772db05b4287b40 |
|
MD5 | df42fd25fb667d9d0ae801ed63a2490f |
|
BLAKE2b-256 | 257c1cd29c358741eed227b1c26a3cca2736b6b3a77e78e8c38bff90cf3d407c |