We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
we can add a io.BytesIO loader like any existing bytes-like loader
io.BytesIO
from adaptix import Retort, loader, P @dataclass class Book: image: BytesIO data = { "image": b64encode(bytes(b"hello")) } retort = Retort( recipe=[ loader(P[Book].image, lambda x: b64decode(x)) ] ) book = retort.load(data, Book) print(book)
The text was updated successfully, but these errors were encountered:
i'm work on it
Sorry, something went wrong.
we also can add provider for IO[bytes]
Merge pull request #271 from lubaskinc0de/bytesio
1cd38c7
BytesIOBase64Provider and IOBytesBase64Provider (#270)
No branches or pull requests
we can add a
io.BytesIO
loader like any existing bytes-like loaderThe text was updated successfully, but these errors were encountered: