types-aiobotocore-timestream-query

raw JSON →
3.5.0 verified Fri May 01 auth: no python

Type annotations for aiobotocore TimestreamQuery 3.5.0 service generated with mypy-boto3-builder 8.12.0. Provides static type checking and autocomplete for AWS Timestream Query operations when using aiobotocore. Supports Python 3.9+.

pip install types-aiobotocore[timestream-query]
error Cannot find reference 'TimestreamQueryClient' in 'types_aiobotocore_timestream_query.pyi'
cause Incorrect import path: trying to import directly from the package root instead of nested modules.
fix
Use: from types_aiobotocore_timestream_query.client import TimestreamQueryClient
error ModuleNotFoundError: No module named 'types_aiobotocore_timestream_query'
cause Package not installed, or installed under a different name.
fix
Install via pip install types-aiobotocore[timestream-query] or pip install types-aiobotocore-timestream-query
error TypeError: 'AioSession' object is not callable
cause Using get_session incorrectly; get_session returns a session object, not creates one.
fix
Use: from aiobotocore.session import get_session; session = get_session()
breaking Version 8.12.0 dropped Python 3.8 support. Ensure your environment uses Python >= 3.9.
fix Upgrade Python to 3.9+ or pin to earlier version (e.g., types-aiobotocore-timestream-query<8.12.0).
breaking Version 8.9.0 shortened TypeDef names (e.g., removed duplicate 'Request' suffix). If you reference type definitions by name, they may have changed.
fix Update any hardcoded type name strings to match new shorter names.
gotcha The package provides type hints only; it does not include the aiobotocore runtime. You must also install aiobotocore and botocore.
fix Install aiobotocore: pip install aiobotocore
gotcha Using pip install types-aiobotocore[timestream-query] installs type annotations for all aiobotocore services plus the timestream-query types. The standalone package installs only timestream-query types.
fix If you only need timestream-query, use the standalone package to reduce installation size.
pip install types-aiobotocore-timestream-query

Basic usage with async context manager and type hints.

import asyncio
from types_aiobotocore_timestream_query import TimestreamQueryClient
from aiobotocore.session import get_session

async def main():
    session = get_session()
    async with session.create_client('timestream-query', region_name='us-east-1') as client:
        # client is of type TimestreamQueryClient
        response = await client.query(QueryString='SELECT 1')
        print(response)

asyncio.run(main())