All Courses Python Tutorials

Practical SQL With Python In 3 Days

Practical SQL With Python In 3 Days

Build 3 Python Projects In 3 Days Using SQLite, MySQL, and PostgreSQL

What you’ll learn

Practical SQL With Python In 3 Days

  • Work with SQL databases confidently in python applications

  • Build and deploy a web-based API using FastAPI and PostgreSQL

  • Understand cursors, transactions, connections, and query execution in depth

  • Explore more advanced topics around dynamic SQL generation, prepared statements, and non-tuple cursors


  • Some basic familiarity with python and SQL would help, though advanced concepts will be explained in detail as needed


Welcome to the

best resource online

for learning to work with SQL in python.

Python and SQL are two of the most

in-demand skills

in any data-related or data-adjacent role today.

In this course, we’ll use






to build three projects of increasing complexity that will give you a

solid foundation

in using SQL in python applications.


17 hours


50 coding assignments

, you will gain practical mastery of, not only SQL and python but also tens of programming and computer science concepts.

In building these projects, you won’t be copying/pasting code. Instead, we will be

writing code from scratch

, and we will be writing lots of it.

This “forced” practice will help solidify your understanding of the concepts and techniques we cover. Each assignment will be followed by

a detailed solution and explanation


By the end of the course, after 3 immersive days,

SQL and python will be on your resume!

––––– Structure & Curriculum –––––

  • Day 1: SQLite

  • understanding connections, cursors, and transactions in sqlite3
  • parameterizing and executing queries
  • understanding and preventing SQL injections
  • introduction to DBAPI
  • building the Freight Manager (9 coding assignments)

  • Day 2: MySQL

  • revisiting connections, cursors, and transactions with MySQL-connector
  • building prepared statements
  • exploring dictionary, buffered and namedtuple cursors
  • building the School Registrar (19 coding assignments)

  • Day 3: PostgreSQL

  • revisiting connections, cursors, and transactions with psycopg2
  • generating dynamic SQL from python code
  • building the Guestbook API (22 coding assignments)
  • with object-oriented programming, password hashing, and more

This is the ultimate, immersive introduction to two of the most valuable skills today.

I’ll see you inside!

Who this course is for:

  • Anyone interested in learning how to work with SQL productively in python
  • Anyone interested in building python applications that use relational databases

If the links does not work, contact us we will fix them