nayaverdier / dyntastic

A DynamoDB library on top of Pydantic and boto3.
MIT License
52 stars 12 forks source link

Async support? #23

Open jonathanunderwood opened 1 month ago

jonathanunderwood commented 1 month ago

While considering leveraging dyntastic for a Litestar based API, I was wondering whether you'd considered enabling async capabilities? I see dyntastic is built on top of boto3, and so perhaps the obvious way to support async would be via aioboto3. Do you have any plans or thoughts in this space?

nayaverdier commented 1 month ago

@jonathanunderwood Not against it in any way. It likely would be a fairly high effort endeavor though, given async functions and sync functions don't mix well with each other.

One approach would be to create a new AsyncDyntastic class to use as a drop-in replacement of Dyntastic, with all of the methods converted to async methods.