{"id":15008863,"url":"https://github.com/decalage2/olefile","last_synced_at":"2025-10-04T10:23:17.591Z","repository":{"id":48389913,"uuid":"58560586","full_name":"decalage2/olefile","owner":"decalage2","description":"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.","archived":false,"fork":false,"pushed_at":"2024-10-28T17:25:38.000Z","size":731,"stargazers_count":242,"open_issues_count":61,"forks_count":81,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-05-03T08:08:29.956Z","etag":null,"topics":["compound","compound-document","ms-office-documents","ole-files","olefile","parse","python","python-library","python2","python3"],"latest_commit_sha":null,"homepage":"http://www.decalage.info/olefile","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/decalage2.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-11T16:10:37.000Z","updated_at":"2025-03-31T01:42:14.000Z","dependencies_parsed_at":"2022-08-20T12:20:21.547Z","dependency_job_id":"27ac9613-d60f-4c25-adb7-317c3b5386c9","html_url":"https://github.com/decalage2/olefile","commit_stats":{"total_commits":351,"total_committers":23,"mean_commits":15.26086956521739,"dds":"0.37891737891737887","last_synced_commit":"ae8e110e90965f2648052b29f1b3da2c39465001"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decalage2%2Folefile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decalage2%2Folefile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decalage2%2Folefile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decalage2%2Folefile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/decalage2","download_url":"https://codeload.github.com/decalage2/olefile/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254067059,"owners_count":22009070,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compound","compound-document","ms-office-documents","ole-files","olefile","parse","python","python-library","python2","python3"],"created_at":"2024-09-24T19:21:10.942Z","updated_at":"2025-10-04T10:23:12.561Z","avatar_url":"https://github.com/decalage2.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"olefile\n=======\n\n[![Test](https://github.com/decalage2/olefile/actions/workflows/test.yml/badge.svg)](https://github.com/decalage2/olefile/actions)\n[![Build Status AppVeyor](https://ci.appveyor.com/api/projects/status/github/decalage2/olefile?svg=true)](https://ci.appveyor.com/project/decalage2/olefile)\n[![codecov](https://codecov.io/gh/decalage2/olefile/branch/main/graph/badge.svg)](https://codecov.io/gh/decalage2/olefile)\n[![Documentation Status](http://readthedocs.org/projects/olefile/badge/?version=latest)](http://olefile.readthedocs.io/en/latest/?badge=latest)\n[![PyPI](https://img.shields.io/pypi/v/olefile.svg)](https://pypi.org/project/olefile/)\n[![Say Thanks!](https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg)](https://saythanks.io/to/decalage2)\n\n[olefile](https://www.decalage.info/olefile) is a Python package to parse, read and write\n[Microsoft OLE2 files](http://en.wikipedia.org/wiki/Compound_File_Binary_Format)\n(also called Structured Storage, Compound File Binary Format or Compound Document File Format),\nsuch as Microsoft Office 97-2003 documents, vbaProject.bin in MS Office 2007+ files, Image Composer\nand FlashPix files, Outlook messages, StickyNotes, several Microscopy file formats, McAfee antivirus quarantine files,\netc.\n\n\n**Quick links:** [Home page](https://www.decalage.info/olefile) -\n[Download/Install](http://olefile.readthedocs.io/en/latest/Install.html) -\n[Documentation](http://olefile.readthedocs.io/en/latest) -\n[Report Issues/Suggestions/Questions](https://github.com/decalage2/olefile/issues) -\n[Contact the author](https://www.decalage.info/contact) -\n[Repository](https://github.com/decalage2/olefile) -\n[Updates on Twitter](https://twitter.com/decalage2)\n\n\nNews\n----\n\nFollow all updates and news on Twitter: \u003chttps://twitter.com/decalage2\u003e\n\n- **2023-12-01 v0.47**: now distributed as wheel package, added VT_VECTOR support for properties,\n  added get_userdefined_properties, fixed bugs in isOleFile and write_sect, improved file closure\n- 2018-09-09 v0.46: OleFileIO can now be used as a context manager\n(with...as), to close the file automatically\n(see [doc](https://olefile.readthedocs.io/en/latest/Howto.html#open-an-ole-file-from-disk)).\nImproved handling of malformed files, fixed several bugs.\n- 2018-01-24 v0.45: olefile can now overwrite streams of any size, improved handling of malformed files,\nfixed several [bugs](https://github.com/decalage2/olefile/milestone/4?closed=1), end of support for Python 2.6 and 3.3.\n- 2017-01-06 v0.44: several bugfixes, removed support for Python 2.5 (olefile2),\nadded support for incomplete streams and incorrect directory entries (to read malformed documents),\nadded getclsid, improved [documentation](http://olefile.readthedocs.io/en/latest) with API reference.\n- 2017-01-04: moved the documentation to [ReadTheDocs](http://olefile.readthedocs.io/en/latest)\n- 2016-05-20: moved olefile repository to [GitHub](https://github.com/decalage2/olefile)\n- 2016-02-02 v0.43: fixed issues [#26](https://github.com/decalage2/olefile/issues/26)\n    and [#27](https://github.com/decalage2/olefile/issues/27),\n    better handling of malformed files, use python logging.\n- see [changelog](https://github.com/decalage2/olefile/blob/master/CHANGELOG.md) for more detailed information and\nthe latest changes.\n\nDownload/Install\n----------------\n\nIf you have pip or setuptools installed (pip is included in Python 2.7.9+), you may simply run **pip install olefile**\nor **easy_install olefile** for the first installation.\n\nTo update olefile, run **pip install -U olefile**.\n\nOtherwise, see http://olefile.readthedocs.io/en/latest/Install.html\n\nFeatures\n--------\n\n- Parse, read and write any OLE file such as Microsoft Office 97-2003 legacy document formats (Word .doc, Excel .xls,\n    PowerPoint .ppt, Visio .vsd, Project .mpp), MSI files, Image Composer and FlashPix files, Outlook messages, StickyNotes,\n    Zeiss AxioVision ZVI files, Olympus FluoView OIB files, etc\n- List all the streams and storages contained in an OLE file\n- Open streams as files\n- Parse and read property streams, containing metadata of the file\n- Portable, pure Python module, no dependency\n\nolefile can be used as an independent package or with PIL/Pillow.\n\nolefile is mostly meant for developers. If you are looking for tools to analyze OLE files or to extract data (especially\nfor security purposes such as malware analysis and forensics), then please also check my\n[python-oletools](https://www.decalage.info/python/oletools), which are built upon olefile and provide a higher-level interface.\n\n\nDocumentation\n-------------\n\nPlease see the [online documentation](http://olefile.readthedocs.io/en/latest) for more information.\n\n\n## Real-life examples ##\n\nA real-life example: [using OleFileIO_PL for malware analysis and forensics](http://blog.gregback.net/2011/03/using-remnux-for-forensic-puzzle-6/).\n\nSee also [this paper](https://computer-forensics.sans.org/community/papers/gcfa/grow-forensic-tools-taxonomy-python-libraries-helpful-forensic-analysis_6879) about python tools for forensics, which features olefile.\n\n\nLicense\n-------\n\nolefile (formerly OleFileIO_PL) is copyright (c) 2005-2023 Philippe Lagadec\n([https://www.decalage.info](https://www.decalage.info))\n\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n * Redistributions of source code must retain the above copyright notice, this\n   list of conditions and the following disclaimer.\n * Redistributions in binary form must reproduce the above copyright notice,\n   this list of conditions and the following disclaimer in the documentation\n   and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n\n----------\n\nolefile is based on source code from the OleFileIO module of the Python Imaging Library (PIL) published by Fredrik\nLundh under the following license:\n\nThe Python Imaging Library (PIL) is\n\n- Copyright (c) 1997-2009 by Secret Labs AB\n- Copyright (c) 1995-2009 by Fredrik Lundh\n\nBy obtaining, using, and/or copying this software and/or its associated documentation, you agree that you have read,\nunderstood, and will comply with the following terms and conditions:\n\nPermission to use, copy, modify, and distribute this software and its associated documentation for any purpose and\nwithout fee is hereby granted, provided that the above copyright notice appears in all copies, and that both that\ncopyright notice and this permission notice appear in supporting documentation, and that the name of Secret Labs AB or\nthe author not be used in advertising or publicity pertaining to distribution of the software without specific, written\nprior permission.\n\nSECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES\nOF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR\nCONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF\nCONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdecalage2%2Folefile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdecalage2%2Folefile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdecalage2%2Folefile/lists"}