Description
BSON documents can be encoded and decoded in Python without pulling in a full database driver. This codec is for developers handling MongoDB-style binary JSON records or interchange formats. Untrusted binary input should be size-limited and validated after decoding.