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
poetry install
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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| typed_boto3_sdk-0.1.1.tar.gz | 123.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| typed_boto3_sdk-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 262.6 kB
Release files / typed_boto3_sdk-0.1.1.tar.gz
| Download URL | typed_boto3_sdk-0.1.1.tar.gz |
|---|---|
| Size | 123.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b84099f56511086d936aa2684f7ab71120d22bfaef40875beacac4cc340751f5
|
|
BLAKE2b-256 checksum How to use checksums |
d18daeb0ca6bcabbdc883c715238e2aea0512186371e6fee9c271d00c78fcc87
|
| 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.1-py3-none-any.whl
| Download URL | typed_boto3_sdk-0.1.1-py3-none-any.whl |
|---|---|
| Size | 139.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
010416a5e441cd509a9340bf55116e80ef3e28201e19ff960c8f1a3038c07e10
|
|
BLAKE2b-256 checksum How to use checksums |
8994451ef9d0d9a7494b2cc811e3a6c91a49f63a0a2c2b4b54ebb6ecca25d84e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|