The part you mention is ORM, and yes, ORMs are useful other than web development. Theoretically, you can use Django ORM for non-web content. However, this can be a little more complicated because it is not released separately, so you have to extract the code yourself (or you must include the entire django package).
There are many other ORMs in Python that you can use autonomously. My favorite is SQLAlchemy ( http://www.sqlalchemy.org/ ), but there are ones like storm and SQLObject.
Felix schwarz
source share