473,398 Members | 2,120 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Excel file read/write?

As far as I know, there is pyXLWriter for writing and xlrd for reading.
Is there such thing so that one can open an Excel file into memory and
read/update any sheet/cell on the fly. One analogy to this is the
ConfigParser module.

Any info would be much appreciated.

Nov 10 '06 #1
3 5345

Podi wrote:
As far as I know, there is pyXLWriter for writing and xlrd for reading.
Most folk would seem to be using pyExcelerator rather than pyXLWriter.
It is much more up to date, it just hasn't been worked on for a year,
whereas pyXLWriter is obsolete (doesn't write latest Excel file format)
and is deliberately/officially in Norwegian Blue Parrot emulation mode.
Is there such thing so that one can open an Excel file into memory and
read/update any sheet/cell on the fly. One analogy to this is the
ConfigParser module.
There is no pure Python platform-independent facility that requires no
other software to be installed. Your choices are:

1. Python COM interface (part of
http://sourceforge.net/projects/pywin32/) with lots of users (and hence
readily available help in this newsgroup), examples, etc -- but
requires (a) Windows OS (b) Microsoft Excel

2. OpenOffice.org has a built-in Python -- 2.n where n is a small
number :-( and almost impenetrable documentation -- Sybren Stuvel has
published some examples: http://www.stuvel.eu/ooo-python
but my guess is that all the users of the OOo interface could fit in a
taxi.

3. Gnumeric is rumoured to have a similar scripting facility.

Nov 10 '06 #2
Thanks for the reply.
>
Most folk would seem to be using pyExcelerator rather than pyXLWriter.
It is much more up to date, it just hasn't been worked on for a year,
I will give it a shot.
1. Python COM interface (part of
http://sourceforge.net/projects/pywin32/) with lots of users (and hence
readily available help in this newsgroup), examples, etc -- but
requires (a) Windows OS (b) Microsoft Excel
I am not into COM as it is kind of anti-intuitive, at least to me.
>
2. OpenOffice.org has a built-in Python -- 2.n where n is a small
number :-( and almost impenetrable documentation -- Sybren Stuvel has
published some examples: http://www.stuvel.eu/ooo-python
but my guess is that all the users of the OOo interface could fit in a
taxi.
Hmmm..., I have 2.4.2 and would not like to down grade myself.
>
3. Gnumeric is rumoured to have a similar scripting facility.
Well, I would like to stick with the MS crowd, at least for the moment.

Cheers!
P

Nov 10 '06 #3

Podi wrote:
>

2. OpenOffice.org has a built-in Python -- 2.n where n is a small
number :-( and almost impenetrable documentation -- Sybren Stuvel has
published some examples: http://www.stuvel.eu/ooo-python
but my guess is that all the users of the OOo interface could fit in a
taxi.

Hmmm..., I have 2.4.2 and would not like to down grade myself.
It is a separate installation of Python, somewhere in the OOo directory
hierarchy. You would have to "down grade" yourself only when working
with OOo. In any case the documentation and the size of the user base
are showstoppers IMHO.

Cheers,
John

Nov 10 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: see_mun_lee | last post by:
I use asp to develop a web page to read an excel file containing Chinese Character then display it in the web page. Unfortunately, I cant display it!!! it will display (?????????). <META...
6
by: Paul | last post by:
I was wondering if anyone has had an issue where using vba code to read an excel file and import the data into an access table some records are not imported from the excel file. It seems looking at...
7
by: soubhagya | last post by:
hi.. I need to open an excel file and read particular rows column data from particular worksheet and write to another excel file. this is to be done with "C" program..Right now I have no...
2
by: Rashrashetta | last post by:
Hai all, I am trying to read and write to an excel sheet using C# in a webform... I'v read alot of tutorials and used it...it works BUT ONLY ONCE...Especially when writing to the sheet... I...
0
by: santosh1234 | last post by:
Hi, I have a problem in importing from an excel file. I am using the connection string for oledb to convert the data from the excel file into a datatable and proceed thereafter. Code I am using...
18
by: gonzlobo | last post by:
No, I don't want to destroy them (funny how the word 'decimate' has changed definition over the years) :). We have a data acquisition program that saves its output to Excel's ..xls format....
0
by: newUser1234 | last post by:
I'm trying to read and write from an excel file using this method..My application can read the excel file without problems but doesn't write anything to the file i want it to write. I've also tried...
15
by: patf | last post by:
Hi - experienced programmer but this is my first Python program. This URL will retrieve an excel spreadsheet containing (that day's) msci stock index returns. ...
15
by: pakerly | last post by:
How would i do this, convert a test file to excel? Lets say my text file has fields like this: NUMBER NAME ADDRESS PHONE 11002 Test1 ...
5
by: Doogie | last post by:
Can anoyne tell me why this VBScript will create the file to Excel just fine, but the Excel file will not open up? I am saving it as a xlsx file instead of an xls one and I have the new version of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.