py-bson / bson

Independent BSON codec for Python that doesn't depend on MongoDB.
Other
443 stars 82 forks source link

Maintain one to one match with original Mongo code #124

Open benoit74 opened 1 year ago

benoit74 commented 1 year ago

Current implementation seems to be fairly different than the one from Mongo at https://github.com/mongodb/mongo-python-driver

Is there any reason for this difference ? I checked their code and found no dependencies between the bson package and other packages in their repo.

Would it make sense that we automate something like this:

This would have many benefits:

WDYT?

benoit74 commented 1 year ago

And I can definitely help on this change. We will probably do it anyway, it just makes a little more sense to me to help enhance existing stuff if there is any interest rather than create "yet another thing".

blink1073 commented 3 months ago

Hi @Parkayun, I'm the current lead of the PyMongo team. We have seen several cases where users are trying to install both PyMongo and bson, sometimes unintentionally, and getting import errors since the submodules differ. Would you consider one of the following paths forward?