raw_bson – Tools for representing raw BSON documents.

Tools for representing raw BSON documents.

class bson.raw_bson.RawBSONDocument(bson_bytes, codec_options=CodecOptions(document_class=dict, tz_aware=False, uuid_representation=PYTHON_LEGACY, unicode_decode_error_handler='strict', tzinfo=None))

Create a new RawBSONDocument.

Parameters :
  • bson_bytes: the BSON bytes that compose this document
  • codec_options (optional): An instance of CodecOptions.
items()

Lazily decode and iterate elements in this document.

raw

The raw BSON bytes composing this document.

Previous topic

objectid – Tools for working with MongoDB ObjectIds

Next topic

regex – Tools for representing MongoDB regular expressions

This Page