2 ms·
PonyORM does something similar in Python: select(c for c in Customer if sum(c.orders.total_price) > 1000) I love the hackiness of it.
by notpushkin 1y ago
PonyORM does something similar in Python:
select(c for c in Customer if sum(c.orders.total_price) > 1000)
I love the hackiness of it.
- porridgeraisin 1y agoPonyORM is my favourite python ORM. Along with https://pypi.org/project/pony-stubs/ https://pypi.org/project/pony-stubs/, you get decent static typing as well. It's really quite something.
- rafaelgoncalves 1y agowhoa, didn't know PonyORM, looks really neat! thanks for showing