METADATA 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. Metadata-Version: 2.1
  2. Name: olefile
  3. Version: 0.47
  4. Summary: Python package to parse, read and write Microsoft OLE2 files (Structured Storage or Compound Document, Microsoft Office)
  5. Home-page: https://www.decalage.info/python/olefileio
  6. Author: Philippe Lagadec
  7. Author-email: nospam@decalage.info
  8. License: BSD
  9. Download-URL: https://github.com/decalage2/olefile/tarball/master
  10. Platform: UNKNOWN
  11. Classifier: Development Status :: 5 - Production/Stable
  12. Classifier: Intended Audience :: Developers
  13. Classifier: Intended Audience :: Information Technology
  14. Classifier: Intended Audience :: Science/Research
  15. Classifier: Intended Audience :: System Administrators
  16. Classifier: License :: OSI Approved :: BSD License
  17. Classifier: Operating System :: OS Independent
  18. Classifier: Programming Language :: Python
  19. Classifier: Programming Language :: Python :: 2
  20. Classifier: Programming Language :: Python :: 2.7
  21. Classifier: Programming Language :: Python :: 3
  22. Classifier: Programming Language :: Python :: 3.5
  23. Classifier: Programming Language :: Python :: 3.6
  24. Classifier: Programming Language :: Python :: 3.7
  25. Classifier: Programming Language :: Python :: 3.8
  26. Classifier: Programming Language :: Python :: 3.9
  27. Classifier: Programming Language :: Python :: 3.10
  28. Classifier: Programming Language :: Python :: 3.11
  29. Classifier: Programming Language :: Python :: 3.12
  30. Classifier: Programming Language :: Python :: Implementation :: CPython
  31. Classifier: Programming Language :: Python :: Implementation :: PyPy
  32. Classifier: Topic :: Software Development :: Libraries :: Python Modules
  33. Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
  34. Description-Content-Type: text/markdown
  35. Provides-Extra: tests
  36. Requires-Dist: pytest ; extra == 'tests'
  37. Requires-Dist: pytest-cov ; extra == 'tests'
  38. olefile
  39. =======
  40. [![Test](https://github.com/decalage2/olefile/actions/workflows/test.yml/badge.svg)](https://github.com/decalage2/olefile/actions)
  41. [![Build Status AppVeyor](https://ci.appveyor.com/api/projects/status/github/decalage2/olefile?svg=true)](https://ci.appveyor.com/project/decalage2/olefile)
  42. [![codecov](https://codecov.io/gh/decalage2/olefile/branch/main/graph/badge.svg)](https://codecov.io/gh/decalage2/olefile)
  43. [![Documentation Status](http://readthedocs.org/projects/olefile/badge/?version=latest)](http://olefile.readthedocs.io/en/latest/?badge=latest)
  44. [![PyPI](https://img.shields.io/pypi/v/olefile.svg)](https://pypi.org/project/olefile/)
  45. [![Say Thanks!](https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg)](https://saythanks.io/to/decalage2)
  46. [olefile](https://www.decalage.info/olefile) is a Python package to parse, read and write
  47. [Microsoft OLE2 files](http://en.wikipedia.org/wiki/Compound_File_Binary_Format)
  48. (also called Structured Storage, Compound File Binary Format or Compound Document File Format),
  49. such as Microsoft Office 97-2003 documents, vbaProject.bin in MS Office 2007+ files, Image Composer
  50. and FlashPix files, Outlook messages, StickyNotes, several Microscopy file formats, McAfee antivirus quarantine files,
  51. etc.
  52. **Quick links:** [Home page](https://www.decalage.info/olefile) -
  53. [Download/Install](http://olefile.readthedocs.io/en/latest/Install.html) -
  54. [Documentation](http://olefile.readthedocs.io/en/latest) -
  55. [Report Issues/Suggestions/Questions](https://github.com/decalage2/olefile/issues) -
  56. [Contact the author](https://www.decalage.info/contact) -
  57. [Repository](https://github.com/decalage2/olefile) -
  58. [Updates on Twitter](https://twitter.com/decalage2)
  59. News
  60. ----
  61. Follow all updates and news on Twitter: <https://twitter.com/decalage2>
  62. - **2023-12-01 v0.47**: now distributed as wheel package, added VT_VECTOR support for properties,
  63. added get_userdefined_properties, fixed bugs in isOleFile and write_sect, improved file closure
  64. - 2018-09-09 v0.46: OleFileIO can now be used as a context manager
  65. (with...as), to close the file automatically
  66. (see [doc](https://olefile.readthedocs.io/en/latest/Howto.html#open-an-ole-file-from-disk)).
  67. Improved handling of malformed files, fixed several bugs.
  68. - 2018-01-24 v0.45: olefile can now overwrite streams of any size, improved handling of malformed files,
  69. fixed several [bugs](https://github.com/decalage2/olefile/milestone/4?closed=1), end of support for Python 2.6 and 3.3.
  70. - 2017-01-06 v0.44: several bugfixes, removed support for Python 2.5 (olefile2),
  71. added support for incomplete streams and incorrect directory entries (to read malformed documents),
  72. added getclsid, improved [documentation](http://olefile.readthedocs.io/en/latest) with API reference.
  73. - 2017-01-04: moved the documentation to [ReadTheDocs](http://olefile.readthedocs.io/en/latest)
  74. - 2016-05-20: moved olefile repository to [GitHub](https://github.com/decalage2/olefile)
  75. - 2016-02-02 v0.43: fixed issues [#26](https://github.com/decalage2/olefile/issues/26)
  76. and [#27](https://github.com/decalage2/olefile/issues/27),
  77. better handling of malformed files, use python logging.
  78. - see [changelog](https://github.com/decalage2/olefile/blob/master/CHANGELOG.md) for more detailed information and
  79. the latest changes.
  80. Download/Install
  81. ----------------
  82. If you have pip or setuptools installed (pip is included in Python 2.7.9+), you may simply run **pip install olefile**
  83. or **easy_install olefile** for the first installation.
  84. To update olefile, run **pip install -U olefile**.
  85. Otherwise, see http://olefile.readthedocs.io/en/latest/Install.html
  86. Features
  87. --------
  88. - Parse, read and write any OLE file such as Microsoft Office 97-2003 legacy document formats (Word .doc, Excel .xls,
  89. PowerPoint .ppt, Visio .vsd, Project .mpp), MSI files, Image Composer and FlashPix files, Outlook messages, StickyNotes,
  90. Zeiss AxioVision ZVI files, Olympus FluoView OIB files, etc
  91. - List all the streams and storages contained in an OLE file
  92. - Open streams as files
  93. - Parse and read property streams, containing metadata of the file
  94. - Portable, pure Python module, no dependency
  95. olefile can be used as an independent package or with PIL/Pillow.
  96. olefile is mostly meant for developers. If you are looking for tools to analyze OLE files or to extract data (especially
  97. for security purposes such as malware analysis and forensics), then please also check my
  98. [python-oletools](https://www.decalage.info/python/oletools), which are built upon olefile and provide a higher-level interface.
  99. Documentation
  100. -------------
  101. Please see the [online documentation](http://olefile.readthedocs.io/en/latest) for more information.
  102. ## Real-life examples ##
  103. A real-life example: [using OleFileIO_PL for malware analysis and forensics](http://blog.gregback.net/2011/03/using-remnux-for-forensic-puzzle-6/).
  104. See 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.
  105. License
  106. -------
  107. olefile (formerly OleFileIO_PL) is copyright (c) 2005-2023 Philippe Lagadec
  108. ([https://www.decalage.info](https://www.decalage.info))
  109. All rights reserved.
  110. Redistribution and use in source and binary forms, with or without modification,
  111. are permitted provided that the following conditions are met:
  112. * Redistributions of source code must retain the above copyright notice, this
  113. list of conditions and the following disclaimer.
  114. * Redistributions in binary form must reproduce the above copyright notice,
  115. this list of conditions and the following disclaimer in the documentation
  116. and/or other materials provided with the distribution.
  117. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  118. ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  119. WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  120. DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  121. FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  122. DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  123. SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  124. CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  125. OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  126. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  127. ----------
  128. olefile is based on source code from the OleFileIO module of the Python Imaging Library (PIL) published by Fredrik
  129. Lundh under the following license:
  130. The Python Imaging Library (PIL) is
  131. - Copyright (c) 1997-2009 by Secret Labs AB
  132. - Copyright (c) 1995-2009 by Fredrik Lundh
  133. By obtaining, using, and/or copying this software and/or its associated documentation, you agree that you have read,
  134. understood, and will comply with the following terms and conditions:
  135. Permission to use, copy, modify, and distribute this software and its associated documentation for any purpose and
  136. without fee is hereby granted, provided that the above copyright notice appears in all copies, and that both that
  137. copyright notice and this permission notice appear in supporting documentation, and that the name of Secret Labs AB or
  138. the author not be used in advertising or publicity pertaining to distribution of the software without specific, written
  139. prior permission.
  140. SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
  141. OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  142. CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
  143. CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  144. SOFTWARE.