Skip to content

πŸ§ͺπŸ”¬ Use SQLAlchemy to connect, query, and interact with relational databases.

Notifications You must be signed in to change notification settings

hackersandslackers/sqlalchemy-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5840c1d Β· Mar 26, 2022

History

18 Commits
Jan 9, 2021
Mar 27, 2021
Mar 28, 2021
Jan 13, 2021
Dec 28, 2020
Mar 27, 2021
Mar 27, 2021
Mar 28, 2021
Dec 28, 2020
Mar 27, 2021
Jan 13, 2021
Dec 28, 2020
Mar 27, 2021
Jan 13, 2021
Jan 6, 2021
Mar 26, 2022

Repository files navigation

SQLAlchemy Tutorial

Python SQLAlchemy PyMySQL GitHub Last Commit GitHub Issues GitHub Stars GitHub Forks

SQLAlchemy Tutorial

This repository contains the source code for a four-part tutorial series on SQLAlchemy:

  1. Databases in Python Made Easy with SQLAlchemy
  2. Implement an ORM with SQLAlchemy
  3. Relationships in SQLAlchemy Data Models
  4. Constructing Database Queries with SQLAlchemy

Getting Started

Get set up locally in two steps:

Environment Variables

Replace the values in .env.example with your values and rename this file to .env:

  • SQLALCHEMY_DATABASE_URI: Connection URI of a SQL database.
  • SQLALCHEMY_DATABASE_PEM (Optional): PEM key for databases requiring an SSL connection.

Remember never to commit secrets saved in .env files to Github.

Installation

Get up and running with make deploy:

$ git clone https://github.com/hackersandslackers/sqlalchemy-tutorial.git
$ cd sqlalchemy-tutorial
$ make deploy

Hackers and Slackers tutorials are free of charge. If you found this tutorial helpful, a small donation would be greatly appreciated to keep us in business. All proceeds go towards coffee, and all coffee goes towards more content.