반응형
- python 에서 pymongo 연동 하는 방법
- pip install pymongo
- from pymongo import MongoClient
- client = MongoClient(host='localhost', port=27107)
- db = client['my_test_db']
- db.authenticate(username, password)
- test_collection = db['my_test_collection']
- 컬렉션 조작 하기
반응형
'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 |