OfficeDissector Usage: ipython Session ====================================== Below is an ipython session demonstrating usage of OfficeDissector: :: $ ipython In [1]: import officedissector In [2]: doc = officedissector.doc.Document('test/fraunhoferlibrary/Artikel.docx') In [4]: doc.is_macro_enabled Out[4]: False In [5]: doc.is_template Out[5]: False In [6]: mp = doc.main_part() In [7]: mp.content_type() Out[7]: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml' In [9]: mp.name Out[9]: '/word/document.xml' In [10]: mp.content_type() Out[10]: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml' # We can read the part's stream of data: In [17]: mp.stream().read(200) Out[17]: '\r\n