Registry / type-stubs / mypy-boto3-redshift-data

mypy-boto3-redshift-data

JSON →
library1.43.55pypypi✓ verified 24d ago

mypy-boto3-redshift-data provides high-quality type annotations for the `boto3` RedshiftDataAPIService, enhancing developer experience with static type checking for AWS interactions. It's part of the `mypy-boto3` ecosystem, which generates stubs for all `boto3` services. Releases are frequent, typically following new `boto3` versions and `mypy-boto3-builder` updates.

pip install mypy-boto3-redshift-data
INSTALL
IMPORT
SIG · MYPY-BOTO3-REDSHIF
M
mypy-boto3-redshift-data
type-stubspythonv1.43.55
Install
1.6s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.43.55 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.3MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.000s · 19MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RedshiftDataClient
from mypy_boto3_redshift_data import RedshiftDataClient
from mypy_boto3_redshift_data import RedshiftDataClient

This quickstart demonstrates how to initialize a `boto3` RedshiftData client and use it with type hints provided by `mypy-boto3-redshift-data`. It includes an example `execute_statement` call, showcasing how input arguments and output responses benefit from static type checking. Remember to install `boto3` separately.

import boto3 from mypy_boto3_redshift_data import RedshiftDataClient from mypy_boto3_redshift_data.type_defs import ExecuteStatementResponseTypeDef import os # Instantiate the boto3 client, which will be augmented with type hints # from mypy-boto3-redshift-data for static analysis. client: RedshiftDataClient = boto3.client("redshift-data") # Example of executing a Redshift Data API statement. # Replace with your actual cluster, database, and SQL for a successful run. cluster_identifier = os.environ.get("REDSHIFT_CLUSTER_IDENTIFIER", "your-redshift-cluster-identifier") database = os.environ.get("REDSHIFT_DATABASE", "dev") db_user = os.environ.get("REDSHIFT_DB_USER", "awsuser") sql_statement = "SELECT 1;" # A simple, safe statement try: # mypy will check arguments and the response type response: ExecuteStatementResponseTypeDef = client.execute_statement( ClusterIdentifier=cluster_identifier, Database=database, DbUser=db_user, Sql=sql_statement, WithEvent=False # Example of an optional parameter with type checking ) print(f"Statement ID: {response['Id']}") # Accessing an optional key safely with .get() print(f"Statement status: {response.get('Status', 'UNKNOWN')}") # Mypy would flag if you tried to access 'response["NonExistentKey"]' # or used a wrong type for an argument to client.execute_statement. except Exception as e: print(f"Error executing statement: {e}") print("Please ensure environment variables REDSHIFT_CLUSTER_IDENTIFIER, REDSHIFT_DATABASE, REDSHIFT_DB_USER are set if expecting a successful execution.") print("\nType checking for RedshiftDataClient is enabled.")
Debug
Known issues
breakingStarting with version 8.12.0 of `mypy-boto3-builder` (which generates this stub), support for Python 3.8 has been removed. Projects using these stubs must target Python 3.9 or newer.
fix
Upgrade your project's Python version to 3.9 or higher.
affects: 8.12.0+
breakingVersion 8.9.0 introduced changes to TypedDict naming conventions to improve consistency and resolve conflicts. Some TypeDef names may have been shortened or have `Extra` moved to the end.
fix
Review your code for TypeDef imports and adjust names according to the new conventions (e.g., `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`).
affects: 8.9.0+
gotchaThis package provides only type stubs and does not include the `boto3` runtime library itself. `boto3` must be installed separately for your code to execute.
fix
Ensure `boto3` is installed in your environment: `pip install boto3`.
affects: All
gotchaFor the most accurate type checking, the version of `mypy-boto3-redshift-data` should ideally match or be close to your installed `boto3` version, as stubs are generated for specific `boto3` releases.
fix
Align `mypy-boto3-redshift-data` and `boto3` versions, e.g., `pip install 'boto3==1.42.3' 'mypy-boto3-redshift-data==1.42.3'` (replace with desired versions).
affects: All
Upgrade
Version history
1.43.55latest on PyPI · released Jul 23, 2026
Audit
Dependencies
boto3requiredProvides the runtime client for which these type stubs are generated.
Agent activity
22 hits · last 30 days
node
20
OpenAI (training)
1
Resources
mypy-boto3-redshift-data — pip install mypy-boto3-redshift-data · libregistry