Guest User

Untitled

a guest
Aug 13th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. import config
  2. import pandas as pd
  3. from pymongo import MongoClient
  4.  
  5.  
  6. host = config.mongo_host
  7. username = config.mongo_username
  8. password = config.mongo_password
  9.  
  10. client = MongoClient(host)
  11.  
  12. print(client)
  13.  
  14.  
  15. # Getting a database
  16. db = client['resume']
  17. print(db)
  18. # Getting a collection
  19. coll = db.resparse
  20. print(coll.count())
Add Comment
Please, Sign In to add comment