Skip to content

MousamS26/MongoDBwithPython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MongoDB with Python

  • Implementing basic MongoDB CRUD (Create, Read, Update, Delete) queries, using Python.
  • We can connect to a MongoDB database hosted locally by using the package/module named; pymongo.
  • To connect MongoDB database with python, simply import the module listed above and use connection string generated in MongoDB Compass to connect a specific Database.

pymongo

  • Pymongo enables Python programs to access MongoDB databases.
  • PyMongo provides a rich set of tools that you can use to communicate with a MongoDB server.
  • It provides functionality to query, retrieve results, write and delete data, and run database commands.

Code output:

Creating Database and Tables:

Screenshot (81)

Reading the Data:

Screenshot (84)

Updating the Data:

Screenshot (85)

Deleting the Data:

Screenshot (86)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages