Registry / type-stubs / mypy-boto3-networkmonitor

mypy-boto3-networkmonitor

JSON →
library1.43.0pypypi✓ verified 23d ago

mypy-boto3-networkmonitor provides comprehensive type annotations for the `boto3` CloudWatch Network Monitor service (version 1.42.3). Generated by `mypy-boto3-builder` 8.12.0, it enhances developer experience by enabling static type checking with tools like mypy and pyright, and improving code completion in IDEs like VSCode and PyCharm. This library helps to proactively identify and fix potential type-related bugs in `boto3` code at development time.

pip install mypy-boto3-networkmonitor
INSTALL
IMPORT
SIG · MYPY-BOTO3-NETWORK
M
mypy-boto3-networkmonitor
type-stubspythonv1.43.0
Install
3.3s 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.3s · import 0.000s · 20MB
18MB installed
● package 18MB
Code
Verified usage

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

NetworkMonitorClient
from mypy_boto3_networkmonitor import NetworkMonitorClient
from mypy_boto3_networkmonitor import NetworkMonitorClient

This example demonstrates how to obtain a type-annotated `NetworkMonitorClient` from a `boto3` session and use it to call an API method. Type annotations ensure that `client` methods and their arguments are correctly validated by a static type checker.

import os import boto3 from boto3.session import Session from mypy_boto3_networkmonitor.client import NetworkMonitorClient def get_network_monitor_client() -> NetworkMonitorClient: # Assuming AWS credentials are set via environment variables or AWS CLI config session = Session(region_name=os.environ.get('AWS_DEFAULT_REGION', 'us-east-1')) client: NetworkMonitorClient = session.client("networkmonitor") return client client = get_network_monitor_client() response = client.list_monitors() print(response.get('Monitors'))
Debug
Known issues
breakingAs of `mypy-boto3-builder` version 8.12.0 (which generated `mypy-boto3-networkmonitor 1.42.3`), Python 3.8 support has been officially removed for all generated packages.
fix
Upgrade your Python environment to 3.9 or newer. If you must use Python 3.8, you will need to pin `mypy-boto3-networkmonitor` to an older compatible version (e.g., <1.42.3) and `mypy-boto3-builder` to <8.12.0.
affects: mypy-boto3-builder >= 8.12.0, mypy-boto3-networkmonitor >= 1.42.3
breakingType definition (TypeDef) naming conventions changed in `mypy-boto3-builder` 8.9.0. This could affect code that explicitly imports or refers to TypeDefs by their full, verbose names (e.g., `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`).
fix
Update your code to use the shorter, revised TypeDef names. Refer to the specific service documentation or generated stub files for the correct names if encountering type errors.
affects: mypy-boto3-builder >= 8.9.0, mypy-boto3-networkmonitor >= 1.35.0 (approximate)
gotchaThe legacy `mypy-boto3` package was separated from the main `boto3-stubs` product in `mypy-boto3-builder` 8.9.0. Users upgrading from older `mypy-boto3` installations might find that new services or updates are not available via the old package.
fix
For the latest and most comprehensive type annotations, prefer installing `boto3-stubs` with specific service extras (e.g., `boto3-stubs[networkmonitor]`) or the standalone `mypy-boto3-networkmonitor` package directly.
affects: mypy-boto3-builder >= 8.9.0
gotchaPyCharm users might experience slow performance or high CPU usage due to how PyCharm handles `Literal` overloads in `mypy-boto3` generated stubs (PyCharm issue PY-40997).
fix
It is recommended to use `boto3-stubs-lite` (e.g., `pip install 'boto3-stubs-lite[networkmonitor]'`) as a more RAM-friendly alternative, though it requires more explicit type annotations. Alternatively, consider disabling PyCharm's built-in type checker and relying solely on an external checker like `mypy` or `pyright`.
affects: All versions of mypy-boto3-*, specific to PyCharm users.
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredThis package provides type annotations for the `boto3` library; `boto3` itself is a mandatory runtime dependency.
mypyoptionalRequired for static type checking to utilize the provided type annotations.
Agent activity
19 hits · last 30 days
node
16
Amazon
1
OpenAI (training)
1
Resources