BSD Ports

devel/py-cbor2 5.6.5_1 DragonFly

Pure Python CBOR (de)serializer with extensive tag support

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
devel, python
Package size
82.1 KiB, 435.9 KiB installed

Description

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).

In the other systems

SystemPortVersion
DragonFlydevel/py-cbor25.6.5_1
FreeBSDdevel/py-cbor26.1.5_1
NetBSDdevel/py-cbor26.1.4
MidnightBSDdevel/py-cbor25.4.3_2
HardenedBSDdevel/py-cbor26.1.4_1
GhostBSDdevel/py-cbor26.1.4_1

Install

Binary package:

pkg install py311-cbor2

From DPorts:

cd /usr/dports/devel/py-cbor2 && make install clean

Dependencies

Run dependencies 1