from pymongo.mongo_client import MongoClient client = MongoClient( host=["10.0.10.35:27017"], username="admin", password="1234", authSource="admin" )