Skip to content

TimestreamQuery module#

Index > TimestreamQuery

Auto-generated documentation for TimestreamQuery type annotations stubs module types-aiobotocore-timestream-query.

How to install#

You can generate type annotations for aiobotocore package locally with mypy-boto3-builder. Use uv for build isolation.

  1. Run mypy-boto3-builder in your package root directory: uvx --with 'aiobotocore==2.23.2' mypy-boto3-builder
  2. Select aiobotocore AWS SDK.
  3. Add TimestreamQuery service.
  4. Use provided commands to install generated packages.

From PyPI with pip#

Install types-aiobotocore for TimestreamQuery service.

# install with aiobotocore type annotations
python -m pip install 'types-aiobotocore[timestream-query]'

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

# standalone installation
python -m pip install types-aiobotocore-timestream-query

How to uninstall#

python -m pip uninstall -y types-aiobotocore-timestream-query

Usage#

Code samples can be found in Examples.

TimestreamQueryClient#

Type annotations and code completion for session.create_client("timestream-query") as TimestreamQueryClient boto3 documentation

# TimestreamQueryClient usage example

from aiobotocore.session import get_session

from types_aiobotocore_timestream_query.client import TimestreamQueryClient


session = get_session()
async with session.create_client("timestream-query") as client:
    client: TimestreamQueryClient

Paginators#

Type annotations and code completion for paginators from session.create_client("timestream-query").get_paginator("...").

# ListScheduledQueriesPaginator usage example

from types_aiobotocore_timestream_query.paginator import ListScheduledQueriesPaginator

def get_list_scheduled_queries_paginator() -> ListScheduledQueriesPaginator:
    return client.get_paginator("list_scheduled_queries"))

Literals#

Type annotations for literals used in methods and schema.

# ComputeModeType usage example

from types_aiobotocore_timestream_query.literals import ComputeModeType

def get_value() -> ComputeModeType:
    return "ON_DEMAND"

Type definitions#

Type annotations for type definitions used in methods and schema.