Skip to content

Instantly share code, notes, and snippets.

@drgarcia1986
Created August 18, 2014 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drgarcia1986/2624ca3201e04b88f582 to your computer and use it in GitHub Desktop.
Save drgarcia1986/2624ca3201e04b88f582 to your computer and use it in GitHub Desktop.
PyMongo show databases
>>> from pymongo import MongoClient
>>> c = MongoClient('localhost', 27017)
>>> c.database_names()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment