Skip to content
This repository has been archived by the owner on Feb 13, 2021. It is now read-only.

Implement PydanticSQSQueue #4

Open
anatoly-scherbakov opened this issue Jun 30, 2020 · 0 comments
Open

Implement PydanticSQSQueue #4

anatoly-scherbakov opened this issue Jun 30, 2020 · 0 comments

Comments

@anatoly-scherbakov
Copy link
Contributor

Serialization and deserialization are troublemakers for me right now since I do not yet see a way to implement them in Rust-ish serde-like way. Something like this maybe:

m = SomePydanticModel(...)
serialized_string = m >> Base64Json
# or
Base64Json(serialized_string) >> SomePydanticModel

However, Base64Json is probably just a NewType, which means type erasure, but... whatever.

My point is that, for now, simple ad-hoc mixins like these would be very useful:

  • PydanticSQSInputQueue
  • DataclassSQSInputQueue
    etc.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant