from pymongo import Connectionhost= 'flame.mongohq.com'port = 27088dbName = 'YourDatabaseName'connection = Connection(host, port)db = connection[dbName]userID = 'YourNameFromReg'pwd = 'YourPassFromReg'db = connection[dbName]db.authenticate(userID, pwd)for collection in db.collection_names():print collection
'via Blog this'
Комментариев нет:
Отправить комментарий