Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class UserRepository(object):
def __init__(self):
mongoclient = MongoClient('localhost', 27017)
#mongoclient = MongoClient('mongodb://localhost:27017')
database = mongoclient.local
self._users = database.user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment