Created
May 19, 2016 22:05
-
-
Save tonytan4ever/d23eca160a258fa4ed311cbaa2e3f1b4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
client = MongoClient(**kwargs) | |
db = client[conf['NAME']] | |
if conf['USER']: | |
db.authenticate( | |
conf['USER'], | |
conf['PASSWORD']) | |
collection = db['sensor_data'] | |
collection.find({}) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment