Home > Articles > Open Source > Python

  • Print
  • + Share This
Like this article? We recommend

Like this article? We recommend

Object-Relational Mappers

One wheel that has been invented time and time again is the object-relational mapping. This is code that either takes Python objects and prepares them for storage in a relational database, or code that takes the data model of a relational database and constructs Python objects from it.

An example of the first approach is discussed in Joel Shprentz's article "Persistent Storage of Python Objects in Relational Databases." I developed the second idea in dbObj (see http://www.valdyas.org/python/dbobj.html), together with a library that takes the repository and automatically creates PyQt-based data-aware forms and table views.

  • + Share This
  • 🔖 Save To Your Account