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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file marshmallow_cbor-0.1.1.tar.gz.

File metadata

  • Download URL: marshmallow_cbor-0.1.1.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for marshmallow_cbor-0.1.1.tar.gz
Algorithm Hash digest
SHA256 59ff660c18bfb88f70a254cf774c39bfb1ee3b83ae4d53b4f54d1bacb141dc35
MD5 d69651657bea4d367fbaecdd3edd310a
BLAKE2b-256 c332940e39b9c5fc7bd582b6ea60092dd1afef6afc9766e3d641b2754504a250

See more details on using hashes here.

File details

Details for the file marshmallow_cbor-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: marshmallow_cbor-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for marshmallow_cbor-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d4a54a46e7237fa2f188d4f6b937620b9138a91b45d874edcdf1a23762e0c475
MD5 87ce46c07635f3353e3c1bc9fb9ec8a5
BLAKE2b-256 a79b7e9be6f89747d40ff47788b0e0223353ded979fadcbf623673201f3c2a26

See more details on using hashes here.

Supported by

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