Registry / type-stubs / mypy-boto3-managedblockchain

mypy-boto3-managedblockchain

JSON →
library1.43.0pypypi✓ verified 22d ago

mypy-boto3-managedblockchain provides type annotations for the boto3 ManagedBlockchain service, enabling static type checking with tools like MyPy. It is currently at version 1.42.3 and is part of the `mypy-boto3` ecosystem, which releases frequently, often daily, to keep up with `boto3` and `botocore` updates and new AWS service features.

pip install boto3 mypy-boto3-managedblockchain
INSTALL
IMPORT
SIG · MYPY-BOTO3-MANAGED
M
mypy-boto3-managedblockchain
type-stubspythonv1.43.0
Install
3.9s avg
Import
579ms
Disk
50MB
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.95 runs
installs and imports cleanly · install 0.0s · import 0.598s · 51.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.9s · import 0.560s · 52MB
50MB installed
● package 50MB
Code
Verified usage

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

ManagedBlockchainClient
from mypy_boto3_managedblockchain.client import ManagedBlockchainClient
from boto3.client import ManagedBlockchainClient
The `ManagedBlockchainClient` type is provided by the stub package for explicit type hinting, not directly from `boto3.client`.
list_networks
client: ManagedBlockchainClient = boto3.client("managedblockchain"); client.list_networks()
The primary way to use these stubs is by type-hinting the client returned by `boto3.client('service_name')`.

This quickstart demonstrates how to use `mypy-boto3-managedblockchain` to add type hints to your `boto3` client calls. It shows how to import the specific client type and use it with `boto3.client()`, enabling static type checking for service-specific methods and response structures. Run `mypy your_script.py` to verify types.

import boto3 from mypy_boto3_managedblockchain.client import ManagedBlockchainClient from mypy_boto3_managedblockchain.type_defs import ListNetworksOutputTypeDef # Ensure you have AWS credentials configured, e.g., via environment variables or ~/.aws/credentials # This example does not perform actual network requests, but uses type hints. def get_managedblockchain_networks() -> ListNetworksOutputTypeDef: # Type hint the boto3 client with the stub-provided client type client: ManagedBlockchainClient = boto3.client("managedblockchain") # Use a common ManagedBlockchain operation response = client.list_networks(MaxResults=10) print(f"Found {len(response['Networks'])} ManagedBlockchain networks.") return response if __name__ == "__main__": # Example usage (this will require actual AWS credentials if uncommented and run) # get_managedblockchain_networks() # You can run `mypy your_script.py` to check types pass # No runtime execution for quickstart to avoid credential requirement
Debug
Known issues
breakingPython 3.8 support was removed from version 8.12.0 onwards. All `mypy-boto3` packages now require Python 3.9 or higher.
fix
Upgrade your Python environment to 3.9 or newer.
affects: >=8.12.0
breakingTypeDef naming conventions changed in version 8.9.0, often resulting in shorter names for method arguments (e.g., `CreateDistributionRequestRequestTypeDef` -> `CreateDistributionRequestTypeDef`). Custom type hints or direct usage of generated TypeDefs might break.
fix
Update your code to use the new, shorter TypedDict names where applicable. Consult the `mypy-boto3` documentation or regenerate your code if you are using custom builder scripts.
affects: >=8.9.0
gotchaThe `mypy-boto3-managedblockchain` package provides only type stubs. You must also install `boto3` (the actual AWS SDK runtime) for your application to function correctly at runtime.
fix
Always include `boto3` in your project's dependencies: `pip install boto3 mypy-boto3-managedblockchain`.
affects: all
gotchaService names for `boto3.client()` calls can change over time (e.g., `sms-voice` became `pinpoint-sms-voice`). While `managedblockchain` is stable, be aware of this for other services, as `mypy-boto3` tracks these upstream changes.
fix
Always refer to the official boto3 documentation for the latest service client names. If a service name changes, update your `boto3.client()` calls and corresponding `mypy-boto3` stub package installation.
affects: all
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredRuntime dependency for the AWS SDK for Python (Boto3).
mypyoptionalRequired to perform static type checking using these stubs.
Agent activity
20 hits · last 30 days
node
16
OpenAI (training)
2
Resources
mypy-boto3-managedblockchain — pip install mypy-boto3-managedblockchain · libregistry