Module Expr Str Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias Assign NameStore Num FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Str NameLoad Return CompareEq NameLoad NameLoad decorator_list Assign NameStore Call NameLoad Str TupleLoad Str Str Str Str Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Str NameLoad body If UnaryOpNot BoolOpOr Call NameLoad NameLoad NameLoad Call NameLoad NameLoad body Raise Call NameLoad Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If CompareNotIn NameLoad NameLoad body Raise Call NameLoad Str If UnaryOpNot Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Raise Call NameLoad Str If CompareIsNot NameLoad NameLoad body If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str If UnaryOpNot NameLoad body Raise Call NameLoad Str Return Call AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore IfExp CompareIs AttributeLoad NameLoad attr NameLoad Str Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad keyword Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list
N/A N/A Tools for specifying BSON codec options. N/A datetime collections MutableMapping namedtuple bson.py3compat string_type bson.binary ALL_UUID_REPRESENTATIONS PYTHON_LEGACY UUID_REPRESENTATION_NAMES N/A _RAW_BSON_DOCUMENT_MARKER 101 _raw_document_class N/A N/A document_class N/A N/A N/A Determine if a document_class is a RawBSONDocument class. N/A marker N/A getattr document_class _type_marker None N/A N/A marker _RAW_BSON_DOCUMENT_MARKER N/A N/A _options_base N/A namedtuple CodecOptions N/A document_class tz_aware uuid_representation unicode_decode_error_handler tzinfo CodecOptions N/A _options_base N/A N/A Encapsulates BSON options used in CRUD operations.

    :Parameters:
      - `document_class`: BSON documents returned in queries will be decoded
        to an instance of this class. Must be a subclass of
        :class:`~collections.MutableMapping`. Defaults to :class:`dict`.
      - `tz_aware`: If ``True``, BSON datetimes will be decoded to timezone
        aware instances of :class:`~datetime.datetime`. Otherwise they will be
        naive. Defaults to ``False``.
      - `uuid_representation`: The BSON representation to use when encoding
        and decoding instances of :class:`~uuid.UUID`. Defaults to
        :data:`~bson.binary.PYTHON_LEGACY`.
      - `unicode_decode_error_handler`: The error handler to use when decoding
        an invalid BSON string. Valid options include 'strict', 'replace', and
        'ignore'. Defaults to 'strict'.
      - `tzinfo`: A :class:`~datetime.tzinfo` subclass that specifies the
        timezone to/from which :class:`~datetime.datetime` objects should be
        encoded/decoded.

    .. warning:: Care must be taken when changing
       `unicode_decode_error_handler` from its default value ('strict').
       The 'replace' and 'ignore' modes should not be used when documents
       retrieved from the server will be modified in the client application
       and stored back to the server.
     __new__ N/A N/A cls document_class tz_aware uuid_representation unicode_decode_error_handler tzinfo N/A dict False PYTHON_LEGACY strict None N/A N/A N/A N/A N/A issubclass document_class MutableMapping N/A _raw_document_class document_class N/A N/A N/A TypeError document_class must be dict, bson.son.SON, bson.raw_bson_document.RawBSONDocument, or a sublass of collections.MutableMapping N/A N/A N/A isinstance tz_aware bool N/A N/A N/A TypeError tz_aware must be True or False N/A N/A uuid_representation ALL_UUID_REPRESENTATIONS N/A N/A N/A ValueError uuid_representation must be a value from bson.binary.ALL_UUID_REPRESENTATIONS N/A N/A N/A isinstance unicode_decode_error_handler N/A string_type None N/A N/A N/A ValueError unicode_decode_error_handler must be a string or None N/A N/A tzinfo None N/A N/A N/A N/A isinstance tzinfo N/A datetime tzinfo N/A N/A N/A TypeError tzinfo must be an instance of datetime.tzinfo N/A N/A tz_aware N/A N/A N/A ValueError cannot specify tzinfo without also setting tz_aware=True N/A N/A N/A tuple __new__ cls N/A document_class tz_aware uuid_representation unicode_decode_error_handler tzinfo N/A __repr__ N/A N/A self N/A N/A N/A document_class_repr N/A N/A N/A self document_class dict dict N/A repr N/A self document_class N/A uuid_rep_repr N/A N/A UUID_REPRESENTATION_NAMES get N/A self uuid_representation N/A self uuid_representation N/A N/A CodecOptions(document_class=%s, tz_aware=%r, uuid_representation=%s, unicode_decode_error_handler=%r, tzinfo=%r) N/A document_class_repr N/A self tz_aware uuid_rep_repr N/A self unicode_decode_error_handler N/A self tzinfo N/A N/A N/A DEFAULT_CODEC_OPTIONS N/A CodecOptions _parse_codec_options N/A N/A options N/A N/A N/A Parse BSON codec options. N/A N/A CodecOptions document_class N/A N/A options get document_class N/A DEFAULT_CODEC_OPTIONS document_class tz_aware N/A N/A options get tz_aware N/A DEFAULT_CODEC_OPTIONS tz_aware uuid_representation N/A N/A options get uuidrepresentation N/A DEFAULT_CODEC_OPTIONS uuid_representation unicode_decode_error_handler N/A N/A options get unicode_decode_error_handler N/A DEFAULT_CODEC_OPTIONS unicode_decode_error_handler tzinfo N/A N/A options get tzinfo N/A DEFAULT_CODEC_OPTIONS tzinfo N/A