Using MongoDB with Python
Working with MongoDb A No-SQL database which works to manage data without need of SQL statements We need to install the MongoDb Software as a Service sudo apt-get update sudo apt-get install -y mongodb Starting the MongoDB Service sudo service mongodb start Default is 27017 Stopping the MongoDb Service sudo service mongodb stop Install the package pymongo in conda conda install pymongo #Adding new record import pymongo myclient = pymongo.MongoClient("mongodb://localhost:27017/") mydb = myclient["demodb"] mycol = mydb["customer"] cid=input("Enter customer id : ") name=input("Enter Name : ") email=input("Enter email : ") c={ "cid": cid, "name": name, "email":email } mycol.insert_one(c) print("Record added") # View all records import pymongo myclient = pymongo.MongoClient("mongodb://localhost:27017/") mydb = myclient["demodb...