import pymongo

###Connection
myclient =  pymongo.MongoClient("mongodb://localhost:27017/")

mydb = myclient["mydatabase"] # Db
mycol = mydb["customers"] #table

x = mycol.find({},{ "_id": 0, "name": 1, "address": 1 })
# x = mycol.find({},{ "address": 0 })

for y in x:
    print(y)
baf7e27310fe7b9f191ea1566fb7a2edbb459a81
<mask token>

<mask token>
for y in x:
    print(y)

<mask token>
myclient = pymongo.MongoClient('mongodb://localhost:27017/')
mydb = myclient['mydatabase']
mycol = mydb['customers']
x = mycol.find({}, {'_id': 0, 'name': 1, 'address': 1})
for y in x:
    print(y)

import pymongo
myclient = pymongo.MongoClient('mongodb://localhost:27017/')
mydb = myclient['mydatabase']
mycol = mydb['customers']
x = mycol.find({}, {'_id': 0, 'name': 1, 'address': 1})
for y in x:
    print(y)

import pymongo

###Connection
myclient =  pymongo.MongoClient("mongodb://localhost:27017/")

mydb = myclient["mydatabase"] # Db
mycol = mydb["customers"] #table

x = mycol.find({},{ "_id": 0, "name": 1, "address": 1 })
# x = mycol.find({},{ "address": 0 })

for y in x:
    print(y)