MongoDB and Python: Quick start

Up and running with mongoengine
Rating: 4.4 out of 5 (1,235 ratings)
46,130 students
MongoDB and Python: Quick start
Rating: 4.4 out of 5 (1,235 ratings)
46,142 students
Basic document design and data modeling with document databases
Working with MongoDB from Python
Use the mongoengine ODM to map classes to MongoDB

Requirements

  • Basic experience with the Python programming language
Description

Learn MongoDB with Python and mongoengine. In this short, free course, we will build an AirBnB knock-off using Python and MongoDB. You will learn enough to get up and running with MongoDB for your next project.

According the to 2017 StackOverflow developer survey, MongoDB is one of the most loved and is by far the most wanted databases of 2017. You will learn many of the skills necessary to build MongoDB backed applications. 

We will primarily focus on accessing MongoDB from the ODM mongoengine. While you can use the lower-level pymongo package, you'll see that mongoengine adds powerful additional features not natively found in MongoDB such as required fields and default values.

You will learn

  • How document databases work
  • The benefits of NoSQL databases
  • A clear set of guidelines for modeling data with document databases
  • How to map Python classes into MongoDB collections
  • The basic CRUD operations (create, read, update and delete) for MongoDB
  • Complex queries (subdocuments, hierarchies, and more)
  • How to convert hierarchies in documents into flat Python structures using list comprehensions
  • Some Python tricks
  • To use PyCharm as your IDE which writing code

The course is free and the example code is extensive and available on github. Don't wait to get started.

Who this course is for:
  • Anyone who is looking to build amazing Python-based applications based on MongoDB.
Course content
6 sections • 32 lectures • 1h 57m total length
  • Hello and welcome to the course
    04:32
  • Introduction to MongoDB
    03:15
  • How do document databases work?
    02:45
  • Who uses MongoDB?
    02:28
  • Modeling in relational databases vs. modeling with documents
    03:27
  • The 5 modeling guidelines
    05:40
  • Integration DBs vs application DBs
    02:12
  • Getting started with the application / demo code
    05:43
  • How ODMs work
    02:48
  • Introduction to mongoengine
    01:06
  • Demo: Registering connections with MongoEngine
    03:18
  • Concept: Registering connections
    01:53
  • Demo: Defining mongoengine entities (classes)
    06:08
  • Concept: mongoengine entities
    03:40
  • Demo: Create a new account
    07:52
  • Demo: Robo 3T for viewing and managing data
    01:22
  • Demo: Login
    01:49
  • Demo: Register a cage
    10:20
  • Demo: Add a bookable time as a host
    05:44
  • Demo: Managing your snakes as a guest
    03:05
  • Demo: Book a cage as a guest
    14:22
  • Demo: View your bookings as guest
    07:47
  • Demo: View bookings as host
    04:48
  • Concept: Inserting documents
    01:10
  • Concept: Queries
    00:41
  • Concept: Querying subdocuments with mongoengine
    01:27
  • Concept: Query using operators
    00:47
  • Concept: Updating via whole documents
    01:22
  • Concept: Updating via in-place operators
    02:14
  • You've done it!
    00:24
  • Get the code
    00:57
  • MongoDB in production?
    02:12

Instructor
Podcaster, developer, entrepreneur, and Python enthusiast
Michael Kennedy
  • 4.4 Instructor Rating
  • 1,235 Reviews
  • 46,234 Students
  • 1 Course

Michael is the founder and host of two popular Python podcasts: Talk Python To Me and Python Bytes. Here he speaks with and explores the topics broadly interesting to Python developers.

He has been a software developer for over 20 years and has taught over 100 week-long training courses to professional software development teams throughout the world.