I am using pymongo driver to work with Mongodb using Python. Every time when I run a query in python shell, it returns me some output which is very difficul
I want to know whether there is any method like pretty() in PyMongo
pretty()
No PyMongo doesn't provide such method. It is only available in the shell. You need to use the pprint function from the pprint module.