Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OLE Compound Documents in Python

Tags:

python

ole

how would you parse a Microsoft OLE compound document using Python?

Edit: Sorry, I forgot to say that I need write support too.. In short, I have an OLE compound file that I have to read, modify a bit and write back to disk (it's a file made with a CAD application)

like image 451
Joril Avatar asked Jun 09 '26 12:06

Joril


1 Answers

Just found OleFileIO_PL, but it doesn't have write support.. :/ and as of version 0.40 (2014) it has write support.

Edit: Looks like there's a way (though Windows-only) that supports writing too.. The pywin32 extensions (StgOpenStorage function and related)

like image 163
Joril Avatar answered Jun 11 '26 10:06

Joril