Skip to main content

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 ✅

Release files for marshmallow-cbor 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for marshmallow-cbor 0.1.1
File Size Uploaded
marshmallow_cbor-0.1.1.tar.gz 11.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for marshmallow-cbor 0.1.1
File Interpreter ABI Platform
marshmallow_cbor-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 17.2 kB

Release files / marshmallow_cbor-0.1.1.tar.gz

Download URL marshmallow_cbor-0.1.1.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
59ff660c18bfb88f70a254cf774c39bfb1ee3b83ae4d53b4f54d1bacb141dc35
BLAKE2b-256 checksum
How to use checksums
c332940e39b9c5fc7bd582b6ea60092dd1afef6afc9766e3d641b2754504a250
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / marshmallow_cbor-0.1.1-py3-none-any.whl

Download URL marshmallow_cbor-0.1.1-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d4a54a46e7237fa2f188d4f6b937620b9138a91b45d874edcdf1a23762e0c475
BLAKE2b-256 checksum
How to use checksums
a79b7e9be6f89747d40ff47788b0e0223353ded979fadcbf623673201f3c2a26
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page