Registry /
type-stubs / mypy-boto3-managedblockchain
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
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.598s · 51.9MB
glibcpy 3.10–3.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
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.