Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

src/r/e/reddit-iama-bot-HEAD/iama/utils.py   reddit-iama-bot(Download)
import pymongo
 
from envvars import MONGO_URI, DB_NAME
 
 
def get_db():
  connection = pymongo.Connection(MONGO_URI)
  return connection[DB_NAME]