Same comments about validation. I'd prefer to see a config section that just gets passed as kwargs to MongoClient() or MongoReplicaSetClient() with no validation, neither of parameter names nor of their values, for maximum flexibility. PyMongo validates *all* input params.