Skip to content

Instantly share code, notes, and snippets.

View vipul43's full-sized avatar
😇
BUSY IN ENGINEERING

vipul vipul43

😇
BUSY IN ENGINEERING
View GitHub Profile
@vipul43
vipul43 / mongo_commands.py
Last active May 10, 2021 14:50
first experiment with pymongo python client commands
#pip install pymongo -> to install pymongo
from pymongo import MongoClient
import pprint
#creating client, database, collection and inserting one record
client = MongoClient()
print(client.list_database_names()) #will not be printed here
db = client['python_test_db']
collection = db['actors']
actor = {