Skip to main content

Pure Python CBOR (de)serializer with extensive tag support

Project description

.. image:: https://travis-ci.org/agronholm/cbor2.svg?branch=master
:target: https://travis-ci.org/agronholm/cbor2
:alt: Build 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

This library provides encoding and decoding for the Concise Binary Object Representation (CBOR)
(`RFC 7049`_) serialization format.

There exists another Python CBOR implementation (cbor) which is faster on CPython due to its C
extensions. On PyPy, cbor2 and cbor are almost identical in performance. The other implementation
also lacks documentation and a comprehensive test suite, does not support most standard extension
tags and is known to crash (segfault) when passed a cyclic structure (say, a list containing
itself).

.. _RFC 7049: https://tools.ietf.org/html/rfc7049


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

cbor2-4.1.1.tar.gz (23.3 kB view details)

Uploaded Source

Built Distribution

cbor2-4.1.1-py2.py3-none-any.whl (12.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file cbor2-4.1.1.tar.gz.

File metadata

  • Download URL: cbor2-4.1.1.tar.gz
  • Upload date:
  • Size: 23.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.14

File hashes

Hashes for cbor2-4.1.1.tar.gz
Algorithm Hash digest
SHA256 85fcf3d2cf1f2bf8538dca43f879e6aa61d74beea49412e137cc5d56f9de103c
MD5 b0824c31bfac9f580ee9864c915b6962
BLAKE2b-256 1b51639a132e9e4aa108f5e7ece77016c83d05ca5563f2a94cf21b9dfd8ab8e5

See more details on using hashes here.

File details

Details for the file cbor2-4.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: cbor2-4.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.14

File hashes

Hashes for cbor2-4.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0ea840a7aac8cc18f2e9b9ae3cbc38420ae8696f56becde11c3d57289153ff72
MD5 61099bac246747cdfa4970cb93508d2b
BLAKE2b-256 e243bde655f5a787ab92b0b65404595f7bd4a7a0fc27ed11ec225ea542bb2352

See more details on using hashes here.

Supported by

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