bbayles / python-pure-cdb

Pure Python CDB reader/writer
https://python-pure-cdb.readthedocs.io/
MIT License
40 stars 10 forks source link

python-cdb compatability module #27

Closed bbayles closed 5 years ago

bbayles commented 5 years ago

This PR adds a new module for use in migrating applications that use python-cdb to Python 3.

The python-cdb package provides cdb writing and reading capabilities similar to this module's, using a C extension that only works on Python 2. The new module is intended to be more-or-less a drop-in replacement for that package.

The docs page describes the interface, and the tests are written such that they can run on Python 2 with the python-cdb package installed. There are a few caveats, especially around encoding, but my hope is that this module makes switching very easy.