Skip to content

ForecastService module

Index > ForecastService

Auto-generated documentation for ForecastService type annotations stubs module types-aiobotocore-forecast.

How to install

From PyPI with pip

Install types-aioboto3 for ForecastService service.

# install with aioboto3 type annotations
python -m pip install 'types-aioboto3[forecast]'


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


# standalone installation
python -m pip install types-aiobotocore-forecast

How to uninstall

python -m pip uninstall -y types-aiobotocore-forecast

Usage

Code samples can be found in Examples.

ForecastServiceClient

Type annotations and code completion for session.client("forecast") as ForecastServiceClient boto3 documentation

Usage example
from aioboto3.session import Session

from types_aiobotocore_forecast.client import ForecastServiceClient


session = Session()
async with session.client("forecast") as client:
    client: ForecastServiceClient

Paginators

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

Usage example
from types_aiobotocore_forecast.paginator import ListDatasetGroupsPaginator

def get_list_dataset_groups_paginator() -> ListDatasetGroupsPaginator:
    return client.get_paginator("list_dataset_groups"))

Literals

Type annotations for literals used in methods and schema.

Usage example
from types_aiobotocore_forecast.literals import AttributeTypeType

def get_value() -> AttributeTypeType:
    return "float"

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from types_aiobotocore_forecast.type_defs import ActionTypeDef

def get_value() -> ActionTypeDef:
    return {
        "AttributeName": ...,
        "Operation": ...,
        "Value": ...,
    }