Skip to content

Mobile module#

Index > Mobile

Auto-generated documentation for Mobile type annotations stubs module mypy-boto3-mobile.

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

From PyPI with pip#

Install boto3-stubs for Mobile service.

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

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

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

How to uninstall#

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


Code samples can be found in Examples.


Type annotations and code completion for boto3.client("mobile") as MobileClient boto3 documentation

# MobileClient usage example

from boto3.session import Session

from mypy_boto3_mobile.client import MobileClient

def get_client() -> MobileClient:
    return Session().client("mobile")


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

# ListBundlesPaginator usage example

from boto3.session import Session

from mypy_boto3_mobile.paginator import ListBundlesPaginator

def get_list_bundles_paginator() -> ListBundlesPaginator:
    return Session().client("mobile").get_paginator("list_bundles"))


Type annotations for literals used in methods and schemas.

# ListBundlesPaginatorName usage example

from mypy_boto3_mobile.literals import ListBundlesPaginatorName

def get_value() -> ListBundlesPaginatorName:
    return "list_bundles"

Typed dictionaries#

Type annotations for typed dictionaries used in methods and schema.

# BundleDetailsTypeDef usage example

from mypy_boto3_mobile.type_defs import BundleDetailsTypeDef

def get_value() -> BundleDetailsTypeDef:
    return {
        "bundleId": ...,