Skip to content

MTurk module#

Index > MTurk

Auto-generated documentation for MTurk type annotations stubs module types-aiobotocore-mturk.

How to install#

From PyPI with pip#

Install types-aiobotocore for MTurk service.

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


# 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[mturk]'


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

How to uninstall#

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

Usage#

Code samples can be found in Examples.

MTurkClient#

Type annotations and code completion for session.create_client("mturk") as MTurkClient boto3 documentation

# MTurkClient usage example

from aiobotocore.session import get_session

from types_aiobotocore_mturk.client import MTurkClient


session = get_session()
async with session.create_client("mturk") as client:
    client: MTurkClient

Paginators#

Type annotations and code completion for paginators from session.create_client("mturk").get_paginator("...").

# ListAssignmentsForHITPaginator usage example

from types_aiobotocore_mturk.paginator import ListAssignmentsForHITPaginator

def get_list_assignments_for_hit_paginator() -> ListAssignmentsForHITPaginator:
    return client.get_paginator("list_assignments_for_hit"))

Literals#

Type annotations for literals used in methods and schema.

# AssignmentStatusType usage example

from types_aiobotocore_mturk.literals import AssignmentStatusType

def get_value() -> AssignmentStatusType:
    return "Approved"

Type definitions#

Type annotations for type definitions used in methods and schema.