PyMongo (Interact with MongoDB in Python) [2022]
PyMongo tutorial: This video will teach you the official MongoDB Python driver for MongoDB. You will learn what is PyMongo? why to use it? how to use it in your python application? and also learn to perform the basic CRUD operations using PyMongo python package. We will use the latest version (pymongo 4.0) to interact with mongoDB in python
Link for the document: docs.google.com/document/d/1R...
Timestamps:
0:00 - Introduction
0:05 - What you'll learn?
0:26 - What is PyMongo? Why to use it?
1:15 - How to use PyMongo in python?
2:25 - Install and import PyMongo package (pymongo 4.0)
3:35 - Connecting to MongoDB
8:31 - Basic CRUD operations
26:00 - Thank you!.
Reference:
PyMongo docs: docs.mongodb.com/drivers/pymo...
Пікірлер: 17
Thanks for making this super simple! Great CRUD examples.
Thanks buddy!
it was very informative, looking forward for more videos from you......
@coding101withsteve8
2 жыл бұрын
Thank you so much. Stay tuned.
how can users type the input themselves?
Hi can i do all of these but instead using visual code. i used pycharm instead?
@lromano0706
9 ай бұрын
Concept is the same. Should be very similar.
Thank you for the video :D When creating an instance of the MongoClient i always get the Error of ServerSectionTimeout. Do you know why this happens ?
@coding101withsteve8
2 жыл бұрын
You're welcome Alperen ☺ For the error that you're facing I can think of few solutions: 1. Try selecting a lower version of the python driver when choosing the connection string. try option (3.4 or later) 2. Try adding ?ssl=true&ssl_cert_reqs=CERT_NONE at the end of connection string. (if you have other parameters in your connection string, you need to change the '?' to '&') 3. Pass connect=False as 2nd parameter to the MongoClient function. Hope this helps. All the the best!
@dglalperen
2 жыл бұрын
@@coding101withsteve8 Thank you very much i will try it :)
@coding101withsteve8
2 жыл бұрын
@@dglalperen You're welcome Alperen
why my program not run, it is showing that import pymongo is pratially intialized? please solve my problem
@coding101withsteve8
7 ай бұрын
Hello Jaspreet, check your file name. You might have named your file as pymongo or same like some module. Try changing the file name to anything else. Let us know if it works 😊
how do i get connection string from mongodb compass
@user-ey5ce7nk7c
7 ай бұрын
at the top left of mongodb compass, you will see your server name, click the 3 dot symbol and click the option "copy connection string".
Good stuff, however could you refer me to somewhere where I can make sub collections in the collections. I know It can be done, and I need it so I can pull specifics to make a looping database basically. By the way, I'm subbing. Get a good mic!
@rockoyhead
Жыл бұрын
HOW TO QUERRY SPECIFICS is a better ask