Skip to content

Instantly share code, notes, and snippets.

View codingforentrepreneurs's full-sized avatar
🔥

Coding For Entrepreneurs codingforentrepreneurs

🔥
View GitHub Profile
@codingforentrepreneurs
codingforentrepreneurs / blog-post-python-based-csv-orm.md
Created July 30, 2025 18:40
Python-based CSV ORM. Better understand how Python stores data in databases with an ORM

For the most up-to-date version, check out our blog at codingforentrepreneurs.com/blog (also cfe.sh/blog)

Python-based CSV ORM

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: