mypy-boto3
 -> EC2Client: ...
@overload
def get_client(service_name: S3ServiceName) -> S3Client: ...
@overload
def get_client(service_name: ServiceName) -> BaseClient: ...
def get_client(service_name: ServiceName) -> BaseClient:
return boto3.client(service_name)
# type: S3Client, fully type annotated
# All methods and attributes are auto-completed and type checked
s3_client = get_client("s3")
# type: EC2Client, fully type annotated
# All methods and attributes are auto-completed and type checked
ec2_client = get_client("ec2")
# type: BaseClient, only basic type annotations
# Dynamodb-specific methods and attributes are not auto-completed and not type checked
dynamodb_client = get_client("dynamodb")
Latest changes
Full changelog can be found in Releases.
Versioning
mypy-boto3 version is the same as related boto3 version and follows
Python Packaging version specifiers.
Support and contributing
Please reports any bugs or request new features in mypy_boto3_builder repository.
Metadata
Release files for mypy-boto3 1.43.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mypy_boto3-1.43.0.tar.gz | 22.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mypy_boto3-1.43.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 45.4 kB
Release files / mypy_boto3-1.43.0.tar.gz
| Download URL | mypy_boto3-1.43.0.tar.gz |
|---|---|
| Size | 22.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4dc6fe2bd22ca795d1fe31aa7137b6b046ccc34296fe72dc2869cb527c692007
|
|
BLAKE2b-256 checksum How to use checksums |
b6e68e33c49eb4c3f36f5a3788fdd07dd17e36cdca6700f3fe414786af79ccd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Release files / mypy_boto3-1.43.0-py3-none-any.whl
| Download URL | mypy_boto3-1.43.0-py3-none-any.whl |
|---|---|
| Size | 22.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ffded5d036d0bfed7bc57c556faf3b94553cea46dd7020b441afb39b9e7e831c
|
|
BLAKE2b-256 checksum How to use checksums |
533af9a9551675ae58fd3221efeb9c5e45590ad3d37b9df5a42e19d92bb80a58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|