devel/py-cbor2 5.4.3_2 MidnightBSD
Pure Python CBOR (de)serializer with extensive tag support
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- Last update
- Commit
22173208f1- License
- mit
- Categories
- devel, python
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
| System | Port | Version |
|---|---|---|
| MidnightBSD | devel/py-cbor2 | 5.4.3_2 |
| FreeBSD | devel/py-cbor2 | 6.1.5_1 |
| NetBSD | devel/py-cbor2 | 6.1.4 |
| DragonFly | devel/py-cbor2 | 5.6.5_1 |
| HardenedBSD | devel/py-cbor2 | 6.1.4_1 |
| GhostBSD | devel/py-cbor2 | 6.1.4_1 |
Install
Binary package:
mport install ${PYTHON_PKGNAMEPREFIX}cbor2
From mports:
cd /usr/mports/devel/py-cbor2 && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cbor2>0:devel/py-cbor2
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}setuptools-scm>=1.7.0: devel/py-setuptools-scm
Build dependencies 1
No port depends on this one.
Configuration
No options to configure.
- USES
- python cpe
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| cbor2-5.4.3.tar.gz | 86499 | 62b863c5ee6ced4032afe948f3c1484f375550995d3b8498145237fe28e546c2 |
Master sites 1
- PYPI