AndresVargas

Hi!, my nickName is zodman, im a Computer science Engineering. love the FLOSS and FreeSoftware. Python ninja and php coder. On left my love Aisha and me.

Interest links
seen more



Powered by Django.

pyExcelerator making xls files with python

This week ended. Im use this lib its called funny pyExcelerator ( remember me terminator movie).

Its a python module for make files compatibles with MS excel Office.

Im try it and can open files with Office 2007, Mac Office and Openoffice. This solve my problems with endusers what a need a reports in excel.

here a example:

from pyExcelerator import *

w = Workbook()
ws = w.add_sheet('Hey, Dude')

ws.write(0, 0, 1)
ws.write(1, 0, 1.23)
ws.write(2, 0, 12345678)
ws.write(3, 0, 123456.78)

ws.write(0, 1, -1)
ws.write(1, 1, -1.23)
ws.write(2, 1, -12345678)
ws.write(3, 1, -123456.78)

ws.write(0, 2, -17867868678687.0)
ws.write(1, 2, -1.23e-5)
ws.write(2, 2, -12345678.90780980)
ws.write(3, 2, -123456.78)

w.save('numbers.xls')

the better of that module its not have deps. so not need a openoffice core/lib for used it.

$ yolk -S name=pyExcelerator -M pyExcelerator
author: Roman V. Kiseliov
author_email: roman@kiseliov.ru
download_url: http://www.sourceforge.net/projects/pyexcelerator /> platform: Platform-independent
version: 0.6.0a

Code Python
BACK