Source: pycborstream
Maintainer: Olivier Langella <olivier.langella@cnrs.fr>
Section: python
Priority: optional
Build-Depends: dh-python, python3-setuptools, python3-all, debhelper (>= 9), python3-cbor2 (>=5.9.0), python3-cbor2 (<<6.0.0)
Standards-Version: 3.9.6
Homepage: None

Package: python3-pycborstream
Architecture: all
Depends: ${misc:Depends}, ${python3:Depends}, python3-cbor2 (>=5.9.0), python3-cbor2 (<<6.0.0)
Description: Stream API using cbor2 to read and write CBOR data.
 # pycborstream
 .
 Simple python API to handle CBOR files as streams. It provides lazy methods to read and write huge CBOR data files saving memory: data can be treated on the fly without having to load the entire structure.
 .
 Pycborstream mimics the C++ [QCborStreamReader Class](https://doc.qt.io/qt-6/qcborstreamreader.html) and [QCborStreamWriter Class](https://doc.qt.io/qt-6/qcborstreamwriter.html) API to read and write CBOR data. It uses [cbor2](https://github.com/agronholm/cbor2) under the hood, and combines it to also read/write directly python dictionnaries and arrays.
 .
 ## Simple usage: write a CBOR data file
 .
 ```python
 from io import BytesIO
 .
 from pycborstream import CborStreamEnc
 .
 cbor_out = "data.cbor"
 with open(cbor_out, "wb") as fp:
     cbor_encoder = CborStreamEnc(fp)
     cbor_encoder.startMap(2)  # start a map containing 2 key/value pairs
     cbor_encoder.append("first_key")
     cbor_encoder.startArray(None)  # start an array of undefined length
     cbor_encoder.append(5)

