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.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.5MB
glibcpy 3.10–3.910 runs
installs and imports cleanly · install 2.7s · import 0.000s · 19MB
71MB installed
● package 71MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
FMSClient
✓ from mypy_boto3_fms import FMSClient
✗ from mypy_boto3_fms import FMSClient
This quickstart demonstrates how to obtain a type-hinted FMS client and perform basic operations using `mypy-boto3-fms` alongside `boto3`. It highlights how `FMSClient` annotations provide type safety for client calls and responses, including paginators.
import boto3
from mypy_boto3_fms import FMSClient
import os
# Ensure boto3 is installed: pip install boto3
session = boto3.Session(
region_name=os.environ.get('AWS_REGION', 'us-east-1'),
aws_access_key_id=os.environ.get('AWS_ACCESS_KEY_ID', 'DUMMY_KEY'),
aws_secret_access_key=os.environ.get('AWS_SECRET_ACCESS_KEY', 'DUMMY_SECRET')
)
# The client object 'fms_client' will now have full type hints
fms_client: FMSClient = session.client('fms')
try:
# Example operation: List Admin Accounts
response = fms_client.list_admin_accounts()
print(f"FMS Admin Accounts: {response.get('AdminAccounts', [])}")
# Example with paginator
paginator = fms_client.get_paginator('list_policies')
for page in paginator.paginate():
for policy in page.get('PolicyList', []):
print(f"Policy: {policy.get('PolicyName')}")
except Exception as e:
print(f"Error performing FMS operation: {e}")
Debug
Known issues
breakingPython 3.8 support was removed by `mypy-boto3-builder` starting from version 8.12.0. Projects using `mypy-boto3-fms` must now run on Python 3.9 or newer.fixUpgrade your Python environment to 3.9 or later.
affects: >=8.12.0 of mypy-boto3-builder (and generated stubs)
gotchaThis package provides type stubs for boto3, not a replacement. You must install `boto3` separately for runtime functionality. `mypy-boto3-fms` alone does not provide the AWS SDK.fixEnsure `boto3` is installed in your environment (`pip install boto3`).
affects: All versions
breaking`mypy-boto3-builder` version 8.9.0 introduced breaking changes in TypeDef naming conventions, affecting all generated services. TypeDefs for method arguments now use shorter names (e.g., `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`).fixUpdate your code to reflect the new, shorter TypeDef names. Refer to the specific service's `type_defs.pyi` for precise names.
affects: >=8.9.0 of mypy-boto3-builder (and generated stubs)
breaking`mypy-boto3-builder` 8.12.0 migrated all generated packages to PEP 561 compliant distribution. While generally an improvement for type checker discovery, users with highly customized `MYPYPATH` or build systems might need to adjust their configurations.fixMost users will not need a fix. If issues arise, ensure your type checker (e.g., MyPy) is up-to-date and correctly configured to discover PEP 561 stubs. Avoid manual `MYPYPATH` manipulation if possible.
affects: >=8.12.0 of mypy-boto3-builder (and generated stubs)
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredRuntime library for which these stubs provide type hints. This package provides *only* type stubs.