Contents

cbor2 5.8.0

0

CBOR (de)serializer with extensive tag support

CBOR (de)serializer with extensive tag support

Stars: 285, Watchers: 285, Forks: 70, Open Issues: 35

The agronholm/cbor2 repo was created 9 years ago and the last code push was Yesterday.
The project is popular with 285 github stars!

How to Install cbor2

You can install cbor2 using pip

pip install cbor2

or add it to a project with poetry

poetry add cbor2

Package Details

Author
None
License
None
Homepage
None
PyPi:
https://pypi.org/project/cbor2/
Documentation:
https://cbor2.readthedocs.org/en/latest/
GitHub Repo:
https://github.com/agronholm/cbor2

Classifiers

No  cbor2  pypi packages just yet.

Errors

A list of common cbor2 errors.

Code Examples

Here are some cbor2 code examples and snippets.

GitHub Issues

The cbor2 package has 35 open issues on GitHub

  • Set default read_size to 1 for backwards compatibility
  • Sequential decoding does not behave as expected
  • Stack allocate small strings
  • Add option to decode type bytestring as a mutable bytearray rather than bytes
  • Enabled free threading
  • Expose *_encoders and use them to replace canonical param of CBOREncoder
  • Moved global decoder dicts to decoder object
  • Better support for lists
  • POC: Allow customizing encoding of known types in the C-extension. Fixes #192
  • Bug in pack_float16()
  • Adds support for decoding floating-point typed arrays from RFC8746

See more issues on GitHub

Related Packages & Articles

marshmallow 4.2.2

A lightweight library for converting complex datatypes to and from native Python datatypes.

pyaml 26.2.1

PyYAML-based module to produce a bit more pretty and readable YAML-serialized data