Registry / type-stubs / mypy-boto3-identitystore

mypy-boto3-identitystore

JSON →
library1.43.0pypypi✓ verified 23d ago

mypy-boto3-identitystore provides type annotations for the boto3 IdentityStore service, currently at version 1.42.20. It is part of the larger `boto3-stubs` ecosystem, generated with `mypy-boto3-builder`. This active project releases frequently, often aligning with `boto3` and `botocore` updates, offering enhanced type checking capabilities for tools like MyPy and Pyright, and improved auto-completion in IDEs such as VSCode and PyCharm.

pip install mypy-boto3-identitystore
INSTALL
IMPORT
SIG · MYPY-BOTO3-IDENTIT
M
mypy-boto3-identitystore
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.

IdentityStoreClient
from mypy_boto3_identitystore import IdentityStoreClient
from mypy_boto3_identitystore import IdentityStoreClient

This quickstart demonstrates how to initialize a `boto3` IdentityStore client with explicit type annotations provided by `mypy-boto3-identitystore`. This enables your IDE and type checker (like MyPy) to provide accurate auto-completion and static analysis for all service-specific methods and parameters. Remember to have `boto3` installed and AWS credentials configured.

import boto3 from mypy_boto3_identitystore.client import IdentityStoreClient from os import environ # Configure AWS credentials and region (e.g., via environment variables or ~/.aws/credentials) # For a runnable example, we'll use os.environ.get for safe execution. # Explicitly type the client for mypy/IDE assistance def get_identitystore_client() -> IdentityStoreClient: client: IdentityStoreClient = boto3.client( "identitystore", region_name=environ.get('AWS_REGION', 'us-east-1') ) return client # Example usage if __name__ == "__main__": try: identitystore_client = get_identitystore_client() # Replace with a real IdentityStore ID from your AWS account identity_store_id = environ.get('IDENTITY_STORE_ID', 'd-xxxxxxxxxx') # Example: List users (requires appropriate permissions) # Note: This operation might require an actual IdentityStore ID to succeed. response = identitystore_client.list_users(IdentityStoreId=identity_store_id) print("Successfully listed IdentityStore users (first page).") for user in response.get('Users', []): print(f" User ID: {user.get('UserId')}, UserName: {user.get('UserName')}") # Demonstrating a method that doesn't exist on BaseClient but does on IdentityStoreClient # This would be flagged by a type checker without the stub. # identitystore_client.non_existent_method() # Mypy error: "IdentityStoreClient" has no attribute "non_existent_method" except Exception as e: print(f"An error occurred: {e}") print("Please ensure 'boto3' is installed, AWS credentials are configured, and IDENTITY_STORE_ID is set if needed.")
Debug
Known issues
breakingRemoved support for Python 3.8. All `mypy-boto3` packages generated by `mypy-boto3-builder` version 8.12.0 and later (which includes this package version) no longer support Python 3.8.
fix
Upgrade your Python environment to 3.9 or newer. The `requires_python` metadata is `^3.9`.
affects: mypy-boto3-builder >=8.12.0, mypy-boto3-identitystore >=1.42.20
breakingBreaking changes to generated TypeDef names occurred in `mypy-boto3-builder` 8.9.0. If you explicitly import and use generated TypeDefs, their names might have changed (e.g., shorter names for packed method arguments, or `Extra` postfix moved).
fix
Review your code for explicit `from mypy_boto3_identitystore.type_defs import ...` imports and update TypeDef names as per the `boto3-stubs` documentation for your specific service and version.
affects: mypy-boto3-builder >=8.9.0, mypy-boto3-identitystore >=1.34.0 (approximate)
gotchaVersion compatibility with `boto3`. `mypy-boto3-identitystore` versions are typically tied to specific `boto3` versions. Mismatching the stub package version with your installed `boto3` version can lead to incorrect type hints or missing attributes during type checking, even if the runtime code works.
fix
Ensure that your `mypy-boto3-identitystore` version closely matches your installed `boto3` version. When installing `boto3-stubs` with extras, `pip install 'boto3-stubs[identitystore]'` typically handles this by installing compatible versions. If using standalone packages, manually ensure versions align.
affects: All versions
gotchaThis is a stub-only package (PEP 561). It provides type hints for `boto3` but contains no runtime code. Installing it without `boto3` (the actual AWS SDK) or a type checker will not provide any functional benefits or runtime changes.
fix
Always install `boto3` (e.g., `pip install boto3`) alongside this stub package. To verify type checking, integrate a type checker like MyPy (`pip install mypy`) into your development workflow.
affects: All versions
gotchaExplicit type annotations might be required for full IDE support, especially with `boto3-stubs-lite` or older PyCharm versions. While modern type checkers and IDEs often auto-discover types, some setups may require explicit `client: IdentityStoreClient = boto3.client(...)` annotations.
fix
If you encounter incomplete type hinting, explicitly add type annotations to your `boto3.client()` calls, importing the client type (e.g., `from mypy_boto3_identitystore.client import IdentityStoreClient`).
affects: All versions, especially with 'lite' versions or specific IDEs
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredProvides the runtime AWS SDK that these stubs annotate. The stub version correlates directly with the boto3 version it types.
mypyoptionalA static type checker that utilizes these stubs for analysis. Other type checkers like Pyright also benefit.
pythonrequiredRequires Python 3.9 or higher. Support for Python 3.8 was removed in mypy-boto3-builder 8.12.0.
Agent activity
21 hits · last 30 days
node
18
OpenAI (training)
1
Resources