Hubro
Hubro

Reputation: 59323

Django database API (model layer) without installing django?

I'm starting a new Python project where I'd love to have Django-like control over my database using models and SQLite, but I don't need all of Django. Also I don't want users to have to install any dependencies before using my product.

Are there any smaller projects out there that deliver Django-like database models, or is it possible to extract only the model functionality from Django and include it in my project folder so the user doesn't have to worry about it?

Upvotes: 0

Views: 304

Answers (1)

Daniel Roseman
Daniel Roseman

Reputation: 599560

It's not currently possible to just install Django's ORM without the rest of it. You can install the whole lot and just use the ORM, though.

Alternatively you might like to look into one of the standalone Python db wrappers/ORMs. The big one is SQLAlchemy, and there's also the smaller SQLObject.

Upvotes: 1

Related Questions