I love the abstract database API that comes with Django, I was wondering if I could use this (or something similar) to model, access, and manage my (postgres) database for my non-Django Python projects.
What you're looking for is an object-relational mapper (ORM). Django has its own, built-in.
To use Django's ORM by itself:
If you want to use something else:
Popular stand-alone ORMs for Python:
They all support MySQL and PostgreSQL (among others).
I especially like SQLAlchemy with following tools:
They really remind me of ActiveRecord.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With