How do I get list all MongoDB databases and collections
for individual databases using python
only(Without using any of mongo API)
Any help would be appreciated.
This question appears to be off-topic. The users who voted to close gave this specific reason:
Here's a JS command that will get database names
Put it to a file, say "dbs.js" and run
Output:
How to call command line tool ("shelling out") and read tool's output - it's easily googlable stuff. That'll be your homework. |
|||
|
I'm using Pymongo
|
|||||||||
|
mongo
CLI. – Sergio Tulentsev Oct 28 '13 at 10:14