Managing database with SQLAlchemy

First, install SQLAlchemy using pipenv install sqlalchemy.

Let’s say we want to track our favorite books. We know each book by its title and author, and also want to track whether it’s available to lend to a friend. First, we create a class that represents the table. Each instance of the class, that is, each object, will be an individual book.

Get hands-on with 1400+ tech skills courses.