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-aioboto3 for MTurk service.

# install with aioboto3 type annotations
python -m pip install 'types-aioboto3[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-aioboto3-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.client("mturk") as MTurkClient boto3 documentation

Usage example
from aioboto3.session import Session

from types_aiobotocore_mturk.client import MTurkClient


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

Paginators

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

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.

Usage example
from types_aiobotocore_mturk.literals import AssignmentStatusType

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

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from types_aiobotocore_mturk.type_defs import AcceptQualificationRequestRequestRequestTypeDef

def get_value() -> AcceptQualificationRequestRequestRequestTypeDef:
    return {
        "QualificationRequestId": ...,
    }