Re: tiffany 0.6.1 released
Christian, I should have several larger Tiff files, but I would have to search a bi. I used tilded tiffs ack in the early 90-s as a solution to mapping large images onto raytraced surfaces on machines with only 20Mb of memory. I will have to search though and I am now travelling. If I fail to come back to you after I return home (in a week time), drop me an email. Are you going to be at Europython again (we once shared a taxi in Birmingham). I will drive down there tomoorw. Regards Anthon On 2012-06-30 12:41, Christian Tismer wrote: Tiffany - Read/Write Multipage-Tiff with PIL without PIL Tiffany stands for any tiff. The tiny module solves a large set of problems, has no dependencies and just works wherever Python works. Tiffany was developed in the course of the *DiDoCa* project and will always appear on PyPi. Version 0.6.1 - This version uses the new int.from_bytes/to_bytes methods from python3.2 and emulates them on python2.6/2.7 . This migration was tested using pytest. Tiffany is quite unlikely to change anymore until user requests come, or I get better test data: Testing with larger tiff files -- The implementation right now copies data in one big chunk. I would like to make that better/not limited by memory. For that, I need a tiff file that is a few megabytes big. Can somebody please send me one? Extending Tiffany? -- I'm also thinking of - an interface to Qt (without adding a dependency) - a command line interface, to make tiffany into a new tiff tool, - support for other toolkits that need to handle tiff files. Ideas about this are most welcome. Please let me know if this stuff works for you, and send requests to or use the links in the bitbucket website: https://bitbucket.org/didoca/tiffany cheers -- Chris -- http://mail.python.org/mailman/listinfo/python-list
string_formatter 1.0.1 released
string_formatter is a backport of the 3.4.1+ string.Formatter class, to 2.7, 3.3 and 3.4.0. This allows the use of empty keys {} in its format strings. At the same time it solves an existing (at least until 3.5.0.rc3) bug in string.Formatter, breaking with the use of nested empty keys. Python 3.4.3: >>> import string >>> string.Formatter().format("|{:<{}} {}|", 'a', 3, 5) '|a 3|' In addition (that is how it all started) it provides TrailingFormatter which allows a type specification "t" with a single character parameter. That character will be added to the (stringified) value before applying (left-aligned) formatting: import string_formatter as string fmt = string.TrailingFormatter() d = dict(a=1, bc=2, xyz=18) for key in sorted(d): print(fmt.format("{:t{}<{}} {:>3}", key, ':', 15, d[key])) giving: a:1 bc: 2 xyz: 18 -- https://mail.python.org/mailman/listinfo/python-list