Skip to main content

Type annotations for aiobotocore.Connect 2.5.2 service generated with mypy-boto3-builder 7.17.2

Project description

types-aiobotocore-connect

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

boto3.typed

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

Generated by mypy-boto3-builder 7.17.2.

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,
    ListHoursOfOperationsPaginator,
    ListInstanceAttributesPaginator,
    ListInstanceStorageConfigsPaginator,
    ListInstancesPaginator,
    ListIntegrationAssociationsPaginator,
    ListLambdaFunctionsPaginator,
    ListLexBotsPaginator,
    ListPhoneNumbersPaginator,
    ListPhoneNumbersV2Paginator,
    ListPromptsPaginator,
    ListQueueQuickConnectsPaginator,
    ListQueuesPaginator,
    ListQuickConnectsPaginator,
    ListRoutingProfileQueuesPaginator,
    ListRoutingProfilesPaginator,
    ListRulesPaginator,
    ListSecurityKeysPaginator,
    ListSecurityProfilePermissionsPaginator,
    ListSecurityProfilesPaginator,
    ListTaskTemplatesPaginator,
    ListTrafficDistributionGroupsPaginator,
    ListUseCasesPaginator,
    ListUserHierarchyGroupsPaginator,
    ListUsersPaginator,
    SearchAvailablePhoneNumbersPaginator,
    SearchHoursOfOperationsPaginator,
    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_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_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_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_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_users_paginator: ListUsersPaginator = client.get_paginator("list_users")
    search_available_phone_numbers_paginator: SearchAvailablePhoneNumbersPaginator = (
        client.get_paginator("search_available_phone_numbers")
    )
    search_hours_of_operations_paginator: SearchHoursOfOperationsPaginator = client.get_paginator(
        "search_hours_of_operations"
    )
    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.5.2.post2.tar.gz (92.2 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file types-aiobotocore-connect-2.5.2.post2.tar.gz.

File metadata

File hashes

Hashes for types-aiobotocore-connect-2.5.2.post2.tar.gz
Algorithm Hash digest
SHA256 f774f077b0b537d11b526a4f96c197f6fc6f4c4f5d3b673eecf827cecf61a307
MD5 a9250715d01d7d8698d72132a8541f25
BLAKE2b-256 d90387ac2e8e7a2c914f9c2b73db62585d7dda5700553f12eefebd5fcf9d72a6

See more details on using hashes here.

File details

Details for the file types_aiobotocore_connect-2.5.2.post2-py3-none-any.whl.

File metadata

File hashes

Hashes for types_aiobotocore_connect-2.5.2.post2-py3-none-any.whl
Algorithm Hash digest
SHA256 2d36f9846c72a035dd7a777b6637e35afb7ccd4c55da20bf59a3cfba14fb4a4a
MD5 a06926f4e1b6b164b7b0c910177f2677
BLAKE2b-256 225ae3c80aaf254a7de0c8333c5399a9e1e4895064b9f8268e28698cb6392d09

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