For the most up-to-date version, check out our blog at codingforentrepreneurs.com/blog (also cfe.sh/blog)
Why? Python is not SQL. That's probably obvious. An ORM (object relation mapper) is a way that developers can write Python code that gets converted into database calls (queries).
This is a basic example using pure Python and storing/retrieving data in a comma separated values (csv) file.
Here's how you use it: