Skip to content

DeviceFarm module#

Index > DeviceFarm

Auto-generated documentation for DeviceFarm type annotations stubs module mypy-boto3-devicefarm.

How to install#

VSCode extension#

Add AWS Boto3 extension to your VSCode and run AWS boto3: Quick Start command.

Click Modify and select boto3 common and DeviceFarm.

From PyPI with pip#

Install boto3-stubs for DeviceFarm service.

# install with boto3 type annotations
python -m pip install 'boto3-stubs[devicefarm]'

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

# standalone installation
python -m pip install mypy-boto3-devicefarm

How to uninstall#

python -m pip uninstall -y mypy-boto3-devicefarm


Code samples can be found in Examples.


Type annotations and code completion for boto3.client("devicefarm") as DeviceFarmClient boto3 documentation

# DeviceFarmClient usage example

from boto3.session import Session

from mypy_boto3_devicefarm.client import DeviceFarmClient

def get_client() -> DeviceFarmClient:
    return Session().client("devicefarm")


Type annotations and code completion for paginators from boto3.client("devicefarm").get_paginator("...").

# GetOfferingStatusPaginator usage example

from boto3.session import Session

from mypy_boto3_devicefarm.paginator import GetOfferingStatusPaginator

def get_get_offering_status_paginator() -> GetOfferingStatusPaginator:
    return Session().client("devicefarm").get_paginator("get_offering_status"))


Type annotations for literals used in methods and schemas.

# ArtifactCategoryType usage example

from mypy_boto3_devicefarm.literals import ArtifactCategoryType

def get_value() -> ArtifactCategoryType:
    return "FILE"

Typed dictionaries#

Type annotations for typed dictionaries used in methods and schema.

# TrialMinutesTypeDef usage example

from mypy_boto3_devicefarm.type_defs import TrialMinutesTypeDef

def get_value() -> TrialMinutesTypeDef:
    return {
        "total": ...,