Registry / type-stubs / mypy-boto3-databrew

mypy-boto3-databrew

JSON →
library1.43.0pypypi✓ verified 22d ago

mypy-boto3-databrew provides comprehensive type annotations for the AWS GlueDataBrew service, enhancing developer experience with static type checking and IDE auto-completion for boto3. It is part of the `mypy-boto3-builder` ecosystem, which generates stubs for all AWS services. The library is actively maintained with frequent updates to align with boto3 releases and new AWS service features, typically on a monthly cadence.

pip install mypy-boto3-databrew boto3 mypy
INSTALL
IMPORT
SIG · MYPY-BOTO3-DATABRE
M
mypy-boto3-databrew
type-stubspythonv1.43.0
Install
7.7s avg
Import
610ms
Disk
116MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.43.0 · 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.910 runs
installs and imports cleanly · install 0.0s · import 0.631s · 118.1MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 7.7s · import 0.589s · 116MB
116MB installed
● package 116MB
Code
Verified usage

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

GlueDataBrewClient
from mypy_boto3_databrew.client import GlueDataBrewClient
Import the specific client type for GlueDataBrew.
BatchPutDataBrewJobResponseTypeDef
from mypy_boto3_databrew.type_defs import BatchPutDataBrewJobResponseTypeDef
Import specific TypedDicts for request/response bodies.

This quickstart demonstrates how to use `mypy-boto3-databrew` to add type hints to your boto3 GlueDataBrew client. It explicitly imports the `GlueDataBrewClient` type and a sample response `TypedDict` for improved type checking and auto-completion. The example initializes a DataBrew client and lists recipes, showcasing how type annotations benefit method calls and return values.

import boto3 from typing import TYPE_CHECKING if TYPE_CHECKING: from mypy_boto3_databrew.client import GlueDataBrewClient from mypy_boto3_databrew.type_defs import ListRecipesResponseTypeDef def get_databrew_recipes() -> ListRecipesResponseTypeDef: # Initialize the DataBrew client with type annotation client: GlueDataBrewClient = boto3.client("databrew") # Use the client with type-hinted methods and expected return types response: ListRecipesResponseTypeDef = client.list_recipes(MaxResults=5) print(f"Found {len(response['Recipes'])} DataBrew recipes.") for recipe in response.get('Recipes', []): print(f"- {recipe['Name']} (ARN: {recipe['Arn']})") return response if __name__ == "__main__": # Ensure AWS credentials are configured (e.g., via AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION) # For a runnable example without actual AWS calls, you might mock boto3 or use a dummy client. # This example assumes valid AWS credentials are set up. print("Listing DataBrew recipes...") try: get_databrew_recipes() except Exception as e: print(f"Error fetching DataBrew recipes: {e}") print("Please ensure AWS credentials and region are configured correctly.")
Debug
Known issues
breakingSupport for Python 3.8 has been removed in `mypy-boto3-builder` version 8.12.0 and subsequently in generated packages. Ensure your project uses Python 3.9 or newer.
fix
Upgrade your Python environment to 3.9 or a later version.
affects: mypy-boto3-builder >=8.12.0
breakingTypeDef names for packed method arguments were shortened (e.g., `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`). Conflicting `Extra` postfixes were moved to the end (`CreateDistributionExtraRequestTypeDef` to `CreateDistributionRequestExtraTypeDef`). This may require updates to explicit `TypedDict` imports in your code.
fix
Review and update explicit `TypedDict` imports and usage to reflect the new naming conventions.
affects: mypy-boto3-builder >=8.9.0
gotchaFor optimal performance and correct type resolution in PyCharm, especially with Literal overloads, it is recommended to use `boto3-stubs-lite` instead of the full stubs. Alternatively, disable PyCharm's internal type checker and rely on external tools like `mypy` or `pyright`.
fix
Consider `pip install 'boto3-stubs-lite[databrew]'` or configure your IDE to use an external type checker.
affects: All versions
gotchaWhile `mypy-boto3-databrew` provides type information, `boto3` and `mypy` (or another type checker) must be installed separately for the stubs to be effective. The stubs do not include the runtime library itself.
fix
Ensure `boto3` and `mypy` are included in your project's dependencies (`pip install boto3 mypy`).
affects: All versions
gotchaExplicit type annotations for `boto3.client()` calls are often recommended or necessary for the best type-checking and auto-completion experience, especially with IDEs like VSCode and PyCharm, as automatic type discovery may not always be fully reliable or performant.
fix
Always explicitly annotate your client creation, e.g., `client: GlueDataBrewClient = boto3.client('databrew')`.
affects: All versions
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredProvides the underlying AWS SDK for Python that these type stubs annotate.
mypyrequiredThe primary static type checker that these stubs are designed to work with.
Agent activity
27 hits · last 30 days
node
22
OpenAI (training)
2
Resources
mypy-boto3-databrew — pip install mypy-boto3-databrew · libregistry