Skip to main content

Type annotations for aiobotocore.Connect 2.13.0 service generated with mypy-boto3-builder 7.24.0

Project description

types-aiobotocore-connect

PyPI - types-aiobotocore-connect PyPI - Python Version Docs PyPI - Downloads

boto3.typed

Type annotations for aiobotocore.Connect 2.13.0 service compatible with VSCode, PyCharm, Emacs, Sublime Text, mypy, pyright and other tools.

Generated by mypy-boto3-builder 7.24.0.

More information can be found on types-aiobotocore page and in types-aiobotocore-connect docs.

See how it helps to find and fix potential bugs:

boto3-stubs demo

How to install

From PyPI with pip

Install types-aiobotocore for Connect service.

# install with aiobotocore type annotations
python -m pip install 'types-aiobotocore[connect]'


# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'types-aiobotocore-lite[connect]'


# standalone installation
python -m pip install types-aiobotocore-connect

How to uninstall

python -m pip uninstall -y types-aiobotocore-connect

Usage

VSCode

python -m pip install 'types-aiobotocore[connect]'

Both type checking and code completion should now work. No explicit type annotations required, write your aiobotocore code as usual.

PyCharm

Install types-aiobotocore-lite[connect] in your environment:

python -m pip install 'types-aiobotocore-lite[connect]'`

Both type checking and code completion should now work. Explicit type annotations are required.

Use types-aiobotocore package instead for implicit type discovery.

Emacs

  • Install types-aiobotocore with services you use in your environment:
python -m pip install 'types-aiobotocore[connect]'
(use-package lsp-pyright
  :ensure t
  :hook (python-mode . (lambda ()
                          (require 'lsp-pyright)
                          (lsp)))  ; or lsp-deferred
  :init (when (executable-find "python3")
          (setq lsp-pyright-python-executable-cmd "python3"))
  )
  • Make sure emacs uses the environment where you have installed types-aiobotocore

Type checking should now work. No explicit type annotations required, write your aiobotocore code as usual.

Sublime Text

  • Install types-aiobotocore[connect] with services you use in your environment:
python -m pip install 'types-aiobotocore[connect]'

Type checking should now work. No explicit type annotations required, write your aiobotocore code as usual.

Other IDEs

Not tested, but as long as your IDE supports mypy or pyright, everything should work.

mypy

  • Install mypy: python -m pip install mypy
  • Install types-aiobotocore[connect] in your environment:
python -m pip install 'types-aiobotocore[connect]'`

Type checking should now work. No explicit type annotations required, write your aiobotocore code as usual.

pyright

  • Install pyright: npm i -g pyright
  • Install types-aiobotocore[connect] in your environment:
python -m pip install 'types-aiobotocore[connect]'

Optionally, you can install types-aiobotocore to typings folder.

Type checking should now work. No explicit type annotations required, write your aiobotocore code as usual.

Explicit type annotations

Client annotations

ConnectClient provides annotations for session.create_client("connect").

from aiobotocore.session import get_session

from types_aiobotocore_connect import ConnectClient

session = get_session()
async with session.create_client("connect") as client:
    client: ConnectClient
    # now client usage is checked by mypy and IDE should provide code completion

Paginators annotations

types_aiobotocore_connect.paginator module contains type annotations for all paginators.

from aiobotocore.session import get_session

from types_aiobotocore_connect import ConnectClient
from types_aiobotocore_connect.paginator import (
    GetMetricDataPaginator,
    ListAgentStatusesPaginator,
    ListApprovedOriginsPaginator,
    ListBotsPaginator,
    ListContactEvaluationsPaginator,
    ListContactFlowModulesPaginator,
    ListContactFlowsPaginator,
    ListContactReferencesPaginator,
    ListDefaultVocabulariesPaginator,
    ListEvaluationFormVersionsPaginator,
    ListEvaluationFormsPaginator,
    ListFlowAssociationsPaginator,
    ListHoursOfOperationsPaginator,
    ListInstanceAttributesPaginator,
    ListInstanceStorageConfigsPaginator,
    ListInstancesPaginator,
    ListIntegrationAssociationsPaginator,
    ListLambdaFunctionsPaginator,
    ListLexBotsPaginator,
    ListPhoneNumbersPaginator,
    ListPhoneNumbersV2Paginator,
    ListPredefinedAttributesPaginator,
    ListPromptsPaginator,
    ListQueueQuickConnectsPaginator,
    ListQueuesPaginator,
    ListQuickConnectsPaginator,
    ListRoutingProfileQueuesPaginator,
    ListRoutingProfilesPaginator,
    ListRulesPaginator,
    ListSecurityKeysPaginator,
    ListSecurityProfileApplicationsPaginator,
    ListSecurityProfilePermissionsPaginator,
    ListSecurityProfilesPaginator,
    ListTaskTemplatesPaginator,
    ListTrafficDistributionGroupUsersPaginator,
    ListTrafficDistributionGroupsPaginator,
    ListUseCasesPaginator,
    ListUserHierarchyGroupsPaginator,
    ListUserProficienciesPaginator,
    ListUsersPaginator,
    ListViewVersionsPaginator,
    ListViewsPaginator,
    SearchAvailablePhoneNumbersPaginator,
    SearchContactFlowModulesPaginator,
    SearchContactFlowsPaginator,
    SearchContactsPaginator,
    SearchHoursOfOperationsPaginator,
    SearchPredefinedAttributesPaginator,
    SearchPromptsPaginator,
    SearchQueuesPaginator,
    SearchQuickConnectsPaginator,
    SearchResourceTagsPaginator,
    SearchRoutingProfilesPaginator,
    SearchSecurityProfilesPaginator,
    SearchUsersPaginator,
    SearchVocabulariesPaginator,
)

session = get_session()
async with session.create_client("connect") as client:
    client: ConnectClient

    # Explicit type annotations are optional here
    # Types should be correctly discovered by mypy and IDEs
    get_metric_data_paginator: GetMetricDataPaginator = client.get_paginator("get_metric_data")
    list_agent_statuses_paginator: ListAgentStatusesPaginator = client.get_paginator(
        "list_agent_statuses"
    )
    list_approved_origins_paginator: ListApprovedOriginsPaginator = client.get_paginator(
        "list_approved_origins"
    )
    list_bots_paginator: ListBotsPaginator = client.get_paginator("list_bots")
    list_contact_evaluations_paginator: ListContactEvaluationsPaginator = client.get_paginator(
        "list_contact_evaluations"
    )
    list_contact_flow_modules_paginator: ListContactFlowModulesPaginator = client.get_paginator(
        "list_contact_flow_modules"
    )
    list_contact_flows_paginator: ListContactFlowsPaginator = client.get_paginator(
        "list_contact_flows"
    )
    list_contact_references_paginator: ListContactReferencesPaginator = client.get_paginator(
        "list_contact_references"
    )
    list_default_vocabularies_paginator: ListDefaultVocabulariesPaginator = client.get_paginator(
        "list_default_vocabularies"
    )
    list_evaluation_form_versions_paginator: ListEvaluationFormVersionsPaginator = (
        client.get_paginator("list_evaluation_form_versions")
    )
    list_evaluation_forms_paginator: ListEvaluationFormsPaginator = client.get_paginator(
        "list_evaluation_forms"
    )
    list_flow_associations_paginator: ListFlowAssociationsPaginator = client.get_paginator(
        "list_flow_associations"
    )
    list_hours_of_operations_paginator: ListHoursOfOperationsPaginator = client.get_paginator(
        "list_hours_of_operations"
    )
    list_instance_attributes_paginator: ListInstanceAttributesPaginator = client.get_paginator(
        "list_instance_attributes"
    )
    list_instance_storage_configs_paginator: ListInstanceStorageConfigsPaginator = (
        client.get_paginator("list_instance_storage_configs")
    )
    list_instances_paginator: ListInstancesPaginator = client.get_paginator("list_instances")
    list_integration_associations_paginator: ListIntegrationAssociationsPaginator = (
        client.get_paginator("list_integration_associations")
    )
    list_lambda_functions_paginator: ListLambdaFunctionsPaginator = client.get_paginator(
        "list_lambda_functions"
    )
    list_lex_bots_paginator: ListLexBotsPaginator = client.get_paginator("list_lex_bots")
    list_phone_numbers_paginator: ListPhoneNumbersPaginator = client.get_paginator(
        "list_phone_numbers"
    )
    list_phone_numbers_v2_paginator: ListPhoneNumbersV2Paginator = client.get_paginator(
        "list_phone_numbers_v2"
    )
    list_predefined_attributes_paginator: ListPredefinedAttributesPaginator = client.get_paginator(
        "list_predefined_attributes"
    )
    list_prompts_paginator: ListPromptsPaginator = client.get_paginator("list_prompts")
    list_queue_quick_connects_paginator: ListQueueQuickConnectsPaginator = client.get_paginator(
        "list_queue_quick_connects"
    )
    list_queues_paginator: ListQueuesPaginator = client.get_paginator("list_queues")
    list_quick_connects_paginator: ListQuickConnectsPaginator = client.get_paginator(
        "list_quick_connects"
    )
    list_routing_profile_queues_paginator: ListRoutingProfileQueuesPaginator = client.get_paginator(
        "list_routing_profile_queues"
    )
    list_routing_profiles_paginator: ListRoutingProfilesPaginator = client.get_paginator(
        "list_routing_profiles"
    )
    list_rules_paginator: ListRulesPaginator = client.get_paginator("list_rules")
    list_security_keys_paginator: ListSecurityKeysPaginator = client.get_paginator(
        "list_security_keys"
    )
    list_security_profile_applications_paginator: ListSecurityProfileApplicationsPaginator = (
        client.get_paginator("list_security_profile_applications")
    )
    list_security_profile_permissions_paginator: ListSecurityProfilePermissionsPaginator = (
        client.get_paginator("list_security_profile_permissions")
    )
    list_security_profiles_paginator: ListSecurityProfilesPaginator = client.get_paginator(
        "list_security_profiles"
    )
    list_task_templates_paginator: ListTaskTemplatesPaginator = client.get_paginator(
        "list_task_templates"
    )
    list_traffic_distribution_group_users_paginator: ListTrafficDistributionGroupUsersPaginator = (
        client.get_paginator("list_traffic_distribution_group_users")
    )
    list_traffic_distribution_groups_paginator: ListTrafficDistributionGroupsPaginator = (
        client.get_paginator("list_traffic_distribution_groups")
    )
    list_use_cases_paginator: ListUseCasesPaginator = client.get_paginator("list_use_cases")
    list_user_hierarchy_groups_paginator: ListUserHierarchyGroupsPaginator = client.get_paginator(
        "list_user_hierarchy_groups"
    )
    list_user_proficiencies_paginator: ListUserProficienciesPaginator = client.get_paginator(
        "list_user_proficiencies"
    )
    list_users_paginator: ListUsersPaginator = client.get_paginator("list_users")
    list_view_versions_paginator: ListViewVersionsPaginator = client.get_paginator(
        "list_view_versions"
    )
    list_views_paginator: ListViewsPaginator = client.get_paginator("list_views")
    search_available_phone_numbers_paginator: SearchAvailablePhoneNumbersPaginator = (
        client.get_paginator("search_available_phone_numbers")
    )
    search_contact_flow_modules_paginator: SearchContactFlowModulesPaginator = client.get_paginator(
        "search_contact_flow_modules"
    )
    search_contact_flows_paginator: SearchContactFlowsPaginator = client.get_paginator(
        "search_contact_flows"
    )
    search_contacts_paginator: SearchContactsPaginator = client.get_paginator("search_contacts")
    search_hours_of_operations_paginator: SearchHoursOfOperationsPaginator = client.get_paginator(
        "search_hours_of_operations"
    )
    search_predefined_attributes_paginator: SearchPredefinedAttributesPaginator = (
        client.get_paginator("search_predefined_attributes")
    )
    search_prompts_paginator: SearchPromptsPaginator = client.get_paginator("search_prompts")
    search_queues_paginator: SearchQueuesPaginator = client.get_paginator("search_queues")
    search_quick_connects_paginator: SearchQuickConnectsPaginator = client.get_paginator(
        "search_quick_connects"
    )
    search_resource_tags_paginator: SearchResourceTagsPaginator = client.get_paginator(
        "search_resource_tags"
    )
    search_routing_profiles_paginator: SearchRoutingProfilesPaginator = client.get_paginator(
        "search_routing_profiles"
    )
    search_security_profiles_paginator: SearchSecurityProfilesPaginator = client.get_paginator(
        "search_security_profiles"
    )
    search_users_paginator: SearchUsersPaginator = client.get_paginator("search_users")
    search_vocabularies_paginator: SearchVocabulariesPaginator = client.get_paginator(
        "search_vocabularies"
    )

Literals

types_aiobotocore_connect.literals module contains literals extracted from shapes that can be used in user code for type checking.

Full list of Connect Literals can be found in docs.

from types_aiobotocore_connect.literals import ActionTypeType


def check_value(value: ActionTypeType) -> bool: ...

Type definitions

types_aiobotocore_connect.type_defs module contains structures and shapes assembled to typed dictionaries and unions for additional type checking.

Full list of Connect TypeDefs can be found in docs.

from types_aiobotocore_connect.type_defs import ActionSummaryTypeDef


def get_value() -> ActionSummaryTypeDef:
    return {...}

How it works

Fully automated mypy-boto3-builder carefully generates type annotations for each service, patiently waiting for aiobotocore updates. It delivers drop-in type annotations for you and makes sure that:

  • All available aiobotocore services are covered.
  • Each public class and method of every aiobotocore service gets valid type annotations extracted from botocore schemas.
  • Type annotations include up-to-date documentation.
  • Link to documentation is provided for every method.
  • Code is processed by black and isort for readability.

What's new

Implemented features

  • Fully type annotated boto3, botocore, aiobotocore and aioboto3 libraries
  • mypy, pyright, VSCode, PyCharm, Sublime Text and Emacs compatibility
  • Client, ServiceResource, Resource, Waiter Paginator type annotations for each service
  • Generated TypeDefs for each service
  • Generated Literals for each service
  • Auto discovery of types for boto3.client and boto3.resource calls
  • Auto discovery of types for session.client and session.resource calls
  • Auto discovery of types for client.get_waiter and client.get_paginator calls
  • Auto discovery of types for ServiceResource and Resource collections
  • Auto discovery of types for aiobotocore.Session.create_client calls

Latest changes

Builder changelog can be found in Releases.

Versioning

types-aiobotocore-connect version is the same as related aiobotocore version and follows PEP 440 format.

Thank you

Documentation

All services type annotations can be found in aiobotocore docs

Support and contributing

This package is auto-generated. Please reports any bugs or request new features in mypy-boto3-builder repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

types_aiobotocore_connect-2.13.0.tar.gz (118.1 kB view details)

Uploaded Source

Built Distribution

types_aiobotocore_connect-2.13.0-py3-none-any.whl (120.6 kB view details)

Uploaded Python 3

File details

Details for the file types_aiobotocore_connect-2.13.0.tar.gz.

File metadata

File hashes

Hashes for types_aiobotocore_connect-2.13.0.tar.gz
Algorithm Hash digest
SHA256 39f9e772a3176d2edb1fb56a2a5bcc36e8f88b19a8962dcc943c6b32ad599a3d
MD5 d7833f968144b8c64e5bf8796fbbb922
BLAKE2b-256 e554d008486e759dc6158d9d6eaf6d0aba17a2fb6187233d4aed1589adb64b2a

See more details on using hashes here.

File details

Details for the file types_aiobotocore_connect-2.13.0-py3-none-any.whl.

File metadata

File hashes

Hashes for types_aiobotocore_connect-2.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc5e7a46125b4d33633713e768521f7bc10c2ea8d48d846a57daac8957e92e00
MD5 eb514d834336c3393123e92192dd1a79
BLAKE2b-256 ff4a699f218e2298f8d39055b254b4b67116354e9c0c09ee457955efecbff852

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page