Skip to content

Instantly share code, notes, and snippets.

View KiraDynnes's full-sized avatar

KIra Svendsen KiraDynnes

  • Technical University of Denmark
  • Copenhagen, Denmark
View GitHub Profile
from pymongo import MongoClient
client = MongoClient('localhost', 27017)
db = client.Northwind # Get the database
#get a look at which collections are in the database
collection = db.collection_names(include_system_collections=False)
for collect in collection:
print(collect)
#short name for relevant collections