py-bson / bson

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

Feature request: generator loading #94

Open vmarkovtsev opened 5 years ago

vmarkovtsev commented 5 years ago

I've got a 200GB BSON file from Mongo, and I want to parse it as a stream: process each element in the list independently. It would be great if there was a version of decode_document which yield-ed parsed objects instead of putting them into an array.

Parkayun commented 5 years ago

Great Idea 👍