Release v1.40.0 (Whatโ€™s new?).

Documentation Status https://codecov.io/gh/MacHu-GWU/boto3_dataclass-project/branch/main/graph/badge.svg https://img.shields.io/pypi/v/boto3-dataclass.svg https://img.shields.io/pypi/l/boto3-dataclass.svg https://img.shields.io/pypi/pyversions/boto3-dataclass.svg https://img.shields.io/badge/โœ๏ธ_Release_History!--None.svg?style=social&logo=github https://img.shields.io/badge/โญ_Star_me_on_GitHub!--None.svg?style=social&logo=github
https://img.shields.io/badge/Link-API-blue.svg https://img.shields.io/badge/Link-Install-blue.svg https://img.shields.io/badge/Link-GitHub-blue.svg https://img.shields.io/badge/Link-Submit_Issue-blue.svg https://img.shields.io/badge/Link-Request_Feature-blue.svg https://img.shields.io/badge/Link-Download-blue.svg

๐Ÿš€ boto3-dataclass: Transform Your boto3 Experienceยถ

https://boto3-dataclass.readthedocs.io/en/latest/_static/boto3_dataclass-logo.png

๐Ÿ“š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
https://github.com/user-attachments/assets/7a76fde3-6786-48e6-a809-0a6bc3913d9b https://github.com/user-attachments/assets/718bfed0-5aee-457f-b84a-f1221948dca1

๐Ÿ“ฆ 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

Table of Contentยถ

About the Authorยถ

(\ (\
( -.-)o
o_(")(")

Sanhe Hu is a seasoned software engineer with a deep passion for Python development since 2010. As an author and maintainer of 150+ open-source Python projects, with over 15 million monthly downloads, I bring a wealth of experience to the table. As a Senior Solution Architect and Subject Matter Expert in AI, Data, Amazon Web Services, Cloud Engineering, DevOps, I thrive on helping clients with platform design, enterprise architecture, and strategic roadmaps.

Talk is cheap, show me the code:

API Documentยถ