4 ms·
I wrote peewee, a single file Python ORM. It's codebase is very small but it is extremely capable. http://docs.peewee-orm.com http://docs.peewee-orm.com
by coleifer 10y ago
I wrote peewee, a single file Python ORM. It's codebase is very small but it is extremely capable.
http://docs.peewee-orm.com http://docs.peewee-orm.com
- jedimastert 10y agoThis 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!
- mnkmnk 10y agoThanks!
- sfifs 10y agooh 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.
- deleted 10y ago[deleted]
- ThatGeoGuy 10y agoI 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.