Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I wrote peewee, a single file Python ORM. It's codebase is very small but it is extremely capable.

http://docs.peewee-orm.com



I actually only heard of this for the first time today, and it is indeed a fantastic ORM. The `pwiz` tool is insanely useful, and is a pretty good first step towards porting over database models from other projects.

I'm quite impressed with how easy to use everything is, despite having used pwiz to generate my model classes. I had to manually edit a couple of the "related_name" fields for some foreign keys that are common between tables, as well as import the ArrayField type from playhouse.postgres_ext, but otherwise had a very, very easy time getting everything set up for what I wanted.

Thanks again for this, I didn't think porting my database schema over to Python would be so easy.


This was actually the first ORM I used. It's currently in a super simple newsletter script I wrote for my university and I plan on using it anywhere else I run into databases and Python. Thanks!


oh nice. I remember using it long back for some personal mp3 classification software I wrote.

Nowadays though I tend to use either Key/Value stores or straight SQL.


Thanks!




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

Search: