Registry / type-stubs / mypy-boto3-transfer

mypy-boto3-transfer

JSON →
library1.43.0pypypi✓ verified 23d ago

mypy-boto3-transfer provides type annotations for the `boto3` Transfer service, generated with `mypy-boto3-builder`. It ensures `mypy` can correctly validate usage of the `boto3` Transfer client and associated data types. The library is actively maintained, with releases typically synchronized with `boto3` updates and `mypy-boto3-builder` enhancements, currently at version 1.42.84.

pip install mypy-boto3-transfer
INSTALL
IMPORT
SIG · MYPY-BOTO3-TRANSFE
M
mypy-boto3-transfer
type-stubspythonv1.43.0
Install
2.7s avg
Import
Disk
61MB
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 · 18.6MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 2.7s · import 0.000s · 19MB
61MB installed
● package 61MB
Code
Verified usage

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

TransferClient
from mypy_boto3_transfer import TransferClient
from mypy_boto3_transfer import TransferClient

Demonstrates how to import and use the `TransferClient` type to annotate a `boto3` client, enabling static type checking with `mypy` for AWS Transfer service operations. It also shows a common response type definition.

import boto3 from mypy_boto3_transfer.client import TransferClient from mypy_boto3_transfer.type_defs import ListServersResponseTypeDef from typing import TYPE_CHECKING if TYPE_CHECKING: # These imports are for type checking only and will not be executed at runtime # They provide type hints for boto3 service clients and responses. client: TransferClient = boto3.client("transfer") response: ListServersResponseTypeDef = client.list_servers() print(f"Found {len(response['Servers'])} Transfer servers.") # Example of actual runtime usage (uncomment to run) # client = boto3.client("transfer") # response = client.list_servers() # print(f"Runtime: Found {len(response['Servers'])} Transfer servers.")
Debug
Known issues
breakingSupport for Python 3.8 was removed in `mypy-boto3-builder` version 8.12.0. Users on Python 3.8 will need to upgrade to Python 3.9 or newer to use the latest `mypy-boto3-transfer` stubs.
fix
Upgrade your Python environment to 3.9 or a later version.
affects: mypy-boto3-builder >= 8.12.0, mypy-boto3-transfer related versions
gotcha`mypy-boto3-transfer` provides type stubs only. You must also install the actual `boto3` library (`pip install boto3`) for your code to run at runtime. Without `boto3`, your application will encounter runtime import errors.
fix
Ensure `boto3` is installed alongside `mypy-boto3-transfer` in your project's dependencies.
affects: All versions
breaking`mypy-boto3-builder` version 8.9.0 introduced breaking changes to `TypeDef` naming conventions (e.g., `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`). If you directly imported specific `TypeDef` classes by their full names, these imports may break.
fix
Review your explicit `TypeDef` imports and update them to the new, often shorter, naming convention. Refer to the specific service's `type_defs.pyi` for correct names.
affects: mypy-boto3-builder >= 8.9.0, mypy-boto3-transfer related versions
breaking`mypy-boto3-builder` version 8.12.0 migrated all packages, including `mypy-boto3-transfer`, to be PEP 561 compliant. While this improves standard type-checking workflows, custom build systems or specific tooling that relied on previous package structures might need adjustments.
fix
Ensure your environment correctly handles PEP 561-compliant stub packages. Most modern `mypy` setups should work seamlessly, but verify if you have custom type-stub discovery configurations.
affects: mypy-boto3-builder >= 8.12.0, mypy-boto3-transfer related versions
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredRequired at runtime for actual AWS API interaction; `mypy-boto3-transfer` only provides type stubs.
mypyoptionalThe type checker that consumes these stubs for static analysis.
Agent activity
12 hits · last 30 days
node
10
OpenAI (training)
1
Resources