Back to Catalog

Accessing MongoDB Using Python

AdvancedGuided Project

In this guided project, you will discover how to use Python to perform a variety of queries on the MongoDB database.

4.4 (197 Reviews)

Language

  • English

Topic

  • Database

Enrollment Count

  • 1.10K

Skills You Will Learn

  • Python

Offered By

  • IBM

Estimated Effort

  • 30 minutes

Platform

  • SkillsNetwork

Last Update

  • May 1, 2024
About This Guided Project
Python is a popular programming language for working with data. MongoDB is a popular non-relational database that supports various data types, including dates and numbers. Python is a great choice for a wide range of basic and advanced MongoDB operations.

In this guided project, you will discover how you can interact with MongoDB databases by using Python. You will install PyMongo, a Python driver for MongoDB, and use it to access a database. After accessing the database, you will use Python to perform a variety of queries on documents in a collection. Then you will learn how to create a Python program that inserts a sample document and prints the documents in the collection.

This guided project will prepare you for applying Python to advanced operations in MongoDB documents.

A Look at the Project Ahead
Once you have completed this project, you'll be able to:
  • Access the MongoDB database from Python with the PyMongo driver
  • Perform basic operations such as selecting, inserting, and listing using Python
  • Create a Python program to run MongoDB operations

What You’ll Need
Just a web browser!

Everything else is provided to you via the IBM Skills Network Labs environment, where you will have access to the MongoDB service that we offer as part of the IBM Skills Network Labs environment. This platform works best with current versions of Chrome, Edge, Firefox, Internet Explorer, or Safari.

Your Instructor
Ramesh Sannareddy

Instructors

Kathy An

Skills Network Data Scientist Intern

Skills Network Data Scientist Intern

Read more

Rav Ahuja

Global Program Director, IBM Skills Network

Rav Ahuja is a Global Program Director at IBM. He leads growth strategy, curriculum creation, and partner programs for the IBM Skills Network. Rav co-founded Cognitive Class, an IBM led initiative to democratize skills for in demand technologies. He is based out of the IBM Canada Lab in Toronto and specializes in instructional solutions for AI, Data, Software Engineering and Cloud. Rav presents at events worldwide and has authored numerous papers, articles, books and courses on subjects in managing and analyzing data. Rav holds B. Eng. from McGill University and MBA from University of Western Ontario.

Read more