Working with mongoDB Atlas using Python

  Рет қаралды 55,833

Indian Pythonista

Indian Pythonista

Күн бұрын

Learn how to create a free mongoDB cluster on cloud using mongoDB Atlas and connect to it using Python!
Code here: gist.github.co...
MongoDB is a cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with schemata. MongoDB is developed by MongoDB Inc. and licensed under the Server Side Public License.
MongoDB Atlas is a fully-managed cloud database developed by the same people that build MongoDB. Atlas handles all the complexity of deploying, managing, and healing your deployments on the cloud service provider of your choice (AWS, Azure, and GCP).
------------------------------------------------------------
Explore my tutorials: nikhilkumarsin...
More awesome topics covered here:
WhatsApp Bot using Twilio and Python : tinyurl.com/y9...
Serverless Rest API using AWS and Python : tinyurl.com/y8...
Creating Chat Application using Flask, Socket.IO & mongoDB : tinyurl.com/y8...
Curses in Python : tinyurl.com/y8...
Discovering Hidden APIs : tinyurl.com/y7...
RegEx in Python : tinyurl.com/y8...
Python for Data Science : tinyurl.com/yd...
Introduction to Pandas : tinyurl.com/yc...
Introduction to Matplotlib : tinyurl.com/y8...
Introduction to Numpy : tinyurl.com/yc...
Functional Programming in Python : tinyurl.com/yb...
Python Package Publishing : tinyurl.com/ya...
Multithreading in Python : tinyurl.com/yc...
Multiprocessing in Python : tinyurl.com/y8...
Parallel Programming in Python : tinyurl.com/ya...
Concurrent Programming in Python : tinyurl.com/y9...
Dataclasses in Python : tinyurl.com/y8...
Exploring KZbin Data API : tinyurl.com/y7...
Just For Fun : tinyurl.com/y9...
Exploring AWS : tinyurl.com/yd...
Jupyter Notebook (Tips, Tricks and Hacks) : tinyurl.com/y8...
Decorators in Python : tinyurl.com/y7...
Inside Python : tinyurl.com/yd...
Exploring datetime : tinyurl.com/y9...
Collections in Python : tinyurl.com/yb...
Networking : tinyurl.com/y9...
Computer Vision for noobs : tinyurl.com/y8...
Python for web : tinyurl.com/y8...
Awesome Linux Terminal : tinyurl.com/y8...
Intermediate Python : tinyurl.com/ya...
Tips, tricks, hacks and APIs : tinyurl.com/y9...
Optical Character Recognition : tinyurl.com/yb...
Facebook Messenger Bot Tutorial : tinyurl.com/y9...
Facebook: / indianpythonista
Github: www.github.com...
Twitter: / nikhilksingh97
------------------------------------------------------------
#mongodb #atlas #python

Пікірлер: 80
@mayurighade3100
@mayurighade3100 2 жыл бұрын
I am getting SSL: CERTIFICATE_VERIFY_FAILED while connecting to cluster
@sakshibhatia3898
@sakshibhatia3898 2 жыл бұрын
how can I add a database to atlas using scrapy?
@LwinKhant-br2yz
@LwinKhant-br2yz 11 ай бұрын
Bro just really save my time. Thank you so much
@IndianPythonista
@IndianPythonista 5 жыл бұрын
Reference Material: gist.github.com/nikhilkumarsingh/2c39d161f3d5fe4a40c24d7c9a7a11c3
@mohammedkhaled158
@mohammedkhaled158 2 жыл бұрын
super clear, thanks! * i had to do this to avoid certefication error client = pymongo.MongoClient("mongodb+srv://:@cluster0.os8as.mongodb.net/student_db?retryWrites=true&w=majority" , tlsCAFile=certifi.where() )
@mohammedkhaled158
@mohammedkhaled158 2 жыл бұрын
first import certifi
@AirdropBard
@AirdropBard 2 жыл бұрын
I could not go without giving a like, thank you so much.
@obialethan
@obialethan 2 жыл бұрын
tysm for the video, so helpful
@jenisjenisjenis
@jenisjenisjenis 5 жыл бұрын
perfect explanation!! I would add more explanation on SSL, if there is a problem setting it up, but overall GREAT VIDEO!
@yasminenasrat1763
@yasminenasrat1763 11 ай бұрын
great video #free_palestine
@sushantyelamali5618
@sushantyelamali5618 3 жыл бұрын
*This might help if your facing module not found errors* pip install pymongo[srv] pip install dnspython==2.0.0
@eleniOG
@eleniOG 10 ай бұрын
this is such an amazing video!! Thank you so much for being clear with every step and giving helpful information. God bless you
@ryzk_muzik4949
@ryzk_muzik4949 2 жыл бұрын
thank you sooooooooo much brother...this is exactly wht i was looking for.....thanks again😁
@loleroy7541
@loleroy7541 3 жыл бұрын
I got error for mongodb certificate verify failed
@rohith4570
@rohith4570 3 жыл бұрын
same here
@amandubey5287
@amandubey5287 2 жыл бұрын
Bruh. Your video really solved a headache for me. I Deployed my app on heroku but it just wont work but it did perfectly locally. I tried everything to fix it but then i watched your video where you talked about IP address setup. I realised i had setup my own ip address only and beacuse of that it was working only on my pc locally. After making the access from anywhere it worked just fine. Thanks a ton.
@manojkumarm6609
@manojkumarm6609 Жыл бұрын
Thanks a lot❤️
@IamAkhilGoyal
@IamAkhilGoyal 5 жыл бұрын
nice video and looking for more such videos.
@IndianPythonista
@IndianPythonista 5 жыл бұрын
Do subscribe the channel to get updates of my latest videos. :)
@rohith4570
@rohith4570 3 жыл бұрын
The ServerSelectionTimeoutError error is occurring while connecting. How to resolve?
@pailacognizant
@pailacognizant 2 жыл бұрын
How should i pass the connection string if atlas connection is Okta SSO?
@pawanmehra5172
@pawanmehra5172 2 жыл бұрын
nice tutorial
@jaideepbanerjee2457
@jaideepbanerjee2457 2 жыл бұрын
Thank you so much..very very nice video for beginners
@rohandevaki4349
@rohandevaki4349 3 жыл бұрын
Thankyou sir, it is really helpful tutorial. sir can you share the link of the docs?, i cannot see the docs related to his anywhere..,
@carloscardoso2806
@carloscardoso2806 Жыл бұрын
Amazing, thank you so much! Please create more content like this.
@akshathbharathi7376
@akshathbharathi7376 3 жыл бұрын
What is the max size of database does monodb atlas allow under free subscription?
@jcho1719
@jcho1719 4 жыл бұрын
thanks so much!! I have no idea how to interact with MongoDB before...
@iabhishekpatil4415
@iabhishekpatil4415 4 жыл бұрын
Greate man, thanx a lot👍 I have made, what i didn't expect !! Thanx to you ✌
@vishwanipatlan6731
@vishwanipatlan6731 5 жыл бұрын
sir i use your cod in IDLE but it's give an error at big error tell me some solution
@rajatagrawal5339
@rajatagrawal5339 2 жыл бұрын
Exactly what I wanted. No unnecessary stuff. 👍
@aaronmartin56
@aaronmartin56 3 жыл бұрын
Brilliant video, exactly what I was looking for. Thank You!
@SoumilShah
@SoumilShah 5 жыл бұрын
hie i am having issues records = db.sensor_record. it goes in infinite loop it dosent count can you help ?
@IndianPythonista
@IndianPythonista 5 жыл бұрын
Show me complete code. Just hide the actual URI.
@SoumilShah
@SoumilShah 5 жыл бұрын
@@IndianPythonista i still have issue it dosent work could you send me your email so i can send you a email ?
@SoumilShah
@SoumilShah 5 жыл бұрын
@@IndianPythonista from pymongo import MongoClient client = MongoClient("xxx') db = client.get_database('student_db') records = db.student_record new_student = { 'name': 'ram' } records.insert_one(new_student)
@SoumilShah
@SoumilShah 5 жыл бұрын
@@IndianPythonista this is Error raise ConfigurationError(str(exc)) pymongo.errors.ConfigurationError: The DNS operation timed out after 30.00018811225891 seconds
@himanshubhusanrath212
@himanshubhusanrath212 4 жыл бұрын
Nice, simple and helpful tutorial
@ganeshakolar5137
@ganeshakolar5137 4 жыл бұрын
This was exactly what I was looking for superb video thanks a lot
@priyenshah9525
@priyenshah9525 3 жыл бұрын
Is there a way to export the dataset in csv form
@tripathi5174
@tripathi5174 4 жыл бұрын
can we do it i django? please reply sir
@EduardoBello7
@EduardoBello7 3 жыл бұрын
Awesome video. Very clear and full of good information. Good job man, thank you!
@allank1721
@allank1721 4 жыл бұрын
Thanks for the video man, helped me a lot! You Rock
@cristiannogueirasporto6895
@cristiannogueirasporto6895 4 жыл бұрын
Nice explanation, thank you so much
@falconfrancis1
@falconfrancis1 4 жыл бұрын
Crisp and clear explanation about the basics. Thank you :)
@jesalshah2198
@jesalshah2198 5 жыл бұрын
hey , you are really amazing and work with python is amazing but i am suffering with better looking gui for cross platform python apps please can you help me with this i really looking forward for your reply only the name of better libraries and frameworks will be enough i'll try to make the remaining progress by me
@IndianPythonista
@IndianPythonista 5 жыл бұрын
Did you try kivy?
@dogaozkutuk5118
@dogaozkutuk5118 3 жыл бұрын
Really smooth and clear, that’s great good job and thanks man !
@asiermurcia6651
@asiermurcia6651 4 жыл бұрын
Thanks!!
@tg5849
@tg5849 3 жыл бұрын
This was so helpful. Thank you so much!
@ced6528
@ced6528 4 жыл бұрын
When I try the "Count documents" part by typing records.count_documents({}) I got the following error: ServerSelectionTimeoutError Traceback (most recent call last) [...] [Errno -2] Name or service not known
@rohith4570
@rohith4570 3 жыл бұрын
that happened with me too. Resolved?
@ced6528
@ced6528 3 жыл бұрын
@@rohith4570 I guess not sorry
@camilotrejosmejia8784
@camilotrejosmejia8784 3 жыл бұрын
thank you so much!
@gabrielthom4959
@gabrielthom4959 4 жыл бұрын
awesome, thanks!
@TheSougata1
@TheSougata1 4 жыл бұрын
Great Explation
@DaiEroticz
@DaiEroticz 4 жыл бұрын
this is amazing. thanks
@黃昱銓-s7h
@黃昱銓-s7h 4 жыл бұрын
helped me a lot, thanks!
@Hannes_Winkler
@Hannes_Winkler 3 жыл бұрын
Thank you so much!
@gabrielagutierrez4111
@gabrielagutierrez4111 5 жыл бұрын
I LOVE U THANK YOU SO MUCH BRO
@ayushijoshi6219
@ayushijoshi6219 5 жыл бұрын
My code is showing this error - 'str' object has no attribute 'get_database'
@IndianPythonista
@IndianPythonista 5 жыл бұрын
Try to print 'client' object and debug.
@ronakagarwal6781
@ronakagarwal6781 4 жыл бұрын
Did you get the answer of your problem. I am also stuck in this.
@jobdeltoro1427
@jobdeltoro1427 5 жыл бұрын
Hello my MongoClient() is not working and it seems like the MongoClient class is not taking my URI mongo atlas string value, do you know what it could be the problem? I installed pymongo on my PC and installed pymongo on my Pycharm
@IndianPythonista
@IndianPythonista 5 жыл бұрын
What error are you getting?
@myeverymusic
@myeverymusic 5 жыл бұрын
Have you got it work? If NOT, append this to your URI: &ssl=true&ssl_cert_reqs=CERT_NONE
@rohith4570
@rohith4570 3 жыл бұрын
@@myeverymusic I did, but it didn't worked. Should I consider anything else?
@bobbasairohith3711
@bobbasairohith3711 5 жыл бұрын
nice video bro
@dmytroohorodnik3562
@dmytroohorodnik3562 5 жыл бұрын
what linux distro do you use?
@IndianPythonista
@IndianPythonista 5 жыл бұрын
Ubuntu (w/ Adapta Gtk + Paper Icon theme)
@SoumilShah
@SoumilShah 5 жыл бұрын
Following are error raise ConfigurationError(str(exc)) pymongo.errors.ConfigurationError: The DNS operation timed out after 30.00018811225891 seconds
@IndianPythonista
@IndianPythonista 5 жыл бұрын
Check your internet connection. Also allow all IPs in the whitelist of your cluster as explained in the video.
@SoumilShah
@SoumilShah 5 жыл бұрын
Indian Pythonista hey I tried everything it doesn’t work could you help me ? I am not able to solve problem
@IndianPythonista
@IndianPythonista 5 жыл бұрын
A DNS timeout is probably the result of a networking issue. It could either be transient ( just a passing thing ) or either your machine running the code needs a configuration check that DNS protocols are allowed, or the Atlas instance is not running. Please also ensure you added your client application host address to the whitelist of allowed Atlas clients, or similarly allowed access from that machine.
@SoumilShah
@SoumilShah 5 жыл бұрын
Indian Pythonista thanks for reply let me try with other account I was using my school account may be it’s because of that .
@myeverymusic
@myeverymusic 5 жыл бұрын
Append this to your URI: &ssl=true&ssl_cert_reqs=CERT_NONE
Parallel HTTP requests using requests_futures
14:39
Indian Pythonista
Рет қаралды 17 М.
MongoDB Crash Course With Python 2022
38:21
Patrick Loeber
Рет қаралды 55 М.
🍉😋 #shorts
00:24
Денис Кукояка
Рет қаралды 3,5 МЛН
LIFEHACK😳 Rate our backpacks 1-10 😜🔥🎒
00:13
Diana Belitskay
Рет қаралды 3,9 МЛН
Getting Started with MongoDB Atlas
57:14
MongoDB
Рет қаралды 34 М.
Unlocking the Power of NoSQL: FastAPI with MongoDB
23:57
Eric Roby
Рет қаралды 37 М.
Python MongoDB Tutorial using PyMongo
21:24
Tech With Tim
Рет қаралды 237 М.
Getting Started with MongoDB Atlas - A Modern Database!
19:56
MongoDB + Python #1 - CRUD, Relationships and More
54:52
Tech With Tim
Рет қаралды 104 М.
MongoDB in Python - NoSQL Document Database
24:33
NeuralNine
Рет қаралды 50 М.
MongoDB Schema Design Best Practices
50:39
Joe Karlsson
Рет қаралды 171 М.