Settings

Theme

Show HN: dorm: Django wrapper that lets you use its ORM in standalone manner

pypi.org

5 points by Harsh182 a year ago · 4 comments · 1 min read

Reader

dorm is a lightweight wrapper around Django that provides a minimal interface to its ORM. This package allows you to quickly integrate Django's powerful ORM into your project with minimal configuration—simply add a settings.py file to the project root and you're ready to start using it.

PyPI: https://pypi.org/project/dorm-project/ Source: https://github.com/daadu/dorm

Give me feedback, if you do give it a try.

## Motivation I’ve always been a big fan of the Django ORM, especially its features like automatic schema migrations and the ability to perform joins without writing raw SQL.

Over time, I’ve used it outside of full Django projects whenever I needed to interact with a database. Given the richness of Django’s ORM, I found other standalone ORMs (like SQLAlchemy) to be lacking in comparison. During these experiences, I kept wondering: what if I could use just the ORM, without the need for manage.py, views.py, urls.py, or any unnecessary entries in settings.py?

That’s how the idea for this project was born.

dhruvkb a year ago

I had been looking for something like this in the past. I have previously set up a full-fledged Django application only to use its ORM, but then I realised that it's quite helpful to have the possibility to expand the project into a proper web app or an API, if needed. The Django admin interface is also great!

  • Harsh182OP a year ago

    Yes, once you are used to such rich ORM, you would want to use it everywhere!

    Do give it a try, and write me a feedback - either here or on Github issues.

yodon a year ago

Excited to look into this in the new year - I'd been wondering if something like this existed

  • Harsh182OP a year ago

    Thanks, hopefully you find it useful.

    If you try out - then don't forget to write a feedback/review - either here or on github issues - will help in out in planning further improvements.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection