Skip to content

Instantly share code, notes, and snippets.

@TaylorBoon
TaylorBoon / data_access.py
Last active August 29, 2015 14:00
Extremely Simple Python ORM
'''
Extremely Simple Python ORM
Simple stuff for mapping database results onto objects. Extremely simplistic, does not handle table
relationships or anything at all complicated. Not real fast either so not useful for anything that
requires speed or beyond semi-casual usage. Still, it is nice for simple scripts to automate
object creation from data stored in a database.
Tested with MySQL and Oracle (selects only).
'''