Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-1785

Provide utility encode and decode methods in BSON module

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.9
    • Affects Version/s: None
    • Component/s: BSON
    • None

      We should provide these utility methods so that the user does not have to know about the internals of how the BSON class (and the encode and decode methods therein) in order to use them properly. For example, right now the user must do the following in order to correctly use the existing class to decode some bson bytes:

      BSON(bson_data).decode(codec_options)
      

      The new API could just provide a simple method for the user:

      decode(bson_data, codec_options)

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            prashant.mital Prashant Mital (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: