Aside: I presume that is an abbreviated version of "issues with the
things (Windows, Excel, VB, Bloomberg API) that I'm using pywin32 to
drive" :-)
>
> It uses the Bloomberg API along with some embedded VB code they wrote
> for me.
> (Bloomberg is a plugin so not sure if that's a non-starter for you).
xlsxrd is currently a bolt-on for xlrd. When officially released, it
will be integrated into xlrd, and already in common with xlrd has the
following attributes:
pure Python
runs on Python versions 2.1 to 2.7 inclusive
runs on any CPython-supported platform i.e. not restricted to Windows
extracts data from Excel files; there is no execution engine; it does
not drive an Excel instance
>
> I have a need to manipulate the data, and python is just the ticket.
>
> My environment is:
> - Vista
> - python 2.6.5
>
> Essentially the base functionality is to:
> 1. Open the "source" XLSX from within python (in the background) while
> allowing other Excel instances on the machine to run unhindered.
> 2. Allow the Bloomberg API to download data.
> 3. Read the data, perform analysis/munging within python
> 4. Then write the results out to another Excel file with some basic
> Excel formulae included. (SUM, AVG etc)
Which parts of the above have stability issues?
>
> If XLSXRD is Read Only, that is not a show stopper as Step 4. does not
> have to be XLSX and could indeed be XLS and use the standard xlutils
> library.
If you can "save as XLS" after step 2 without losing any data, then you
don't need xlsxrd. So maybe you can manage 1 and 2 with your existing
code, save it to an XLS file, then do 3 & 4 with xlrd/xlwt/xlutils.
Scenario 2: (assumes step 3 reduces data to fit in XLS) ... save to
XLSX, then do 3 & 4 with xlsxrd/xlwt/xlutils. Note it would have to be a
kludged version of xlutils (import xlsxrd instead of xlrd) until xlsxrd
is integrated.
Cheers,
John