Skip to content

Sekenre/marshmallow_cbor

Repository files navigation

marshmallow for CBOR (RFC 8949)

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.

Install

pip install marshmallow-cbor

Examples

Please see the examples/ folder in this repository.

TODO

  • 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 ✅