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!
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.
Comments (868) 410 threads
Show all comments
Showing thread 34 of 410
http://docs.peewee-orm.com
Nowadays though I tend to use either Key/Value stores or straight SQL.
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.