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

Usage#

Code samples can be found in Examples.

DeviceFarmClient#

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")

Paginators#

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"))

Literals#

Type annotations for literals used in methods and schema.

# ArtifactCategoryType usage example

from mypy_boto3_devicefarm.literals import ArtifactCategoryType

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

Type definitions#

Type annotations for type definitions used in methods and schema.