Тёмный

Python MongoDB Tutorial using PyMongo 

Tech With Tim
Подписаться 1,5 млн
Просмотров 233 тыс.
50% 1

MongoDB is a simple and easy to use database. This tutorial will show you how to use MongoDB with python and the python module pymongo. Pymongo is the offical MongoDB API that allows for you to easily perfor mdatabse operations.
Please Note: This is simply the basics of MongoDB in python, it is meant to get you started and give you an introduction. MongoDB is capable of much more and I encourage you to read more information from tehe links listed below.
MongoDB Website: www.mongodb.com/
PyMongo Docs: api.mongodb.com/python/curren...
PyMongo Update Operators: docs.mongodb.com/manual/refer...
◾◾◾◾◾
💻 Enroll in The Fundamentals of Programming w/ Python
tech-with-tim.teachable.com/p...
📸 Instagram: / tech_with_tim
🌎 Website techwithtim.net
📱 Twitter: / techwithtimm
⭐ Discord: / discord
📝 LinkedIn: / tim-rusci. .
📂 GitHub: github.com/techwithtim
🔊 Podcast: anchor.fm/tech-with-tim
💵 One-Time Donations: www.paypal.com/donate/?token=...
💰 Patreon: / techwithtim
◾◾◾◾◾◾
⚡ Please leave a LIKE and SUBSCRIBE for more content! ⚡
Tags:
- Pymongo Tutorial
- Python MongoDB Tutorial
- MongoDB with Python
- Pymongo MongoDB
- MongoDB Tutorial
- MongoDB
- How to use MongoDB
- How to use Pymongo
#mongodb #python #pymongo

Опубликовано:

 

15 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 234   
@wikipediabutter9137
@wikipediabutter9137 5 лет назад
Tim: Just released a new video Me: Here we go again!
@vantheodore6165
@vantheodore6165 3 года назад
you prolly dont care but if you're stoned like me during the covid times then you can watch all of the new movies on InstaFlixxer. I've been binge watching with my gf for the last months =)
@aaronbobby3819
@aaronbobby3819 3 года назад
@Van Theodore Yea, have been watching on instaflixxer for months myself :D
@adityapaithon6499
@adityapaithon6499 5 лет назад
Your channel is one of the best resources. Keep going ❤
@TechWithTim
@TechWithTim 5 лет назад
Thanks !
@ChristianLowe2008
@ChristianLowe2008 2 года назад
Tim! Thank you!!!! I love the way your videos are easy to follow, and you're always informing me.
@pratikshirbhate8026
@pratikshirbhate8026 4 года назад
Super useful! Thank you very much Tim. Hope you and your family are safe in this pandemic!
@klnmn3722
@klnmn3722 2 года назад
Many thanks for the easy to follow tutorial. My first time working with MongoDB and this made it super easy to learn.
@josecruz2574
@josecruz2574 4 года назад
Hey Tim - just wanted to say thanks for everything you do.
@scoreboardapp1232
@scoreboardapp1232 3 года назад
Thank you so much, I've always was interested in DB but didn't know how to start )
@funeoz
@funeoz 3 года назад
Very concise and easy to follow ! Thanks !
@shaharlackritz1553
@shaharlackritz1553 3 года назад
Very simple and straight forward. Thanks!
@maycodes
@maycodes 2 года назад
Tim, Your tutorials on flask POST form & mongodb helped me with projects. Thanx a lot
@avvn9331
@avvn9331 5 лет назад
Thank you for this tutorial sir , explained nicely and in simple manner,
@FakeHenryF
@FakeHenryF 2 года назад
Literaly everything i needed and more, I was trying to use pandas to update a google sheets page instead of using a DB like SQL or mongo, and while i got it working, it was a very complicated process trying to understand the google API but this is just simple and i love it.
@Konceptify
@Konceptify 4 года назад
This has been the only useful and successful resource I've found.
@ronnynijimbere1090
@ronnynijimbere1090 4 года назад
Thank you Tim for this video...Much appreciated
@galexdbr
@galexdbr 3 года назад
just connected to my first mongodb using your video. Thanks! very good content!
@abdullahmoiz8151
@abdullahmoiz8151 4 года назад
Thank you very much this was quite simple and straight forward
@sikcro
@sikcro 5 лет назад
Love ur tutorials and especially ur pygame series
@intrestingvines4263
@intrestingvines4263 2 года назад
One of the best tutorial. Straight to the point . We love you ❤
@ofirozeri4084
@ofirozeri4084 2 года назад
So good! as someone who read they're doc back and furth you're explnations are exquisite!
@claudeloeffen6095
@claudeloeffen6095 4 года назад
Awesome video Tim, very easy to understand!
@ginopeduto4264
@ginopeduto4264 3 года назад
Again a simple and clear explanation - thx a lot - you are enriching RU-vid
@pashamukovoz2537
@pashamukovoz2537 4 года назад
Really nice and quick. Thank you!
@mathieuhanquin2643
@mathieuhanquin2643 4 года назад
thanks for you work, you explain incredibly well !
@louis-philip
@louis-philip 2 года назад
Thank you! You are going to be known as the person who got me started in MongoDB.
@lbb2rfarangkiinok
@lbb2rfarangkiinok 2 года назад
Yep, now when I see Tim, my first thought is: that's the guy who got Louis-Phillipe started in MongoDB. :)
@sergiosanabria7423
@sergiosanabria7423 Год назад
Thank you so much! This was very helpful for my current project
@BrannenTaylor
@BrannenTaylor 2 года назад
Very informative and cool. Thanks! One suggestion - if you’re talking in bottom right of screen and coding in upper left, it would be nice to either zoom in on code or enlarge the text. It would make it easier for your audience to follow. Thanks.
@sankethb.k642
@sankethb.k642 5 лет назад
Liked before watching 😊
@TechWithTim
@TechWithTim 5 лет назад
Mvp
@mentefria98
@mentefria98 2 года назад
Thanks for this, this is so much better than the documentation
@lowgn9251
@lowgn9251 Год назад
Quick and efficient ! Thanks !
@ipekselimoglu4951
@ipekselimoglu4951 3 года назад
simple, understandable ,thanks bro
@Raf2ILZ22
@Raf2ILZ22 3 года назад
Thank you so much helped me a lot!
@shxkxth8135
@shxkxth8135 2 месяца назад
Thank you very much. You are a life saver
@bennett8867
@bennett8867 2 года назад
Thank you so much for this tutorial!
@pkminime
@pkminime 4 года назад
Awesome work! Thank you
@t2elzeth
@t2elzeth 3 года назад
thank you for this tutorial, it helped me a lot :P
@ryanbell5779
@ryanbell5779 3 года назад
This is an excellent video thank you for this.
@user-yi1yw4nc5t
@user-yi1yw4nc5t 4 года назад
Thank you for this video!!!
@sanjabrkic1663
@sanjabrkic1663 3 года назад
Awesome video, thanks a lot! :)
@mralexrex
@mralexrex 3 года назад
Thanks dude, it is helping me sooooo much
@kenrosenberg8835
@kenrosenberg8835 3 года назад
nice and simple tutorial, good for getting started
@rufaydafamily607
@rufaydafamily607 Год назад
very helpful toutorial...thank you
@sembutininverse
@sembutininverse 3 года назад
thank you, it helped me alot🙏🏻🙏🏻🙏🏻
@buuqmarabo2778
@buuqmarabo2778 5 лет назад
the way you explain things is something to slow on the uptake people like me, thanks Tim!
@TechWithTim
@TechWithTim 5 лет назад
Not sure I understand what you are saying?!
@sueholder703
@sueholder703 4 года назад
@@TechWithTim "It helps to have things explained thoroughly for people who are slow on the uptake, like me! Thanks, Tim" is what he means, I think. :)
@davidchett7719
@davidchett7719 3 года назад
Great Job Demonstrating!!
@mfc1190
@mfc1190 4 года назад
Hi Tim, awesome video! I just wanted to say that for things like update_one or delete_one, you don't actually have to assign it to a variable. Those are going to be operations so if they are in your code they execute. I don't think there is much of a point to assign it as a variable. Thanks!
@rainyva8363
@rainyva8363 Год назад
great video, really helped me get started using mongodb with my python discord bot
@spectralsuccbb7540
@spectralsuccbb7540 2 года назад
great video, made learning mongo db a breeze
@kingvk9985
@kingvk9985 4 года назад
This is my favourite channel
@kunalaneja1720
@kunalaneja1720 3 года назад
I LOVE THIS THANKS SM
@danilafarga6810
@danilafarga6810 4 года назад
this was such a help!
@ela_bd
@ela_bd 3 года назад
So useful. Thanks.
@RS-el7iu
@RS-el7iu 3 года назад
thanks a lot... excellent explanation ..just created my first db :-))) ..now looking through other videos by you re charts and a way to share it with users if possible
@AndrewOBannon
@AndrewOBannon 3 года назад
thanks, nice introduction tutorial
@z0rr0o4
@z0rr0o4 2 года назад
Thanks a lot for this video
@JohnDoe-ov7pp
@JohnDoe-ov7pp 4 года назад
Thank you Tim.
@techstack6076
@techstack6076 3 года назад
Hey thanks :) really helpful looking into document and this video together made it easier:) is there any video made on the django framework
@Lukegg
@Lukegg 2 года назад
Thanks very much!
@krishj8011
@krishj8011 2 года назад
Awesome Tutorial...
@ArielMimran
@ArielMimran Год назад
thank you very much!
@Deepak61900
@Deepak61900 3 месяца назад
another great one.
@hypnotie
@hypnotie 4 года назад
Thank you, VitalyzdTv!
@BcomingHIM
@BcomingHIM 3 года назад
I was trying to run the first code block provided in the official docs of mongodb but it was throwing some access errors. I try to run your code and it ran correctly on the first try. Thanks man!
@joychakraborty3238
@joychakraborty3238 2 года назад
Awesome explanation...
@haiyanhao8035
@haiyanhao8035 4 года назад
So many thanks!
@rickshaltz3734
@rickshaltz3734 Год назад
This is so freaking awesome
@rishabhagarwal9625
@rishabhagarwal9625 3 года назад
Thanks much needed help
@MiRaje8086
@MiRaje8086 4 года назад
9:47 "always create an ID". Unless you have you're own method of generating secure unique IDs, this is bad advice. The whole point of the auto generated IDs is to be able to assetize each post in your DB. The difference between two people with the same name and age is their unique ID
@navinormusic
@navinormusic 4 года назад
very true
@laobaba
@laobaba 4 года назад
@@navinormusic Thank you. I cringed so hard when he said that.
@slipperytiger
@slipperytiger 4 года назад
There's literally a function built into the "insert_one" method to do this, I have no idea why he would do it this way. It's more work and less reliable to do it yourself.
@bowboycode2114
@bowboycode2114 3 года назад
You make Great Vidz !
@TheCodeHunter
@TheCodeHunter 3 года назад
thx tim this worked
@freesoul2677
@freesoul2677 3 года назад
Thank you!
@alexdin1565
@alexdin1565 2 года назад
Tim, you are the best please any way to get the first post for example by index (like we do it in the list)?
@aparna7359
@aparna7359 3 года назад
Thank you
@jearbecerro1167
@jearbecerro1167 4 года назад
Thanks for the enlightenment sir :)
@cristian-bull
@cristian-bull 3 года назад
Tim: you can give a value for _id Thanos: Impossible
@WolfDaniel
@WolfDaniel 3 года назад
really good video
@ahmetkilic7160
@ahmetkilic7160 4 года назад
Awesome
@nighthunter7255
@nighthunter7255 4 года назад
Thank you so much.[UZ]
@akshikaakalanka
@akshikaakalanka 4 года назад
Thank you! What is your choice for hosting client-side Python code online? Let's say a Django app or a Flask app.
@schrondingerbees3715
@schrondingerbees3715 3 года назад
Look into heroku, it's nice
@safeer786ful
@safeer786ful 3 года назад
Look into netlify, its amazing
@nikhilkumar-zz7ov
@nikhilkumar-zz7ov 4 года назад
Hello I Have a doubt.My Database contains a array of values and I want to retrieve the values and store it in a variable.How can I do that?!
@___aZa___
@___aZa___ 4 года назад
Oh wow, expected a shitty tutorial with no explanation. Oh boi did i get surprised! Great video!
@gangumstyle3395
@gangumstyle3395 3 года назад
hey man when i try to do the collections.find or anything really it is just saying the "object" has no attribute called "find"
@dejoma.
@dejoma. 3 года назад
I am doing a super simple find for a non-index ID of a sample collection in MongoDB, takes 8 seconds. What's wrong?
@afrazhasan5570
@afrazhasan5570 4 года назад
thanks man
@Castisto
@Castisto 5 лет назад
hello tim :) could i make a chess game or a simple/complex application after watching the general python tutorials?(I see there are 4 of them..(beginner/intermediate/OOP/sudoku) Or should i do more reading(texts/Documentations) before i go on. I am kind of afraid because i am soooo bad at OOP.(I want to get used to it..hopefully) I could see u need to know a little about pygame to make games and all..but dont know what to do next because im a beginner :( i want to make a rather complex(?) application by myself as an end goal.. but it's hard for me because of the OOP stuff :( ) still love ur videos tho :D thanks!
@TechWithTim
@TechWithTim 5 лет назад
I have some tutorials on OOP, try those!
@sainco3036
@sainco3036 5 лет назад
thanks.
@gavindutharaka8079
@gavindutharaka8079 2 года назад
Please help me! I have one error. It say query() got an unexpected keyword argument 'lifetime' how fix it?
@tariquekhan5813
@tariquekhan5813 3 года назад
Hello Tim, I can't run my Pip Command please help me out for this problem.
@TipsTricksSolutions
@TipsTricksSolutions 2 года назад
If i use this for a Discord Bot , I need to find that the user is already in the database or not. if it is yes I need to add 1 for the score if it is not I need to add his info to the database and add 1 to the score. How can I do that?
@cabrex5864
@cabrex5864 3 года назад
how do we handle empty results? for example, results = collection.find({"name": "foo"}) returns nothing if I want to print something like: for result in results: if result == '': print("Nothing in here") else: print(result) how would I do it?
@someoneontheinternetuvenev6268
@someoneontheinternetuvenev6268 3 года назад
you would write *if result == None* because when you dont get a result its an NoneType so *None* is the way to deal with it, cheers ;D
@sylvernes9837
@sylvernes9837 3 года назад
To anyone that put an "@" in their password. You will get an error saying "InvalidURI according to RFC 3986". To avoid this, import "urllib" into your venv/IDE and create a "passwd" variable like so: ``` import urllib passwd = urllib.parse.quote_plus("your_pass_with_@") ``` and pass it into your MongoClient() string. You may or may not see a yellow warning on "parse". If so, you can ignore it.
@jeevakumara5599
@jeevakumara5599 2 года назад
Hi Tim, I have done what u have done but I am getting an error like "auth error" I don't know what to do. pls kindly help me with it. Thank you. And waiting for your reply.
@spider279
@spider279 Год назад
Hello i did the same and if i refresh collection i don't get my. database created what to do please can someone help me ?
@patdev6299
@patdev6299 Год назад
Hi Tim! between 8:50-9:20 I cannot see the query results in mongodb, nonetheless I folowed your instructions before...
@gw6253
@gw6253 2 года назад
I got this error "TypeError: load_der_x509_certificate() missing 1 required positional argument: 'backend'" after the cluster = MongoClient("... ") command. Anyone knows how to solve this?
@codeforest9027
@codeforest9027 3 года назад
I'm getting this error: [WinError 10054] An existing connection was forcibly closed by the remote host
@vaiterius
@vaiterius 2 года назад
How do you check if a document/post exists inside your collection?
@tsvillain
@tsvillain 3 года назад
How can i make mongodb schema like we can do in nodejs with mongoose?
@KoljaMineralka
@KoljaMineralka Год назад
How do you connect to cluster on internal ips????
@rjanik2588
@rjanik2588 4 года назад
Hey tim, i want to ask something.. if i have a structure like this : { "_id": 1, " list" : ["n1", "n2", "n3"] } i have a variable called "item". And I want to cheak item contains in the list or not, How can i do that?
@richiemoon9218
@richiemoon9218 3 года назад
use a for loop.
@rjanik2588
@rjanik2588 3 года назад
@@richiemoon9218 that would be slow, suppose there are 100 item in the list, it would take Ages to complete.
@1UniverseGames
@1UniverseGames 2 года назад
How can I List the outer-most fields of the documents?
Далее