--- id: cbor2 version: "6.1.4" license: MIT license_treatment: permissive maintenance: active --- # cbor2 — CBOR (de)serializer with extensive tag support License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install cbor2 uv add cbor2 poetry add cbor2 ## Description .. image:: https://github.com/agronholm/cbor2/actions/workflows/test.yml/badge.svg :target: https://github.com/agronholm/cbor2/actions/workflows/test.yml :alt: Testing Status .. image:: https://github.com/agronholm/cbor2/actions/workflows/publish.yml/badge.svg :target: https://github.com/agronholm/cbor2/actions/workflows/publish.yml :alt: Publish Status .. image:: https://coveralls.io/repos/github/agronholm/cbor2/badge.svg?branch=master :target: https://coveralls.io/github/agronholm/cbor2?branch=master :alt: Code Coverage .. image:: https://readthedocs.org/projects/cbor2/badge/?version=latest :target: https://cbor2.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status .. image:: https://tidelift.com/badges/package/pypi/cbor2 :target: https://tidelift.com/subscription/pkg/pypi-cbor2 :alt: Tidelift About ===== This library provides encoding and decoding for the Concise Binary Object Representation (CBOR) (`RFC 8949`_) serialization format. The specification is fully compatible with the original RFC 7049. `Read the docs `_ to learn more. It is implemented in Rust. .. _RFC 8949:... ## AI interpretation — verify before relying cbor2 encodes and decodes Concise Binary Object Representation (CBOR) data as defined in RFC 8949, offering a simple API similar to json or pickle with support for CBOR tags, shared value references, and extensible custom type handling. Verdict: cbor2 is a well-maintained, production-ready CBOR serialization library with zero security vulnerabilities, permissive MIT licensing, and broad platform coverage. Its Rust implementation and lack of dependencies make it reliable for data interchange, though users compiling from source will need a Rust toolchain. [View on SkillFed](https://skillfed.io/packages/cbor2) · [View on PyPI](https://pypi.org/project/cbor2/)