Registry / type-stubs / mypy-boto3-resource-groups

mypy-boto3-resource-groups

JSON →
library1.43.0pypypi✓ verified 24d ago

mypy-boto3-resource-groups provides static type annotations for the AWS Resource Groups service within `boto3`, enabling robust type checking with tools like MyPy, Pyright, and enhanced IDE auto-completion. It is generated by `mypy-boto3-builder` and is part of a larger ecosystem of stub packages that closely track `boto3` releases, with frequent updates for new services and API changes.

pip install mypy-boto3-resource-groups
INSTALL
IMPORT
SIG · MYPY-BOTO3-RESOURC
M
mypy-boto3-resource-groups
type-stubspythonv1.43.0
Install
3.4s avg
Import
Disk
18MB
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.000s · 19.7MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 3.4s · import 0.000s · 20MB
18MB installed
● package 18MB
Code
Verified usage

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

ResourceGroupsClient
from mypy_boto3_resource_groups import ResourceGroupsClient
from mypy_boto3_resource_groups import ResourceGroupsClient
ResourceGroupsServiceResource
from mypy_boto3_resource_groups import ResourceGroupsServiceResource
ResourceGroupsPaginator
from mypy_boto3_resource_groups import ResourceGroupsPaginator

This example demonstrates how to obtain a `boto3` client for AWS Resource Groups and apply explicit type annotations from `mypy-boto3-resource-groups` for improved static analysis and auto-completion. The actual `boto3` library is required at runtime.

import boto3 from mypy_boto3_resource_groups.client import ResourceGroupsClient from typing import TYPE_CHECKING # Ensure boto3 is installed (e.g., pip install boto3) # Standard boto3 client creation client = boto3.client("resource-groups") # Type hint the client for static analysis (e.g., MyPy, IDEs) # The 'if TYPE_CHECKING:' block ensures this import is only for type checking # and doesn't cause runtime issues if the stub package isn't installed. if TYPE_CHECKING: resource_groups_client: ResourceGroupsClient = client else: resource_groups_client = client # Now 'resource_groups_client' has full type annotations # For example, calling an operation will show expected arguments and return types. try: response = resource_groups_client.list_groups() print("Successfully listed Resource Groups.") # Example: print(response['GroupIdentifiers']) except Exception as e: print(f"Error listing Resource Groups: {e}")
Debug
Known issues
breakingPython 3.8 is no longer supported. `mypy-boto3-builder` version 8.12.0 and later, which generates this package, dropped support for Python 3.8. Users must use Python 3.9 or newer.
fix
Upgrade your Python environment to 3.9 or a later version.
affects: mypy-boto3-builder >=8.12.0 (translates to mypy-boto3-* packages generated by it)
breakingTypeDef naming conventions changed in `mypy-boto3-builder` 8.9.0. `TypeDef` for packed method arguments use shorter names if possible (e.g., `CreateDistributionRequestRequestTypeDef` -> `CreateDistributionRequestTypeDef`), and conflicting `Extra` postfixes were moved to the end (e.g., `CreateDistributionExtraRequestTypeDef` -> `CreateDistributionRequestExtraTypeDef`).
fix
Update any custom `TypedDict` definitions or manual type hints that rely on previous naming conventions.
affects: mypy-boto3-builder >=8.9.0 (translates to mypy-boto3-* packages generated by it)
gotchaThese packages provide *only* type annotations, not runtime functionality. You must have the `boto3` library installed alongside `mypy-boto3-resource-groups` for your code to run.
fix
Ensure `boto3` is installed via `pip install boto3`.
affects: All versions
gotchaWhile type discovery often works, explicit type annotations for `boto3.client()` and `boto3.resource()` calls are highly recommended, especially for optimal auto-completion and type checking in IDEs like VSCode and PyCharm.
fix
Add explicit type hints, e.g., `client: ResourceGroupsClient = boto3.client('resource-groups')`.
affects: All versions
breakingMigration to PEP 561 packages in `mypy-boto3-builder` 8.12.0. This is a significant internal packaging change for how type stubs are distributed and discovered by type checkers. While generally beneficial, it might affect custom build pipelines or older environments.
fix
Ensure your environment and type checker are up-to-date and compatible with PEP 561 stub packages.
affects: mypy-boto3-builder >=8.12.0
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredProvides the runtime functionality for AWS SDK calls. These are only type stubs.
Agent activity
24 hits · last 30 days
node
20
OpenAI (training)
2
Resources
mypy-boto3-resource-groups — pip install mypy-boto3-resource-groups · libregistry