pymongo usage
본문 바로가기
Python

pymongo usage

by ByteBridge 2019. 6. 8.
반응형
  • python 에서 pymongo 연동 하는 방법
    1. pip install pymongo
    2. from pymongo import MongoClient
    3. client = MongoClient(host='localhost', port=27107)
    4. db = client['my_test_db']
    5. db.authenticate(username, password)
    6. test_collection = db['my_test_collection']
    7. 컬렉션 조작 하기
반응형

'Python' 카테고리의 다른 글

Python application with Docker Image build and Run  (0) 2019.07.14
python file line read and set  (0) 2019.06.15
Commands for Python with Git project  (0) 2019.02.10
python logging config  (0) 2019.02.04
python http status code except handling  (0) 2019.02.04