Discussion:
Pymongo GridFS vs GridFSBucket
(too old to reply)
Raghuram Krishnaswami
2018-11-29 06:34:59 UTC
Permalink
The pymongo documentation seems to be light on gridfs.
I found this <http://api.mongodb.com/python/current/examples/gridfs.html>
example, which only uses the `gridfs.GridFS
<http://api.mongodb.com/python/current/api/gridfs/index.html#gridfs.GridFS>`.
But the API Reference has another class `gridfs.GridFSBucket
<http://api.mongodb.com/python/current/api/gridfs/index.html#gridfs.GridFSBucket>
`.
I'm not understanding why there are two different classes, and the
difference between the two.

Why am I interested in this?
Because I use PyMODM
<https://pymodm.readthedocs.io/en/latest/api/index.html#module-pymodm.files>,
and internally, it is using `gridfs.GridFSBucket.open_download_stream` (in
`GridFSFile` class).
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.

For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+***@googlegroups.com.
To post to this group, send email to mongodb-***@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/7a2d96ad-7ba0-45a8-9ec7-b8229465b4a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...