Registry / type-stubs / mypy-boto3-fsx

mypy-boto3-fsx

JSON →
library1.43.0pypypi✓ verified 23d ago

mypy-boto3-fsx provides PEP 561 compliant type annotations for the AWS FSx service client in boto3. It is part of the larger mypy-boto3-builder project, which frequently releases updates to keep pace with new boto3 versions and AWS service changes. The current version of mypy-boto3-fsx is 1.42.3, corresponding to a specific boto3 version.

pip install mypy-boto3-fsx boto3 mypy
INSTALL
IMPORT
SIG · MYPY-BOTO3-FSX
M
mypy-boto3-fsx
type-stubspythonv1.43.0
Install
6.0s avg
Import
648ms
Disk
114MB
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.680s · 116.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 6.0s · import 0.616s · 114MB
114MB installed
● package 114MB
Code
Verified usage

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

FSxClient
from mypy_boto3_fsx.client import FSxClient
Client
from mypy_boto3_fsx.client import FSxClient
from mypy_boto3_fsx import FSxClient
Client types are nested under the '.client' submodule.

This quickstart demonstrates how to initialize a boto3 FSx client and apply type hints using `mypy-boto3-fsx`. The `if TYPE_CHECKING:` block ensures that the type imports are only processed by static analysis tools like Mypy, preventing runtime overhead or import errors if the stub package isn't installed in the runtime environment. Replace 'DUMMY_KEY' and 'DUMMY_SECRET' with actual AWS credentials for runtime execution.

from typing import TYPE_CHECKING import boto3 import os if TYPE_CHECKING: from mypy_boto3_fsx.client import FSxClient session = boto3.Session( 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'), region_name=os.environ.get('AWS_REGION', 'us-east-1') ) # Instantiate the FSx client with type hinting fsx_client: FSxClient = session.client("fsx") # Example usage (runtime check) try: response = fsx_client.describe_file_systems() print("Successfully described FSx file systems (runtime check passed).") # For type checking purposes, you can inspect 'response' type here # For example: print(response.get('FileSystems')) except Exception as e: print(f"Runtime error during FSx client call: {e}") # Type checking example (this block is only for mypy) if TYPE_CHECKING: # mypy will verify the type of 'fsx_client' # For example, it will suggest methods like 'create_file_system' _ = fsx_client.create_file_system print("FSxClient type definitions available for mypy.")
Debug
Known issues
breakingPython 3.8 support has been removed in mypy-boto3-builder version 8.12.0. All generated type stub packages, including mypy-boto3-fsx, now require Python 3.9 or higher.
fix
Ensure your project uses Python 3.9 or newer. Upgrade your Python environment if necessary.
affects: mypy-boto3-builder >=8.12.0 (and dependent mypy-boto3-* packages)
breakingAs of mypy-boto3-builder 8.12.0, all generated packages are now PEP 561 compliant. While this improves standard stub discovery, users relying on older `mypy` configurations or custom stub paths might need to verify their setup.
fix
Ensure your `mypy` configuration (e.g., `mypy.ini`, `pyproject.toml`) is up-to-date and correctly discovers stubs. Most users should not need to explicitly configure stub paths for PEP 561 packages.
affects: mypy-boto3-builder >=8.12.0 (and dependent mypy-boto3-* packages)
gotchaThe version of `mypy-boto3-fsx` (e.g., `1.42.3`) should ideally match the version of `boto3` you have installed. Installing a mismatched version can lead to incorrect or missing type definitions, as the stubs are generated specifically for a particular boto3 API version.
fix
Always install `mypy-boto3-fsx` with a version that corresponds to your `boto3` installation (e.g., if you use `boto3==1.28.0`, try `mypy-boto3-fsx==1.28.0`). Check PyPI for available versions.
affects: All versions
gotcha`mypy-boto3-fsx` provides only type stubs, not a functional client. You must have `boto3` installed for the code to run at runtime. The stubs are only for static type checking.
fix
Always install both `boto3` and `mypy-boto3-fsx` in your development environment. Use `if TYPE_CHECKING:` guards to prevent unnecessary stub package imports at runtime.
affects: All versions
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredRequired at runtime; mypy-boto3-fsx only provides type stubs.
mypyoptionalRequired for static type checking; mypy-boto3-fsx provides stubs for mypy.
Agent activity
13 hits · last 30 days
node
10
OpenAI (training)
1
Resources