Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5370 > unrolled thread
| Started by | cesium5500@yahoo.ca |
|---|---|
| First post | 2011-05-14 11:11 -0400 |
| Last post | 2011-05-15 17:50 -0700 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
Question about available python lib for a task cesium5500@yahoo.ca - 2011-05-14 11:11 -0400
Re: Question about available python lib for a task Tim Roberts <timr@probo.com> - 2011-05-15 17:50 -0700
| From | cesium5500@yahoo.ca |
|---|---|
| Date | 2011-05-14 11:11 -0400 |
| Subject | Question about available python lib for a task |
| Message-ID | <mailman.1550.1305386063.9059.python-list@python.org> |
Hello, I would like to build a database of all the MS-Excel file on a LAN. I would like to get the files metadata : filename, summary, location, size, etc. Is there a dedicated python lib for the task? Is pywin32 one of the possible lib available? I would prefer to not building everything from scratch testing, etc. ETL software could also is a solution maybe... Thanks
[toc] | [next] | [standalone]
| From | Tim Roberts <timr@probo.com> |
|---|---|
| Date | 2011-05-15 17:50 -0700 |
| Message-ID | <9os0t6pa69gl9e1uhvts087s8d2re4jr4v@4ax.com> |
| In reply to | #5370 |
cesium5500@yahoo.ca wrote: > >I would like to build a database of all the MS-Excel file on a LAN. I >would like to get the files metadata : filename, summary, location, >size, etc. > >Is there a dedicated python lib for the task? No. The file name, location, and size are all completely generic. You can do that with standard Python and the os.walk command. The document properties (like the summary) can be accessed in a couple of ways. You can do it in Excel by opening the application, opening the document, and using the BuiltinDocumentProperties collection. Or, you can do it without Excel, using the COM interfaces for "structured storage", like IPropertySetStorage and IPropertyStorage. >Is pywin32 one of the possible lib available? You will need PyWin32 in order to use COM to launch Excel, or use the structured storage interfaces. -- Tim Roberts, timr@probo.com Providenza & Boekelheide, Inc.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web