I am trying to use this module and I am unable to connect. Also, I am not sure how to view the DEBUG messages in cmonary.c.
I have tried with the 'with' statement as well as through the interpreter.
import monary m = monary.Monary("ds######.mongolab.com", 33828) print m._connection None
I also want to authenticate, so this is what I was hoping to use (or something like it).
with monary.Monary(db_host, db_port) as m:
success = m.authenticate(db_name, db_user, db_pass)
arrays = m.query(
I have no problem connecting with pymongo btw.
This works: db = pymongo.Connection(db_host, db_port)[db_name] db.authenticate(db_user, db_pass)