News for hackers. Stuff that matters.
Re:Python Patterns (2013) by mixmastamyk on Monday March 07, 2016 @11:22PM (#11243523)
Bottle, peewee, gevent workers, eh? Interesting choices. SimpleTemplate looks interesting, I hadn't seen it before.

Would be nice to hear some discussion there, instead of the column layout.

Re:Python Patterns (2013) by coleifer on Tuesday March 08, 2016 @01:07AM (#11243788)
I'm the author of Peewee and I've been running my blog with Flask, Peewee, gevent and sqlite. It's a very low-impact combination, lightweight and fun to use, although I'm a bit biased.
Re:Python Patterns (2013) by raymondh on Tuesday March 08, 2016 @01:58AM (#11243901)
Thank you for your work on Peewee. The code is nicely written and is easily read start to finish.
Re:Python Patterns (2013) by benhoyt on Tuesday March 08, 2016 @08:18AM (#11244990)
If Raymond Hettinger says that, it's probably true. :-) I agree -- I've been using peewee for a side project, and it's great. I also love the fact that the source is one file, as that makes it so easy to find stuff in and navigate. I've been working offline, so didn't have access to the docs, and just referred to the source to figure out how to do things.
Re:Python Patterns (2013) by coleifer on Tuesday March 08, 2016 @08:47AM (#11245144)
It's my pleasure! And thank you for the wonderful libraries, talks, and who could forget those snippets.
Re:Python Patterns (2013) by JustSomeNobody on Tuesday March 08, 2016 @08:48AM (#11245156)
Ok, now I'm going to go study Peewee's code...
Re:Python Patterns (2013) by coleifer on Tuesday March 08, 2016 @10:42AM (#11245869)
Ackkkk I'm actually rewriting it currently to try and ameliorate the cruft that's crept in since the 2.0 rewrite. I want to say "But wait! If you read the code in a couple weeks it'll be so much better!"
Re:Python Patterns (2013) by JustSomeNobody on Tuesday March 08, 2016 @11:17AM (#11246162)
Trust me, I'm sure I can improve my Python skills by reading the current version. I don't get a chance to use Python enough to shed the baggage of other languages to write Pythonic code, if that makes sense.

I haven't used Peewee in a project yet, but I've poked around with it. It's really nice, so thank you.

Re:Python Patterns (2013) by jqm on Tuesday March 08, 2016 @02:22AM (#11243944)
I'm using peewee for the first time on a project starting yesterday.

Not using the ORM (I like writing SQL for some reason) but the connection pooling on Postgres is nice and I'm really enjoying working with it. Thanks for your work.

Re:Python Patterns (2013) by emehrkay on Tuesday March 08, 2016 @09:26AM (#11245370)
I've learned a lot about Python from reading Peewee's source, thanks.