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

Provide utility encode and decode methods in BSON module

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.9
    • BSON
    • None

    Description

      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)

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: