Skip to main content

typed_boto3

A strongly-typed, SDK-like wrapper around boto3. Inputs and outputs on every client method are concrete Pydantic models — no dicts, no magic strings.

Install

pip install typed-boto3-sdk

or with Poetry:

poetry add typed-boto3-sdk

typed_boto3 depends on aws-resource-validator for the generated Pydantic models that describe every AWS request/response shape.

Usage

import typed_boto3
from typed_boto3 import ServiceName, Region, ClientConfig
from aws_resource_validator.pydantic_models.lambda_.lambda__classes import (
    CreateFunctionRequestTypeDef,
    FunctionCodeTypeDef,
)

config = ClientConfig(region=Region.US_EAST_1)
client = typed_boto3.client(ServiceName.LAMBDA, config)  # typed as LambdaClient

resp = client.create_function(
    CreateFunctionRequestTypeDef(
        FunctionName="my-fn",
        Runtime="python3.11",
        Role="arn:aws:iam::123456789012:role/my-role",
        Handler="app.handler",
        Code=FunctionCodeTypeDef(ZipFile=b"..."),
    )
)
# resp is a FunctionConfigurationResponseTypeDef
print(resp.FunctionArn)

The direct form is also supported:

from typed_boto3 import LambdaClient
client = LambdaClient(ClientConfig(region=Region.US_EAST_1))

Regenerating

poetry run python -m typed_boto3.generator --regions
poetry run python -m typed_boto3.generator --service lambda s3

Metadata

Release files for typed-boto3-sdk 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for typed-boto3-sdk 0.1.2
File Size Uploaded
typed_boto3_sdk-0.1.2.tar.gz 123.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for typed-boto3-sdk 0.1.2
File Interpreter ABI Platform
typed_boto3_sdk-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 262.7 kB

Release files / typed_boto3_sdk-0.1.2.tar.gz

Download URL typed_boto3_sdk-0.1.2.tar.gz
Size 123.5 kB
Tags Source
SHA-256 checksum
How to use checksums
53800dd1bdabd78af1a46711cbe41268bda6c41afdc190f2397bddeddb9b6dc7
BLAKE2b-256 checksum
How to use checksums
7a285aee91902d65374f76063786ed819addf9aae200a91c508539d7bcdd8224
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release files / typed_boto3_sdk-0.1.2-py3-none-any.whl

Download URL typed_boto3_sdk-0.1.2-py3-none-any.whl
Size 139.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
24777b638ec3e064a6146279ecde3e94f338db8018265f4d0b4d36929bd1e282
BLAKE2b-256 checksum
How to use checksums
0abeca08573edee5340f9422393703a33cfc9cdcac7f739f78d6a49140889d31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page