1from pymongo import MongoClient
2
3if __name__ == '__main__':
4 client = MongoClient("localhost", 27017, maxPoolSize=50)
5 db = client.localhost
6 collection = db['chain']
7 cursor = collection.find({})
8 for document in cursor:
9 print(document)