Skip to main content

Marshmallow support for CBOR encoding

Project description

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 ✅

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

marshmallow_cbor-0.1.1.tar.gz (11.3 kB view hashes)

Uploaded Source

Built Distribution

marshmallow_cbor-0.1.1-py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page