63e1977e — Shiftless 10 months ago
Fix unpacking of `Data` and `DataFixed`
3417d9f0 — Shiftless 10 months ago
Fixed the and validators, they were not correct
Fix return type matching type hinting

The abstract definition for Field.validate wasn't returning a tuple,
just a boolean. Update to return tuple with None as the default message
Use proper builds.sr.ht badge
Adds more docstrings
Add pip install to README
Updates gitignore
Adds some docs
Cleans up __init__.py
Updates README
Rename fields, add tests, fix bugs [see ext.]

Renames kwargs for Map to be keytype and valuetype instead of
overloading 'type', allowing it to be used to denote a wrapped value
like every other type

Adds some roundtrip tests for some of the more complex fields

Fixes bugs
- Optional fields were always encoded
- Optional fields did not encode the >0 value to indicate the following
  value is present
- Fixes to_dict for Struct types

Also renames some fields in Struct's pack to not overload 'type'
Remove dead code. Fix returning stream, not bytes
Fix native types not packing in arrays
Adds more tests, fixes some bugs
Implements all container and primitive types