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)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| typed_boto3_sdk-0.1.2.tar.gz | 123.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|
Security for typed-boto3-sdk 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.