This module allows serializing and deserializing marshmallow schemas as CBOR data. CBOR is a compact binary data format similar to JSON in it's data model, but supporting many more datatypes and an extensible tag system. marshmallow out of the box only supports serialization to JSON.
pip install marshmallow-cbor
Please see the examples/
folder in this repository.
- Plain string keys & values, regular marshmallow validation
- CBOR Tagged item schemas
- CWT (RFC 8392) token validation
- DCC (Digital Green/Digital COVID) certificate
- Add marshmallow DateTime fields back in as string only fields ✅
- Tag single items in addition to schemas and nested schemas ✅
- Field support for all cbor2 supported datatypes ✅(partial)
- Add it to PyPI ✅