Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
A simple ORM for Python and Redis (synack.me)
2 points by synack on Jan 6, 2011 | hide | past | favorite | 1 comment


An ORM is an object-relational mapper. This doesn't map between a relational datastore and an object system because redis is not a relational datastore.

Thus this is not an ORM, it's just a Redis API for Python. And one which doesn't even use the 2.6 ABCs[0], implement half the methods of the corresponding Python base types or even correctly implement the signatures of the method it does have (Python's built-in sets have an `intersect` method, which is an instance method and takes 1..n set arguments as varargs, TFA's is a classmethod taking a sequence of sets; Python's `set.remove` raises KeyError when the object does not exist whereas TFA will fail silently — which is the behavior of `set.discard` — and as far as I can tell TFA's doesn't accept a set parameter either, ...).

[0] http://docs.python.org/library/collections.html#abstract-bas...




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: