hydration
hydration copied to clipboard
Define python objects that can be safely converted to (and from) bytes.
Fixes #35 - Combined `from_stream` and `from_bytes` by creating a `as_stream` utility. - Fixed a bug in `from_stream` where bytes hooks can change the field object (with code which already...
**Is your feature request related to a problem? Please describe.** `from_bytes` and `from_stream` have nearly identical code and functionality but are still duplicated **Describe the solution you'd like** Create a...
**Is your feature request related to a problem? Please describe.** Calling `__init__` creates API constraints on the user. **Describe the solution you'd like** Call `cls.__new__` directly in the `from_bytes` implementation,...
* Added message deserialization using `from_bytes` and `from_stream` * Added documentation about the message deserialization * Added support for `from_stream` in all of the fields and now it's a requirement...
**Description** `hydration` doesn't fail immediately when using initialized fields as vector lengths, gives an unclear `RuntimeError` **To Reproduce** Define an invalid vector: ```python class TestStruct(Struct): a = UInt16 v =...
There is a feature to change the validator (with a property setter). After changing the validator to a new one, there is a need to revalidate the value that assigned...