Search code examples
pythonmongodbbson

Query bson files using python


I have a bson file: xyz.bson full of useful data and I'd like to query/process the data using python. Is there a simple example/tutorial out there I can get started with?

I don't understand this one.


Solution

  • You could use the mongorestore command to import the data into a mongoDB server and then query it by connecting to that server.