Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Created November 1, 2019 12:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NMZivkovic/28b1ff2c72570653319e59f3cbe75b85 to your computer and use it in GitHub Desktop.
Save NMZivkovic/28b1ff2c72570653319e59f3cbe75b85 to your computer and use it in GitHub Desktop.
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