Release v1.40.0 (Whatโs new?).
๐ boto3-dataclass: Transform Your boto3 Experienceยถ
๐READ FULL DOCUMENTATION HERE
Welcome to boto3-dataclass! This library transforms boring boto3 dictionaries into beautiful, type-safe dataclasses with full autocomplete support. Say goodbye to response['Key']['SubKey'] and hello to response.Key.SubKey with full IDE support!
import boto3
from boto3_dataclass_iam import iam_caster
# Use boto3 normally
iam_client = boto3.client("iam")
response = iam_client.get_role(RoleName="MyRole")
# Convert to structured dataclass
response = iam_caster.get_role(response)
# Now you get full IDE autocompletion and type safety!
# IDE shows available attributes
๐ฆ Installationยถ
Install the service you need (e.g., for IAM, S3):
$ pip install boto3-dataclass[iam,s3]
Or match with your boto3 version:
$ pip install "boto3-dataclass[iam,s3]>=1.40.0,<1.41.0"
Or install everything at once:
$ pip install boto3-dataclass[all] # Installs all AWS services
To upgrade to latest version:
$ pip install --upgrade boto3-dataclass