decalage2 / olefile

olefile is a Python package to parse, read and write Microsoft OLE2 files (also called Structured Storage, Compound File Binary Format or Compound Document File Format), such as Microsoft Office 97-2003 documents, vbaProject.bin in MS Office 2007+ files, Image Composer and FlashPix files, Outlook messages, StickyNotes, several Microscopy file formats, McAfee antivirus quarantine files, etc.
http://www.decalage.info/olefile
Other
225 stars 76 forks source link

Add context manager to OleFileIO #101

Closed OskarPersson closed 6 years ago

OskarPersson commented 6 years ago

This adds a context manager to OleFileIO enabling users to write

with olefile.OleFileIO('myfile') as ole:
    ...

and not having to worry about remembering to close the file.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.2%) to 69.24% when pulling 9816e93259d8983bd5e150aa8d8c6e0307d1f489 on OskarPersson:master into ab8edf24c5e1109dd5cfd7b6de0fa32469ec49aa on decalage2:master.

OskarPersson commented 6 years ago

@decalage2 When do you expect this could get merged and published in a new version? I'm waiting for this to be able to proceed with another PR https://github.com/openpreserve/fido/pull/131