Type annotations for boto3.Connect 1.14.0 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-connect
Type annotations for boto3.Connect 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 Connect
service.
python -m pip install boto3-stubs[connect]
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")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_connect
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("connect")
session_client = boto3.Session().client("connect")
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.14.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4c44244f7fe0864553212b9262c4dc67362ccf5b129ec613bea1d3ef6805819 |
|
MD5 | 0ea086baa68ea15b66d80ecd40d5247c |
|
BLAKE2b-256 | 5647bb4f5a35fa1e7d68c6afe03bba8d89e1cf868c9c4bc58ba83e37f4ff2814 |
Hashes for mypy_boto3_connect-1.14.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eead95005877a3d4a5d3edb0b49e897e1fbebd4e009253126899665d164f14c5 |
|
MD5 | 594449b3eebc107426ab1adafe4e5d25 |
|
BLAKE2b-256 | 1f7a81c298c2d1d22b907d6fccfa292edba5cdaeb5eafeef9fe0ea98edfe92d5 |