Last active
February 18, 2016 19:21
-
-
Save du2x/5701e954eeb7724fed06 to your computer and use it in GitHub Desktop.
Consume Mongo BSON File
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bson | |
bs = open('filename.bson').read() | |
b = bson.BSON(bs) | |
for line in bson.decode_all(b): | |
# do stuff | |
#del(line['_id']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment