python mongodb docker

client = MongoClient(
  host = ["ip:port"],
  username = "objectrocket",
  password = "1234",
)
client.admin.command('ping')
Benja