Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'url:pypi': 0.03; 'value,': 0.04; 'subject:released': 0.07; 'from:addr:simplistix.co.uk': 0.09; 'from:name:chris withers': 0.09; 'message- id:@simplistix.co.uk': 0.09; 'received:server1.simplistix.co.uk': 0.09; 'received:simplistix.co.uk': 0.09; 'python': 0.11; 'def': 0.12; 'col': 0.16; 'received:93.89': 0.16; 'received:93.89.128': 0.16; 'received:93.89.128.162': 0.16; 'received:buzzkill.local': 0.16; 'simplistix': 0.16; 'think.': 0.16; 'to:name:python list': 0.16; 'url:simplistix': 0.16; 'all,': 0.19; 'module': 0.19; 'skip:p 40': 0.19; '>>>': 0.22; 'import': 0.22; 'print': 0.22; 'header:User-Agent:1': 0.23; 'from:addr:chris': 0.24; 'lets': 0.24; 'cheers,': 0.24; 'skip:v 30': 0.26; 'excel': 0.26; 'values': 0.27; 'chris': 0.29; 'to:no real name:2**1': 0.29; 'related': 0.29; "i'm": 0.30; '13,': 0.31; 'url:python': 0.33; 'announce': 0.33; 'skip:d 20': 0.34; 'dates': 0.36; 'view,': 0.36; 'url:org': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; 'release': 0.40; 'full': 0.61; 'new': 0.61; 'here:': 0.62; 'to:2**2': 0.65; 'details': 0.65; 'url:0': 0.67; 'url:co': 0.67; 'received:93': 0.72 Date: Tue, 29 Oct 2013 23:26:10 +0000 From: Chris Withers User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: Python List , python-excel@googlegroups.com, simplistix@googlegroups.com Subject: xlutils 1.7.0 released! Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 46 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1383089178 news.xs4all.nl 15896 [2001:888:2000:d::a6]:48287 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:57980 Hi All, I'm pleased to announce the release of xlutils 1.7.0: http://pypi.python.org/pypi/xlutils/1.7.0 This release features a handy new view module that lets you do things like: >>> def print_data(rows): ... for row in rows: ... for value in row: ... print value, ... print >>> from xlutils.view import View, Row, Col >>> print_data(view['Sheet1'][:2, :1]) R0C0 R1C0 >>> print_data(view['Sheet1'][Row(1):Row(2), Col('A'):Col('B')]) R0C0 R0C1 R1C0 R1C1 There's also some help for values that are dates or times: >>> for row in View(join(test_files,'date.xls'))[0]: ... for value in row: ... print repr(value) datetime.datetime(2012, 4, 13, 0, 0) Please have a play and let me know what you think. Full docs here: http://pythonhosted.org/xlutils/ Details of all things Python and Excel related can be found here: http://www.python-excel.org/ cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk