Please help test Pillow for Python 3
Hi, Python 3 support for PIL has been merged into the Pillow (PIL fork) master branch. If this interests you, please help test! - git://github.com/python-imaging/Pillow.git More on the subject: - http://blog.aclark.net/2013/01/10/pillow-python-3/ -- Alex Clark · https://www.gittip.com/aclark4life/ -- http://mail.python.org/mailman/listinfo/python-list
Re: The Zen of Zope, by Alex Clark
On 2012-12-11 21:01:03 +, Gregory Ewing said: Steven D'Aprano wrote: On Sun, 09 Dec 2012 20:13:43 -0500, Alex Clark wrote: The Zen of Zope, by Alex Clark I expect that I would find that hilarious if I knew anything about Zope :) It's probably a good thing I don't know much about Zope, because I'm already finding it hilarious. If I knew more, the hilarity level might become physically dangerous. Well, the point is two-fold: - Provide comic relief for those who have encountered unexpected complexity in Zope. - Showcase Zope's strengths for those who may be unfamiliar with it. TL;DR: Zope has a lot to offer, and there are times when you may need its libraries to perform complex tasks. -- Alex Clark · https://www.gittip.com/aclark4life/ -- http://mail.python.org/mailman/listinfo/python-list
Re: The Zen of Zope, by Alex Clark
On 2012-12-12 00:36:29 +, alex23 said: On Dec 12, 7:23 am, Alex Clark acl...@aclark.net wrote: TL;DR: Zope has a lot to offer, and there are times when you may need its libraries to perform complex tasks. I always avoided Zope as I kept hearing there's the Python way and then there's the Zope way, however, all that did is lead me to avoid a framework representing almost 15 years worth of experience. Having now been exposed to it through Plone, I'm finding a lot there to like, like zope.interface. Indeed, and getting folks to discuss Zope (especially in a positive way) is part of my goal. -- Alex Clark · https://www.gittip.com/aclark4life/ -- http://mail.python.org/mailman/listinfo/python-list
Re: The Zen of Zope, by Alex Clark
On 2012-12-10 04:24:00 +, Steven D'Aprano said: On Sun, 09 Dec 2012 20:13:43 -0500, Alex Clark wrote: import other The Zen of Zope, by Alex Clark I expect that I would find that hilarious if I knew anything about Zope :) Well, you are in luck! Because it's a tutorial too: https://github.com/aclark4life/other/blob/master/other.py :-) -- Alex Clark · https://www.gittip.com/aclark4life/ -- http://mail.python.org/mailman/listinfo/python-list
The Zen of Zope, by Alex Clark
import other The Zen of Zope, by Alex Clark Beautiful is an attribute of ugly. Explicit is implemented by implicit. Simple is provided by complex. Complex is directly provided by complicated. Flat only implements nested. Sparse has tagged value dense. Readability count is not in range. Special cases could not adapt the rules. Practicality implements purity. Errors should never require a specification that doesn’t extend the specification of silence. Unless explicit is a multi-adapter. In subscribing to ambiguity, return all the objects that refuse the temptation to guess. There should be none-- and preferably only zero --output from a handler. Although that way may not be obvious at first unless you've registered an adapter hook. Now is verified by never. Although never is not implemented by *right* now. If the implementation is hard to explain, it queries the bad idea utility. If the implementation is easy to explain, it may query the good idea utility. Implicit namespace packages are one honking great idea -- let's do more of those! -- Alex Clark · https://www.gittip.com/aclark4life/ -- http://mail.python.org/mailman/listinfo/python-list
Re: PIL and requests don't get along
On 2012-10-23 18:06:59 +, Roy Smith said: I have a url from which I can get an image. I want to use PIL to manipulate that image. Getting the image is easy: import requests r = requests.get(url) There's a bunch of factory functions for Image, but none of them seem to take anything that requests is willing to give you. Image.new() requires that you pass it the image size. Image.open() takes a file object, but Image.open(r.raw) doesn't work because r.raw gives you a socket which doesn't support seek(). I end up doing: r = requests.get(url) data = cStringIO.StringIO(r.content) image = Image.open(data) which works, but it's gross. Is there something I'm missing here? No idea but you can open a ticket here if you think it's appropriate: https://github.com/python-imaging/Pillow/issues -- Alex Clark · https://www.gittip.com/aclark4life/ -- http://mail.python.org/mailman/listinfo/python-list
Re: Interest in seeing sh.py in the stdlib
On 2012-10-21 16:59:16 +, Dennis Lee Bieber said: On Sun, 21 Oct 2012 07:41:52 -0600, Jason Friedman ja...@powerpull.net declaimed the following in gmane.comp.python.general: Pretty slick. My only concern is portability, are there other examples of modules (excepting Win32) that work on some platforms and not others? Just scan the library reference and you'll find a number of modules/functions that, even if available on all OS, behave slightly differently (look up mmap, for example; or readline) I was just getting used to it as PBS :-) Other than really liking your lib… I'm not convinced it would be a good candidate for the stdlib, yet. E.g. Not every good lib belongs in the stdlib. That said, if sh.py continues to gain popularity (akin to e.g. requests) I suspect the right people (core developers?) will see it. I'm also curious how that happens, would a PEP be a good place to propose inclusion in the stdlib? -- Alex Clark · https://www.gittip.com/aclark4life/ -- http://mail.python.org/mailman/listinfo/python-list
Re: PIL questions: still supported? Problems on 2.7 for win? alternatives?
On 2012-10-02 09:26:56 +, WhisperingWally said: Gelonida N gelonida at gmail.com writes: I wondered whether some of you have a little more insight into what's going on with PIL. AFAIK the latest PIL stuff lives here: hg.effbot.org Certainly true, though somewhat meaningless in the current context of what's going on with PIL?[1]. The latest Pillow (PIL fork) lives here: - https://github.com/python-imaging/Pillow And if folks commit meaningful changes there, we'll get releases out as needed. In other words, you are welcome and encouraged to explore all your options. And if it helps, you can affect the future of PIL in a meaningful way via Pillow. Alex [1] The last commit to: http://hg.effbot.org/pil-2009-raclette was in 2011. Based on that information, the answer would appear to be nothing, which is why Pillow exists. -- Alex Clark · http://aclark.net -- http://mail.python.org/mailman/listinfo/python-list
Re: PIL questions: still supported? Problems on 2.7 for win? alternatives?
On 2012-09-24 23:38:05 +, alex23 said: On Sep 25, 6:04 am, Gelonida N gelon...@gmail.com wrote: This all does not sound very comforting. Why is there no fix on the official site? Has a bug been logged about the issue? The Plone community keeps a fairly up-to-date fork called Pillow, we've had a lot of success using that locally: http://pypi.python.org/pypi/Pillow/ Actually, I started it for the Plone community, but have recently broadened the scope (since most of the contributions came from outside Plone). It now lives here: - https://github.com/python-imaging/Pillow If you have any trouble using it, please open a ticket here: - https://github.com/python-imaging/Pillow/issues Alex -- Alex Clark · http://pythonpackages.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Fastest web framework
On 2012-09-23 09:19:16 +, Andriy Kornatskyy said: I have run recently a benchmark of a trivial 'hello world' application for various python web frameworks (bottle, django, flask, pyramid, web.py, wheezy.web) hosted in uWSGI/cpython2.7 and gunicorn/pypy1.9... you might find it interesting: http://mindref.blogspot.com/2012/09/python-fastest-web-framework.html Comments or suggestions are welcome. Are you on Python Planet? If not, you might want to syndicate your blog there to reach more of the Python web framework crowd. Thanks. Andriy Kornatskyy -- Alex Clark · http://pythonpackages.com -- http://mail.python.org/mailman/listinfo/python-list
ANN: pythonpackages.com beta
Hi Python folks, I am reaching out to various Python-related programming communities in order to offer new help packaging your software. If you have ever struggled with packaging and releasing Python software (e.g. to PyPI), please check out this service: - http://pythonpackages.com The basic idea is to automate packaging by checking out code, testing, and uploading (e.g. to PyPI) all through the web, as explained in this introduction: - http://docs.pythonpackages.com/en/latest/introduction.html Also, I will be available to answer your Python packaging questions most days/nights in #pythonpackages on irc.freenode.net. Hope to meet/talk with all of you soon. Alex -- Alex Clark · http://pythonpackages.com/ONE_CLICK -- http://mail.python.org/mailman/listinfo/python-list
Re: Using a CMS for small site?
On 7/5/12 4:27 AM, Dieter Maurer wrote: Gilles nos...@nospam.com writes: The site is just... - a few web pages that include text (in four languages) and pictures displayed in a Flash slide show - a calendar to show availability - a form to send e-mail with anti-SPAM support - (ASAP) online payment Out of curiosity, are there CMS/frameworks in Python that can do this? Django? Other? There is also Plone (http://plone.org;) -- easy to set up. You likely need third party extensions for the anti-SPAM support and the onlie payment. Unfortunately, Plone is quite resource hungry -- especially it wants quite some memory. Actually with Plone 4 (and 4.2 in particular) that is becoming less true, I recently shrunk http://aclark.net to a 256MB vhost on rackspace cloud. -- Alex Clark · http://pythonpackages.com -- http://mail.python.org/mailman/listinfo/python-list
Turbogears 2 training this weekend in Washington, DC USA
Hi all, Sorry for the short notice. We (the Zope/Python Users Group of DC) are having a TurboGears 2 training class this weekend in Washington, DC USA taught by core developer Chris Perkins. Please consider attending! And, I would appreciate you spreading the word to anyone you think may be interested as well. Details are here: http://www.meetup.com/python-meetup-dc/messages/10123013/ And here is a taste: --- The DC Python Meetup is pleased to present Turbogears 2 training, delivered by Turbogears core developer Christopher Perkins. You can register now at http://tg2-class.eventbrite.com/ Turbogears is a modern python web framework with a powerful ORM (the one and only SQLAlchemy), designer friendly templates, and a widget system that simplifies Ajax development. If you're a web developer interested in expanding your toolkit or a python developer who wants to dabble in the web space, this training is an excellent opportunity to learn an agile and mature web framework. The training itself will be wonderfully practical, taking you from basic setup to a real application over the course of a day. You're invited to bring your own data, so that you can work with Chris to start migrating that legacy PHP app you have sitting around to Python beauty. This hands-on training aims to bring students up to speed with TurboGears 2, its administration interface, and touch common deployment scenarios. Students will also get to customize auto generated forms and tables. --- I hope to see you there! Alex, http://zpugdc.org -- Alex Clark · http://aclark.net Author of Plone 3.3 Site Administration · http://aclark.net/plone-site-admin -- http://mail.python.org/mailman/listinfo/python-list
ANN: Plone Conference 2008 Planning Survey
Hi all, For those interested in helping affect the outcome of Plone Conference 2008 in Washington, DC, USA please take the planning survey located at: http://tinyurl.com/4hxr8o The Zope/Python Users Group of DC would appreciate your help! Thanks, -- Alex Clark (http://aclark.net) -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations.html