View on GitHub

mypy_boto3

Type annotations for boto3 compatible with mypy, VSCode and PyCharm

Download this project as a .zip file Download this project as a tar.gz file

Boto3 Utils

Auto-generated documentation for builder.mypy_boto3_builder.parsers.boto3_utils module.

Getters for boto3 client and resource from session.

get_boto3_client

[find in source code]

def get_boto3_client(
    session: Session,
    service_name: ServiceName,
) -> BaseClient:

Get boto3 client from session.

Arguments

Returns

Boto3 client.

get_boto3_resource

[find in source code]

def get_boto3_resource(
    session: Session,
    service_name: ServiceName,
) -> Optional[Boto3ServiceResource]:

Get boto3 resource from session.

Arguments

Returns

Boto3 resource or None.