cborX
: generic CBOR for Python
cborX
is an efficient, robust and highly customisable CBOR implementation for Python.
It supports generic encoding and decoding, streaming of large or complex objects with low resource consumption, and support for asynchronous operation is planned.
A familiar JSON-like dumps
, dump
, loads
and load
API is provided.
>>> import cborx
>>> bin = dumps(Example)
>>> bin.hex()
Example result
>>> loads(bin)
19
Project Information
The code is released under the MIT Licence.
The project is hosted on GitHub with continuous integration.
Please submit an issue on the bug tracker if you have found a bug or have a suggestion.
Its documentation lives at Read the Docs, and the
latest release on PyPI. cborX
is rigorously
tested on Python 3.6 and above.