Pretty printing of output in pymongo

前端 未结 4 1760
太阳男子
太阳男子 2021-01-12 17:25

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

4条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-12 17:58

    It probably depends on your IDE, not the pymongo itself. the pymongo is responsible for manipulating data and communicating with the mongodb. I am using Visual Studio with PTVS and I have such options provided from the Visual Studio. The PyCharm is also a good option for IDE that will allow you to watch your code variables and the JSON in a formatted structure.

提交回复
热议问题