Skip to content

Rekognition module#

Index > Rekognition

Auto-generated documentation for Rekognition type annotations stubs module mypy-boto3-rekognition.

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 Rekognition.

From PyPI with pip#

Install boto3-stubs for Rekognition service.

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


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


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

How to uninstall#

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

Usage#

Code samples can be found in Examples.

RekognitionClient#

Type annotations and code completion for boto3.client("rekognition") as RekognitionClient boto3 documentation

# RekognitionClient usage example

from boto3.session import Session

from mypy_boto3_rekognition.client import RekognitionClient

def get_client() -> RekognitionClient:
    return Session().client("rekognition")

Paginators#

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

# DescribeProjectVersionsPaginator usage example

from boto3.session import Session

from mypy_boto3_rekognition.paginator import DescribeProjectVersionsPaginator

def get_describe_project_versions_paginator() -> DescribeProjectVersionsPaginator:
    return Session().client("rekognition").get_paginator("describe_project_versions"))

Waiters#

Type annotations and code completion for waiters from boto3.client("rekognition").get_waiter("...").

# ProjectVersionRunningWaiter usage example

from boto3.session import Session

from mypy_boto3_rekognition.waiter import ProjectVersionRunningWaiter

def get_project_version_running_waiter() -> ProjectVersionRunningWaiter:
    return Session().client("rekognition").get_waiter("project_version_running")

Literals#

Type annotations for literals used in methods and schema.

# AttributeType usage example

from mypy_boto3_rekognition.literals import AttributeType

def get_value() -> AttributeType:
    return "AGE_RANGE"

Type definitions#

Type annotations for type definitions used in methods and schema.