pymongo dynamic structure code example
Example: pymongo dynamic structure
hostIPAddress = "0.0.0.0.0"
dbName = "testDB"
collectName = "testCollection"
client = pymongo.MongoClient("mongodb://" + hostIPAddress + "/")
target = client[dbName][collectName]