I’m not understanding why there are two different classes, and the difference between the two.
Hi Raghuram,
gridfs.GridFSBucket is a new top level object that is added to follow methods defined in MongoDB Drivers: GridFS Spec, i.e. upload_from_stream, etc.
For PyMongo, GridFSBucket is introduced in version 3.1.
Regards,
Wan.