vitess-gh/py/cbson
Veres Lajos 18fb59b104 typofixes - https://github.com/vlajos/misspell_fixer 2014-12-04 22:33:57 +00:00
..
README Pushing a native C implementation of bson encoder / decoder 2012-08-30 11:46:16 -07:00
cbson.c typofixes - https://github.com/vlajos/misspell_fixer 2014-12-04 22:33:57 +00:00
setup.py Pushing a native C implementation of bson encoder / decoder 2012-08-30 11:46:16 -07:00
test_cbson.py Removing a duplicate test. 2014-02-27 09:07:48 -08:00
test_cbson_bad_data.py Cleaning up test. 2014-02-25 21:43:44 -08:00

README

This library implements a simple C bson encoder / decoder for python.
It doesn't support the full bson spec, but supports enough for
our use of it.

The code has no particular dependencies, but at least the encoder has
the following notable caveats:
- It may or may not work on a 64-bit Python.
 (It's possible that it does work, but we've never tried it.)
- It doesn't do a good job of checking for overflows (which could happen
in a few parts, given appropriately malicious input).
- It won't work on a big endian platform.

The python code that uses the bson decoder can work with the pure python
bson decoder, which doesn't have these problems, but is slower.

This code was originally written by Kirk Mcdonald (kgm@google.com) for the
encoder part, and Shalabh Chaturvedi (shalabh@google.com) for the decoder
part.