[Python-modules-commits] [python-olefile] 01/08: import python-olefile_0.43.orig.tar.gz

Marcos Fouces mfouces-guest at moszumanska.debian.org
Tue Nov 29 22:16:28 UTC 2016


This is an automated email from the git hooks/post-receive script.

mfouces-guest pushed a commit to branch master
in repository python-olefile.

commit f6ef91330069e7ae6b58de886853a6465298430e
Author: Marcos Fouces <mfouces at yahoo.es>
Date:   Mon Nov 28 23:54:24 2016 +0100

    import python-olefile_0.43.orig.tar.gz
---
 OleFileIO_PL.py                |   37 +
 PKG-INFO                       |  250 +++++
 README.md                      |  183 +++
 install.bat                    |   93 ++
 olefile/CONTRIBUTORS.txt       |   17 +
 olefile/LICENSE.txt            |   56 +
 olefile/README.html            |   81 ++
 olefile/README.rst             |  226 ++++
 olefile/__init__.py            |   35 +
 olefile/doc/API.html           |  212 ++++
 olefile/doc/API.md             |  320 ++++++
 olefile/doc/Contribute.html    |   19 +
 olefile/doc/Contribute.md      |   28 +
 olefile/doc/Home.html          |   80 ++
 olefile/doc/Home.md            |   94 ++
 olefile/doc/Install.html       |   27 +
 olefile/doc/Install.md         |   37 +
 olefile/doc/License.html       |   46 +
 olefile/doc/License.md         |   54 +
 olefile/doc/OLE_Overview.html  |   22 +
 olefile/doc/OLE_Overview.md    |   29 +
 olefile/doc/OLE_VBA_sample.png |  Bin 0 -> 3568 bytes
 olefile/olefile.html           |  432 ++++++++
 olefile/olefile.py             | 2403 ++++++++++++++++++++++++++++++++++++++++
 olefile/olefile2.html          |  241 ++++
 olefile/olefile2.py            | 2043 ++++++++++++++++++++++++++++++++++
 setup.py                       |  274 +++++
 27 files changed, 7339 insertions(+)

diff --git a/OleFileIO_PL.py b/OleFileIO_PL.py
new file mode 100644
index 0000000..6070b37
--- /dev/null
+++ b/OleFileIO_PL.py
@@ -0,0 +1,37 @@
+#!/usr/local/bin/python
+# -*- coding: latin-1 -*-
+"""
+olefile (formerly OleFileIO_PL)
+
+Module to read/write Microsoft OLE2 files (also called Structured Storage or
+Microsoft Compound Document File Format), such as Microsoft Office 97-2003
+documents, Image Composer and FlashPix files, Outlook messages, ...
+This version is compatible with Python 2.6+ and 3.x
+
+Project website: http://www.decalage.info/olefile
+
+olefile is copyright (c) 2005-2016 Philippe Lagadec (http://www.decalage.info)
+
+olefile is based on the OleFileIO module from the PIL library v1.1.6
+See: http://www.pythonware.com/products/pil/index.htm
+
+The Python Imaging Library (PIL) is
+    Copyright (c) 1997-2005 by Secret Labs AB
+    Copyright (c) 1995-2005 by Fredrik Lundh
+
+See source code and LICENSE.txt for information on usage and redistribution.
+"""
+
+# The OleFileIO_PL module is for backward compatibility
+
+try:
+    # first try to import olefile for Python 2.6+/3.x
+    from olefile.olefile import *
+    # import metadata not covered by *:
+    from olefile.olefile import __version__, __author__, __date__
+
+except:
+    # if it fails, fallback to the old version olefile2 for Python 2.x:
+    from olefile.olefile2 import *
+    # import metadata not covered by *:
+    from olefile.olefile2 import __doc__, __version__, __author__, __date__
diff --git a/PKG-INFO b/PKG-INFO
new file mode 100644
index 0000000..0b9a8a1
--- /dev/null
+++ b/PKG-INFO
@@ -0,0 +1,250 @@
+Metadata-Version: 1.1
+Name: olefile
+Version: 0.43
+Summary: Python package to parse, read and write Microsoft OLE2 files (Structured Storage or Compound Document, Microsoft Office) - Improved version of the OleFileIO module from PIL, the Python Image Library.
+Home-page: http://www.decalage.info/python/olefileio
+Author: Philippe Lagadec
+Author-email: http://www.decalage.info/contact
+License: BSD
+Download-URL: https://bitbucket.org/decalage/olefileio_pl/downloads
+Description: olefile (formerly OleFileIO\_PL)
+        ================================
+        
+        `olefile <http://www.decalage.info/olefile>`__ is a Python package to
+        parse, read and write `Microsoft OLE2
+        files <http://en.wikipedia.org/wiki/Compound_File_Binary_Format>`__
+        (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.
+        
+        **Quick links:** `Home page <http://www.decalage.info/olefile>`__ -
+        `Download/Install <https://bitbucket.org/decalage/olefileio_pl/wiki/Install>`__
+        - `Documentation <https://bitbucket.org/decalage/olefileio_pl/wiki>`__ -
+        `Report
+        Issues/Suggestions/Questions <https://bitbucket.org/decalage/olefileio_pl/issues?status=new&status=open>`__
+        - `Contact the author <http://decalage.info/contact>`__ -
+        `Repository <https://bitbucket.org/decalage/olefileio_pl>`__ - `Updates
+        on Twitter <https://twitter.com/decalage2>`__
+        
+        News
+        ----
+        
+        Follow all updates and news on Twitter: https://twitter.com/decalage2
+        
+        -  **2016-02-02 v0.43**: fixed issues
+           `#26 <https://bitbucket.org/decalage/olefileio_pl/issues/26/variable-referenced-before-assignment>`__
+           and
+           `#27 <https://bitbucket.org/decalage/olefileio_pl/issues/27/incomplete-ole-stream-incorrect-ole-fat>`__,
+           better handling of malformed files, use python logging.
+        -  2015-01-25 v0.42: improved handling of special characters in
+           stream/storage names on Python 2.x (using UTF-8 instead of Latin-1),
+           fixed bug in listdir with empty storages.
+        -  2014-11-25 v0.41: OleFileIO.open and isOleFile now support OLE files
+           stored in byte strings, fixed installer for python 3, added support
+           for Jython (Niko Ehrenfeuchter)
+        -  2014-10-01 v0.40: renamed OleFileIO\_PL to olefile, added initial
+           write support for streams >4K, updated doc and license, improved the
+           setup script.
+        -  2014-07-27 v0.31: fixed support for large files with 4K sectors,
+           thanks to Niko Ehrenfeuchter, Martijn Berger and Dave Jones. Added
+           test scripts from Pillow (by hugovk). Fixed setup for Python 3
+           (Martin Panter)
+        -  2014-02-04 v0.30: now compatible with Python 3.x, thanks to Martin
+           Panter who did most of the hard work.
+        -  2013-07-24 v0.26: added methods to parse stream/storage timestamps,
+           improved listdir to include storages, fixed parsing of direntry
+           timestamps
+        -  2013-05-27 v0.25: improved metadata extraction, properties parsing
+           and exception handling, fixed `issue
+           #12 <https://bitbucket.org/decalage/olefileio_pl/issue/12/error-when-converting-timestamps-in-ole>`__
+        -  2013-05-07 v0.24: new features to extract metadata (get\_metadata
+           method and OleMetadata class), improved getproperties to convert
+           timestamps to Python datetime
+        -  2012-10-09: published
+           `python-oletools <http://www.decalage.info/python/oletools>`__, a
+           package of analysis tools based on OleFileIO\_PL
+        -  2012-09-11 v0.23: added support for file-like objects, fixed `issue
+           #8 <https://bitbucket.org/decalage/olefileio_pl/issue/8/bug-with-file-object>`__
+        -  2012-02-17 v0.22: fixed issues #7 (bug in getproperties) and #2
+           (added close method)
+        -  2011-10-20: code hosted on bitbucket to ease contributions and bug
+           tracking
+        -  2010-01-24 v0.21: fixed support for big-endian CPUs, such as PowerPC
+           Macs.
+        -  2009-12-11 v0.20: small bugfix in OleFileIO.open when filename is not
+           plain str.
+        -  2009-12-10 v0.19: fixed support for 64 bits platforms (thanks to Ben
+           G. and Martijn for reporting the bug)
+        -  see changelog in source code for more info.
+        
+        Download/Install
+        ----------------
+        
+        If you have pip or setuptools installed (pip is included in Python
+        2.7.9+), you may simply run **pip install olefile** or **easy\_install
+        olefile** for the first installation.
+        
+        To update olefile, run **pip install -U olefile**.
+        
+        Otherwise, see https://bitbucket.org/decalage/olefileio\_pl/wiki/Install
+        
+        Features
+        --------
+        
+        -  Parse, read and write any OLE file such as Microsoft Office 97-2003
+           legacy document formats (Word .doc, Excel .xls, PowerPoint .ppt,
+           Visio .vsd, Project .mpp), Image Composer and FlashPix files, Outlook
+           messages, StickyNotes, Zeiss AxioVision ZVI files, Olympus FluoView
+           OIB files, etc
+        -  List all the streams and storages contained in an OLE file
+        -  Open streams as files
+        -  Parse and read property streams, containing metadata of the file
+        -  Portable, pure Python module, no dependency
+        
+        olefile can be used as an independent package or with PIL/Pillow.
+        
+        olefile is mostly meant for developers. If you are looking for tools to
+        analyze OLE files or to extract data (especially for security purposes
+        such as malware analysis and forensics), then please also check my
+        `python-oletools <http://www.decalage.info/python/oletools>`__, which
+        are built upon olefile and provide a higher-level interface.
+        
+        History
+        -------
+        
+        olefile is based on the OleFileIO module from
+        `PIL <http://www.pythonware.com/products/pil/index.htm>`__, the
+        excellent Python Imaging Library, created and maintained by Fredrik
+        Lundh. The olefile API is still compatible with PIL, but since 2005 I
+        have improved the internal implementation significantly, with new
+        features, bugfixes and a more robust design. From 2005 to 2014 the
+        project was called OleFileIO\_PL, and in 2014 I changed its name to
+        olefile to celebrate its 9 years and its new write features.
+        
+        As far as I know, olefile is the most complete and robust Python
+        implementation to read MS OLE2 files, portable on several operating
+        systems. (please tell me if you know other similar Python modules)
+        
+        Since 2014 olefile/OleFileIO\_PL has been integrated into
+        `Pillow <http://python-imaging.github.io/>`__, the friendly fork of PIL.
+        olefile will continue to be improved as a separate project, and new
+        versions will be merged into Pillow regularly.
+        
+        Main improvements over the original version of OleFileIO in PIL:
+        ----------------------------------------------------------------
+        
+        -  Compatible with Python 3.x and 2.6+
+        -  Many bug fixes
+        -  Support for files larger than 6.8MB
+        -  Support for 64 bits platforms and big-endian CPUs
+        -  Robust: many checks to detect malformed files
+        -  Runtime option to choose if malformed files should be parsed or raise
+           exceptions
+        -  Improved API
+        -  Metadata extraction, stream/storage timestamps (e.g. for document
+           forensics)
+        -  Can open file-like objects
+        -  Added setup.py and install.bat to ease installation
+        -  More convenient slash-based syntax for stream paths
+        -  Write features
+        
+        Documentation
+        -------------
+        
+        Please see the `online
+        documentation <https://bitbucket.org/decalage/olefileio_pl/wiki>`__ for
+        more information, especially the `OLE
+        overview <https://bitbucket.org/decalage/olefileio_pl/wiki/OLE_Overview>`__
+        and the `API
+        page <https://bitbucket.org/decalage/olefileio_pl/wiki/API>`__ which
+        describe how to use olefile in Python applications. A copy of the same
+        documentation is also provided in the doc subfolder of the olefile
+        package.
+        
+        Real-life examples
+        ------------------
+        
+        A real-life example: `using OleFileIO\_PL for malware analysis and
+        forensics <http://blog.gregback.net/2011/03/using-remnux-for-forensic-puzzle-6/>`__.
+        
+        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.
+        
+        License
+        -------
+        
+        olefile (formerly OleFileIO\_PL) is copyright (c) 2005-2016 Philippe
+        Lagadec (http://www.decalage.info)
+        
+        All rights reserved.
+        
+        Redistribution and use in source and binary forms, with or without
+        modification, are permitted provided that the following conditions are
+        met:
+        
+        -  Redistributions of source code must retain the above copyright
+           notice, this list of conditions and the following disclaimer.
+        -  Redistributions in binary form must reproduce the above copyright
+           notice, this list of conditions and the following disclaimer in the
+           documentation and/or other materials provided with the distribution.
+        
+        THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+        IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+        TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+        PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+        HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+        SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
+        TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+        PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+        LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+        NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+        SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+        
+        --------------
+        
+        olefile is based on source code from the OleFileIO module of the Python
+        Imaging Library (PIL) published by Fredrik Lundh under the following
+        license:
+        
+        The Python Imaging Library (PIL) is
+        
+        -  Copyright (c) 1997-2005 by Secret Labs AB
+        -  Copyright (c) 1995-2005 by Fredrik Lundh
+        
+        By obtaining, using, and/or copying this software and/or its associated
+        documentation, you agree that you have read, understood, and will comply
+        with the following terms and conditions:
+        
+        Permission to use, copy, modify, and distribute this software and its
+        associated documentation for any purpose and without fee is hereby
+        granted, provided that the above copyright notice appears in all copies,
+        and that both that copyright notice and this permission notice appear in
+        supporting documentation, and that the name of Secret Labs AB or the
+        author not be used in advertising or publicity pertaining to
+        distribution of the software without specific, written prior permission.
+        
+        SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO
+        THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
+        FITNESS. IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR BE LIABLE FOR
+        ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
+        RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
+        CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
+        CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+        
+Platform: UNKNOWN
+Classifier: Development Status :: 4 - Beta
+Classifier: Intended Audience :: Developers
+Classifier: Intended Audience :: Information Technology
+Classifier: Intended Audience :: Science/Research
+Classifier: Intended Audience :: System Administrators
+Classifier: License :: OSI Approved :: BSD License
+Classifier: Operating System :: OS Independent
+Classifier: Programming Language :: Python
+Classifier: Programming Language :: Python :: 2
+Classifier: Programming Language :: Python :: 2.6
+Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3
+Classifier: Topic :: Software Development :: Libraries :: Python Modules
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..bcbb830
--- /dev/null
+++ b/README.md
@@ -0,0 +1,183 @@
+olefile (formerly OleFileIO_PL)
+===============================
+
+[olefile](http://www.decalage.info/olefile) is a Python package to parse, read and write 
+[Microsoft OLE2 files](http://en.wikipedia.org/wiki/Compound_File_Binary_Format)
+(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.
+  
+
+**Quick links:** [Home page](http://www.decalage.info/olefile) - 
+[Download/Install](https://bitbucket.org/decalage/olefileio_pl/wiki/Install) - 
+[Documentation](https://bitbucket.org/decalage/olefileio_pl/wiki) - 
+[Report Issues/Suggestions/Questions](https://bitbucket.org/decalage/olefileio_pl/issues?status=new&status=open) - 
+[Contact the author](http://decalage.info/contact) - 
+[Repository](https://bitbucket.org/decalage/olefileio_pl) - 
+[Updates on Twitter](https://twitter.com/decalage2)
+
+
+News
+----
+
+Follow all updates and news on Twitter: <https://twitter.com/decalage2>
+
+- **2016-02-02 v0.43**: fixed issues [#26](https://bitbucket.org/decalage/olefileio_pl/issues/26/variable-referenced-before-assignment)
+    and [#27](https://bitbucket.org/decalage/olefileio_pl/issues/27/incomplete-ole-stream-incorrect-ole-fat),
+    better handling of malformed files, use python logging.
+- 2015-01-25 v0.42: improved handling of special characters in stream/storage names on Python 2.x (using UTF-8
+    instead of Latin-1), fixed bug in listdir with empty storages.
+- 2014-11-25 v0.41: OleFileIO.open and isOleFile now support OLE files stored in byte strings, fixed installer for 
+    python 3, added support for Jython (Niko Ehrenfeuchter)
+- 2014-10-01 v0.40: renamed OleFileIO_PL to olefile, added initial write support for streams >4K, updated doc and 
+    license, improved the setup script.
+- 2014-07-27 v0.31: fixed support for large files with 4K sectors, thanks to Niko Ehrenfeuchter, Martijn Berger and 
+    Dave Jones. Added test scripts from Pillow (by hugovk). Fixed setup for Python 3 (Martin Panter)
+- 2014-02-04 v0.30: now compatible with Python 3.x, thanks to Martin Panter who did most of the hard work.
+- 2013-07-24 v0.26: added methods to parse stream/storage timestamps, improved listdir to include storages, fixed 
+    parsing of direntry timestamps
+- 2013-05-27 v0.25: improved metadata extraction, properties parsing and exception handling, fixed 
+    [issue #12](https://bitbucket.org/decalage/olefileio_pl/issue/12/error-when-converting-timestamps-in-ole)
+- 2013-05-07 v0.24: new features to extract metadata (get\_metadata method and OleMetadata class), improved 
+    getproperties to convert timestamps to Python datetime
+- 2012-10-09: published [python-oletools](http://www.decalage.info/python/oletools), a package of analysis tools based 
+    on OleFileIO_PL
+- 2012-09-11 v0.23: added support for file-like objects, fixed [issue #8](https://bitbucket.org/decalage/olefileio_pl/issue/8/bug-with-file-object)
+- 2012-02-17 v0.22: fixed issues #7 (bug in getproperties) and #2 (added close method)
+- 2011-10-20: code hosted on bitbucket to ease contributions and bug tracking
+- 2010-01-24 v0.21: fixed support for big-endian CPUs, such as PowerPC Macs.
+- 2009-12-11 v0.20: small bugfix in OleFileIO.open when filename is not plain str.
+- 2009-12-10 v0.19: fixed support for 64 bits platforms (thanks to Ben G. and Martijn for reporting the bug)
+- see changelog in source code for more info.
+
+Download/Install
+----------------
+
+If you have pip or setuptools installed (pip is included in Python 2.7.9+), you may simply run **pip install olefile** 
+or **easy_install olefile** for the first installation.
+ 
+To update olefile, run **pip install -U olefile**.
+ 
+Otherwise, see https://bitbucket.org/decalage/olefileio_pl/wiki/Install
+
+Features
+--------
+
+- Parse, read and write any OLE file such as Microsoft Office 97-2003 legacy document formats (Word .doc, Excel .xls, 
+    PowerPoint .ppt, Visio .vsd, Project .mpp), Image Composer and FlashPix files, Outlook messages, StickyNotes, 
+    Zeiss AxioVision ZVI files, Olympus FluoView OIB files, etc
+- List all the streams and storages contained in an OLE file
+- Open streams as files
+- Parse and read property streams, containing metadata of the file
+- Portable, pure Python module, no dependency
+
+olefile can be used as an independent package or with PIL/Pillow. 
+
+olefile is mostly meant for developers. If you are looking for tools to analyze OLE files or to extract data (especially 
+for security purposes such as malware analysis and forensics), then please also check my 
+[python-oletools](http://www.decalage.info/python/oletools), which are built upon olefile and provide a higher-level interface.
+
+
+History
+-------
+
+olefile is based on the OleFileIO module from [PIL](http://www.pythonware.com/products/pil/index.htm), the excellent 
+Python Imaging Library, created and maintained by Fredrik Lundh. The olefile API is still compatible with PIL, but 
+since 2005 I have improved the internal implementation significantly, with new features, bugfixes and a more robust 
+design. From 2005 to 2014 the project was called OleFileIO_PL, and in 2014 I changed its name to olefile to celebrate 
+its 9 years and its new write features. 
+
+As far as I know, olefile is the most complete and robust Python implementation to read MS OLE2 files, portable on 
+several operating systems. (please tell me if you know other similar Python modules)
+
+Since 2014 olefile/OleFileIO_PL has been integrated into [Pillow](http://python-imaging.github.io/), the friendly fork 
+of PIL. olefile will continue to be improved as a separate project, and new versions will be merged into Pillow 
+regularly.
+
+
+Main improvements over the original version of OleFileIO in PIL:
+----------------------------------------------------------------
+
+- Compatible with Python 3.x and 2.6+
+- Many bug fixes
+- Support for files larger than 6.8MB
+- Support for 64 bits platforms and big-endian CPUs
+- Robust: many checks to detect malformed files
+- Runtime option to choose if malformed files should be parsed or raise exceptions
+- Improved API
+- Metadata extraction, stream/storage timestamps (e.g. for document forensics)
+- Can open file-like objects
+- Added setup.py and install.bat to ease installation
+- More convenient slash-based syntax for stream paths
+- Write features
+
+Documentation
+-------------
+
+Please see the [online documentation](https://bitbucket.org/decalage/olefileio_pl/wiki) for more information, 
+especially the [OLE overview](https://bitbucket.org/decalage/olefileio_pl/wiki/OLE_Overview) and the 
+[API page](https://bitbucket.org/decalage/olefileio_pl/wiki/API) which describe how to use olefile in Python applications. 
+A copy of the same documentation is also provided in the doc subfolder of the olefile package.
+
+
+## Real-life examples ##
+
+A real-life example: [using OleFileIO_PL for malware analysis and forensics](http://blog.gregback.net/2011/03/using-remnux-for-forensic-puzzle-6/).
+
+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.
+
+
+License
+-------
+
+olefile (formerly OleFileIO_PL) is copyright (c) 2005-2016 Philippe Lagadec
+([http://www.decalage.info](http://www.decalage.info))
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice, this
+   list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+   this list of conditions and the following disclaimer in the documentation
+   and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+----------
+
+olefile is based on source code from the OleFileIO module of the Python Imaging Library (PIL) published by Fredrik 
+Lundh under the following license:
+
+The Python Imaging Library (PIL) is
+
+- Copyright (c) 1997-2005 by Secret Labs AB
+- Copyright (c) 1995-2005 by Fredrik Lundh
+
+By obtaining, using, and/or copying this software and/or its associated documentation, you agree that you have read, 
+understood, and will comply with the following terms and conditions:
+
+Permission to use, copy, modify, and distribute this software and its associated documentation for any purpose and 
+without fee is hereby granted, provided that the above copyright notice appears in all copies, and that both that 
+copyright notice and this permission notice appear in supporting documentation, and that the name of Secret Labs AB or 
+the author not be used in advertising or publicity pertaining to distribution of the software without specific, written 
+prior permission.
+
+SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES 
+OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR 
+CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF 
+CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 
+SOFTWARE.
diff --git a/install.bat b/install.bat
new file mode 100644
index 0000000..8bb8509
--- /dev/null
+++ b/install.bat
@@ -0,0 +1,93 @@
+ at echo off
+rem INSTALL.BAT - Easy installer for Python modules on Windows
+
+rem version 0.03 2013-05-07 Philippe Lagadec - http://www.decalage.info
+
+rem License: 
+rem This file install.bat can freely used, modified and redistributed, as 
+rem long as credit to the author is kept intact. Please send any feedback,
+rem issues or improvements to decalage at laposte.net.
+
+rem CHANGELOG:
+rem 2007-09-04 v0.01 PL: - first version, for Python 2.3 to 2.5
+rem 2009-02-27 v0.02 PL: - added support for Python 2.6
+rem 2013-05-07 v0.03 PL: - added support for Python 2.7
+
+rem 1) test if python.exe is in the path:
+
+python.exe --version >NUL 2>&1
+if errorlevel 1 goto notpath
+echo Python.exe found in the path.
+python setup.py install
+if errorlevel 1 goto error
+goto end
+:NOTPATH
+
+rem 2) test for usual python.exe paths:
+
+REM Python 2.7: 
+c:\python27\python.exe --version >NUL 2>&1
+if errorlevel 1 goto notpy27
+echo Python.exe found in C:\Python27
+c:\python27\python.exe setup.py install
+if errorlevel 1 goto error
+goto end 
+:NOTPY27
+
+REM Python 2.6: 
+c:\python26\python.exe --version >NUL 2>&1
+if errorlevel 1 goto notpy26
+echo Python.exe found in C:\Python26
+c:\python26\python.exe setup.py install
+if errorlevel 1 goto error
+goto end 
+:NOTPY26
+
+c:\python25\python.exe --version >NUL 2>&1
+if errorlevel 1 goto notpy25
+echo Python.exe found in C:\Python25
+c:\python25\python.exe setup.py install
+if errorlevel 1 goto error
+goto end 
+:NOTPY25
+
+c:\python24\python.exe --version >NUL 2>&1
+if errorlevel 1 goto notpy24
+echo Python.exe found in C:\Python24
+c:\python24\python.exe setup.py install
+if errorlevel 1 goto error
+goto end 
+:NOTPY24
+
+c:\python23\python.exe --version >NUL 2>&1
+if errorlevel 1 goto notpy23
+echo Python.exe found in C:\Python23
+c:\python23\python.exe setup.py install
+if errorlevel 1 goto error
+goto end 
+:NOTPY23
+
+"c:\program files\python\python.exe" --version >NUL 2>&1
+if errorlevel 1 goto notpf
+echo Python.exe found in C:\Program Files\Python
+"c:\program files\python\python.exe" setup.py install
+if errorlevel 1 goto error
+goto end 
+:NOTPF
+
+rem 3) last we just try to launch the script, if .py is associated to python.exe
+echo Python.exe not found, trying to launch setup.py directly.
+setup.py install
+if errorlevel 1 goto error
+goto end
+
+:ERROR
+echo.
+echo If the installation is not successful, try to run "python setup.py install"
+echo or simply "setup.py install" in the script directory.
+echo You can also copy files by hand in the site-package directory of your
+echo Python directory.
+REM pause
+
+:END
+pause
diff --git a/olefile/CONTRIBUTORS.txt b/olefile/CONTRIBUTORS.txt
new file mode 100644
index 0000000..32db267
--- /dev/null
+++ b/olefile/CONTRIBUTORS.txt
@@ -0,0 +1,17 @@
+CONTRIBUTORS for the olefile project
+====================================
+
+This is a non-exhaustive list of all the people who helped me improve the 
+olefile project (formerly OleFileIO_PL), in approximative chronological order.
+Please contact me if I forgot to mention your name.
+
+A big thank you to all of them:
+
+- Niko Ehrenfeuchter: added support for Jython
+- Niko Ehrenfeuchter, Martijn Berger and Dave Jones: helped fix 4K sector support
+- Martin Panter: conversion to Python 3.x/2.6+
+- mete0r_kr: added support for file-like objects
+- chuckleberryfinn: fixed bug in getproperties
+- Martijn, Ben G.: bug report for 64 bits platforms
+- Philippe Lagadec: main author and maintainer since 2005
+- and of course Fredrik Lundh: original author of OleFileIO from 1995 to 2005
diff --git a/olefile/LICENSE.txt b/olefile/LICENSE.txt
new file mode 100644
index 0000000..506a3d7
--- /dev/null
+++ b/olefile/LICENSE.txt
@@ -0,0 +1,56 @@
+LICENSE for the olefile package:
+
+olefile (formerly OleFileIO_PL) is copyright (c) 2005-2016 Philippe Lagadec
+(http://www.decalage.info)
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice, this
+   list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+   this list of conditions and the following disclaimer in the documentation
+   and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+----------
+
+olefile is based on source code from the OleFileIO module of the Python
+Imaging Library (PIL) published by Fredrik Lundh under the following license:
+
+The Python Imaging Library (PIL) is
+- Copyright (c) 1997-2005 by Secret Labs AB
+- Copyright (c) 1995-2005 by Fredrik Lundh
+
+By obtaining, using, and/or copying this software and/or its associated 
+documentation, you agree that you have read, understood, and will comply with 
+the following terms and conditions:
+
+Permission to use, copy, modify, and distribute this software and its 
+associated documentation for any purpose and without fee is hereby granted, 
+provided that the above copyright notice appears in all copies, and that both 
+that copyright notice and this permission notice appear in supporting 
+documentation, and that the name of Secret Labs AB or the author not be used 
+in advertising or publicity pertaining to distribution of the software without 
+specific, written prior permission.
+
+SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS 
+SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN 
+NO EVENT SHALL SECRET LABS AB OR THE AUTHOR BE LIABLE FOR ANY SPECIAL, 
+INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 
+OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 
+PERFORMANCE OF THIS SOFTWARE.
diff --git a/olefile/README.html b/olefile/README.html
new file mode 100644
index 0000000..74d95ac
--- /dev/null
+++ b/olefile/README.html
@@ -0,0 +1,81 @@
+<h1 id="olefile-formerly-olefileio_pl">olefile (formerly OleFileIO_PL)</h1>
+<p><a href="http://www.decalage.info/olefile">olefile</a> is a Python package to parse, read and write <a href="http://en.wikipedia.org/wiki/Compound_File_Binary_Format">Microsoft OLE2 files</a> (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  [...]
+<p><strong>Quick links:</strong> <a href="http://www.decalage.info/olefile">Home page</a> - <a href="https://bitbucket.org/decalage/olefileio_pl/wiki/Install">Download/Install</a> - <a href="https://bitbucket.org/decalage/olefileio_pl/wiki">Documentation</a> - <a href="https://bitbucket.org/decalage/olefileio_pl/issues?status=new&status=open">Report Issues/Suggestions/Questions</a> - <a href="http://decalage.info/contact">Contact the author</a> - <a href="https://bitbucket.org/decala [...]
+<h2 id="news">News</h2>
+<p>Follow all updates and news on Twitter: <a href="https://twitter.com/decalage2">https://twitter.com/decalage2</a></p>
+<ul>
+<li><strong>2016-02-02 v0.43</strong>: fixed issues <a href="https://bitbucket.org/decalage/olefileio_pl/issues/26/variable-referenced-before-assignment">#26</a> and <a href="https://bitbucket.org/decalage/olefileio_pl/issues/27/incomplete-ole-stream-incorrect-ole-fat">#27</a>, better handling of malformed files, use python logging.</li>
+<li>2015-01-25 v0.42: improved handling of special characters in stream/storage names on Python 2.x (using UTF-8 instead of Latin-1), fixed bug in listdir with empty storages.</li>
+<li>2014-11-25 v0.41: OleFileIO.open and isOleFile now support OLE files stored in byte strings, fixed installer for python 3, added support for Jython (Niko Ehrenfeuchter)</li>
+<li>2014-10-01 v0.40: renamed OleFileIO_PL to olefile, added initial write support for streams >4K, updated doc and license, improved the setup script.</li>
+<li>2014-07-27 v0.31: fixed support for large files with 4K sectors, thanks to Niko Ehrenfeuchter, Martijn Berger and Dave Jones. Added test scripts from Pillow (by hugovk). Fixed setup for Python 3 (Martin Panter)</li>
+<li>2014-02-04 v0.30: now compatible with Python 3.x, thanks to Martin Panter who did most of the hard work.</li>
+<li>2013-07-24 v0.26: added methods to parse stream/storage timestamps, improved listdir to include storages, fixed parsing of direntry timestamps</li>
+<li>2013-05-27 v0.25: improved metadata extraction, properties parsing and exception handling, fixed <a href="https://bitbucket.org/decalage/olefileio_pl/issue/12/error-when-converting-timestamps-in-ole">issue #12</a></li>
+<li>2013-05-07 v0.24: new features to extract metadata (get_metadata method and OleMetadata class), improved getproperties to convert timestamps to Python datetime</li>
+<li>2012-10-09: published <a href="http://www.decalage.info/python/oletools">python-oletools</a>, a package of analysis tools based on OleFileIO_PL</li>
+<li>2012-09-11 v0.23: added support for file-like objects, fixed <a href="https://bitbucket.org/decalage/olefileio_pl/issue/8/bug-with-file-object">issue #8</a></li>
+<li>2012-02-17 v0.22: fixed issues #7 (bug in getproperties) and #2 (added close method)</li>
+<li>2011-10-20: code hosted on bitbucket to ease contributions and bug tracking</li>
+<li>2010-01-24 v0.21: fixed support for big-endian CPUs, such as PowerPC Macs.</li>
+<li>2009-12-11 v0.20: small bugfix in OleFileIO.open when filename is not plain str.</li>
+<li>2009-12-10 v0.19: fixed support for 64 bits platforms (thanks to Ben G. and Martijn for reporting the bug)</li>
+<li>see changelog in source code for more info.</li>
+</ul>
+<h2 id="downloadinstall">Download/Install</h2>
+<p>If you have pip or setuptools installed (pip is included in Python 2.7.9+), you may simply run <strong>pip install olefile</strong> or <strong>easy_install olefile</strong> for the first installation.</p>
+<p>To update olefile, run <strong>pip install -U olefile</strong>.</p>
+<p>Otherwise, see https://bitbucket.org/decalage/olefileio_pl/wiki/Install</p>
+<h2 id="features">Features</h2>
+<ul>
+<li>Parse, read and write any OLE file such as Microsoft Office 97-2003 legacy document formats (Word .doc, Excel .xls, PowerPoint .ppt, Visio .vsd, Project .mpp), Image Composer and FlashPix files, Outlook messages, StickyNotes, Zeiss AxioVision ZVI files, Olympus FluoView OIB files, etc</li>
+<li>List all the streams and storages contained in an OLE file</li>
+<li>Open streams as files</li>
+<li>Parse and read property streams, containing metadata of the file</li>
+<li>Portable, pure Python module, no dependency</li>
+</ul>
+<p>olefile can be used as an independent package or with PIL/Pillow.</p>
+<p>olefile is mostly meant for developers. If you are looking for tools to analyze OLE files or to extract data (especially for security purposes such as malware analysis and forensics), then please also check my <a href="http://www.decalage.info/python/oletools">python-oletools</a>, which are built upon olefile and provide a higher-level interface.</p>
+<h2 id="history">History</h2>
+<p>olefile is based on the OleFileIO module from <a href="http://www.pythonware.com/products/pil/index.htm">PIL</a>, the excellent Python Imaging Library, created and maintained by Fredrik Lundh. The olefile API is still compatible with PIL, but since 2005 I have improved the internal implementation significantly, with new features, bugfixes and a more robust design. From 2005 to 2014 the project was called OleFileIO_PL, and in 2014 I changed its name to olefile to celebrate its 9 years  [...]
+<p>As far as I know, olefile is the most complete and robust Python implementation to read MS OLE2 files, portable on several operating systems. (please tell me if you know other similar Python modules)</p>
+<p>Since 2014 olefile/OleFileIO_PL has been integrated into <a href="http://python-imaging.github.io/">Pillow</a>, the friendly fork of PIL. olefile will continue to be improved as a separate project, and new versions will be merged into Pillow regularly.</p>
+<h2 id="main-improvements-over-the-original-version-of-olefileio-in-pil">Main improvements over the original version of OleFileIO in PIL:</h2>
+<ul>
+<li>Compatible with Python 3.x and 2.6+</li>
+<li>Many bug fixes</li>
+<li>Support for files larger than 6.8MB</li>
+<li>Support for 64 bits platforms and big-endian CPUs</li>
+<li>Robust: many checks to detect malformed files</li>
+<li>Runtime option to choose if malformed files should be parsed or raise exceptions</li>
+<li>Improved API</li>
+<li>Metadata extraction, stream/storage timestamps (e.g. for document forensics)</li>
+<li>Can open file-like objects</li>
+<li>Added setup.py and install.bat to ease installation</li>
+<li>More convenient slash-based syntax for stream paths</li>
+<li>Write features</li>
+</ul>
+<h2 id="documentation">Documentation</h2>
+<p>Please see the <a href="https://bitbucket.org/decalage/olefileio_pl/wiki">online documentation</a> for more information, especially the <a href="https://bitbucket.org/decalage/olefileio_pl/wiki/OLE_Overview">OLE overview</a> and the <a href="https://bitbucket.org/decalage/olefileio_pl/wiki/API">API page</a> which describe how to use olefile in Python applications. A copy of the same documentation is also provided in the doc subfolder of the olefile package.</p>
+<h2 id="real-life-examples">Real-life examples</h2>
+<p>A real-life example: <a href="http://blog.gregback.net/2011/03/using-remnux-for-forensic-puzzle-6/">using OleFileIO_PL for malware analysis and forensics</a>.</p>
+<p>See also <a href="https://computer-forensics.sans.org/community/papers/gcfa/grow-forensic-tools-taxonomy-python-libraries-helpful-forensic-analysis_6879">this paper</a> about python tools for forensics, which features olefile.</p>
+<h2 id="license">License</h2>
+<p>olefile (formerly OleFileIO_PL) is copyright (c) 2005-2016 Philippe Lagadec (<a href="http://www.decalage.info">http://www.decalage.info</a>)</p>
+<p>All rights reserved.</p>
+<p>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</p>
+<ul>
+<li>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</li>
+<li>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</li>
+</ul>
+<p>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,  [...]
+<hr />
+<p>olefile is based on source code from the OleFileIO module of the Python Imaging Library (PIL) published by Fredrik Lundh under the following license:</p>
+<p>The Python Imaging Library (PIL) is</p>
+<ul>
+<li>Copyright (c) 1997-2005 by Secret Labs AB</li>
+<li>Copyright (c) 1995-2005 by Fredrik Lundh</li>
+</ul>
+<p>By obtaining, using, and/or copying this software and/or its associated documentation, you agree that you have read, understood, and will comply with the following terms and conditions:</p>
+<p>Permission to use, copy, modify, and distribute this software and its associated documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appears in all copies, and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of Secret Labs AB or the author not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission.</p>
+<p>SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</p>
diff --git a/olefile/README.rst b/olefile/README.rst
new file mode 100644
index 0000000..04d7775
--- /dev/null
+++ b/olefile/README.rst
@@ -0,0 +1,226 @@
+olefile (formerly OleFileIO\_PL)
+================================
+
+`olefile <http://www.decalage.info/olefile>`__ is a Python package to
+parse, read and write `Microsoft OLE2
+files <http://en.wikipedia.org/wiki/Compound_File_Binary_Format>`__
+(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.
+
+**Quick links:** `Home page <http://www.decalage.info/olefile>`__ -
+`Download/Install <https://bitbucket.org/decalage/olefileio_pl/wiki/Install>`__
+- `Documentation <https://bitbucket.org/decalage/olefileio_pl/wiki>`__ -
+`Report
+Issues/Suggestions/Questions <https://bitbucket.org/decalage/olefileio_pl/issues?status=new&status=open>`__
+- `Contact the author <http://decalage.info/contact>`__ -
+`Repository <https://bitbucket.org/decalage/olefileio_pl>`__ - `Updates
+on Twitter <https://twitter.com/decalage2>`__
+
+News
+----
+
+Follow all updates and news on Twitter: https://twitter.com/decalage2
+
+-  **2016-02-02 v0.43**: fixed issues
+   `#26 <https://bitbucket.org/decalage/olefileio_pl/issues/26/variable-referenced-before-assignment>`__
+   and
+   `#27 <https://bitbucket.org/decalage/olefileio_pl/issues/27/incomplete-ole-stream-incorrect-ole-fat>`__,
+   better handling of malformed files, use python logging.
+-  2015-01-25 v0.42: improved handling of special characters in
+   stream/storage names on Python 2.x (using UTF-8 instead of Latin-1),
+   fixed bug in listdir with empty storages.
+-  2014-11-25 v0.41: OleFileIO.open and isOleFile now support OLE files
+   stored in byte strings, fixed installer for python 3, added support
+   for Jython (Niko Ehrenfeuchter)
+-  2014-10-01 v0.40: renamed OleFileIO\_PL to olefile, added initial
+   write support for streams >4K, updated doc and license, improved the
+   setup script.
+-  2014-07-27 v0.31: fixed support for large files with 4K sectors,
+   thanks to Niko Ehrenfeuchter, Martijn Berger and Dave Jones. Added
+   test scripts from Pillow (by hugovk). Fixed setup for Python 3
+   (Martin Panter)
+-  2014-02-04 v0.30: now compatible with Python 3.x, thanks to Martin
+   Panter who did most of the hard work.
+-  2013-07-24 v0.26: added methods to parse stream/storage timestamps,
+   improved listdir to include storages, fixed parsing of direntry
+   timestamps
+-  2013-05-27 v0.25: improved metadata extraction, properties parsing
+   and exception handling, fixed `issue
+   #12 <https://bitbucket.org/decalage/olefileio_pl/issue/12/error-when-converting-timestamps-in-ole>`__
+-  2013-05-07 v0.24: new features to extract metadata (get\_metadata
+   method and OleMetadata class), improved getproperties to convert
+   timestamps to Python datetime
+-  2012-10-09: published
+   `python-oletools <http://www.decalage.info/python/oletools>`__, a
+   package of analysis tools based on OleFileIO\_PL
+-  2012-09-11 v0.23: added support for file-like objects, fixed `issue
+   #8 <https://bitbucket.org/decalage/olefileio_pl/issue/8/bug-with-file-object>`__
+-  2012-02-17 v0.22: fixed issues #7 (bug in getproperties) and #2
+   (added close method)
+-  2011-10-20: code hosted on bitbucket to ease contributions and bug
+   tracking
+-  2010-01-24 v0.21: fixed support for big-endian CPUs, such as PowerPC
+   Macs.
+-  2009-12-11 v0.20: small bugfix in OleFileIO.open when filename is not
+   plain str.
+-  2009-12-10 v0.19: fixed support for 64 bits platforms (thanks to Ben
+   G. and Martijn for reporting the bug)
+-  see changelog in source code for more info.
+
+Download/Install
+----------------
+
+If you have pip or setuptools installed (pip is included in Python
+2.7.9+), you may simply run **pip install olefile** or **easy\_install
+olefile** for the first installation.
+
+To update olefile, run **pip install -U olefile**.
+
+Otherwise, see https://bitbucket.org/decalage/olefileio\_pl/wiki/Install
+
+Features
+--------
+
+-  Parse, read and write any OLE file such as Microsoft Office 97-2003
+   legacy document formats (Word .doc, Excel .xls, PowerPoint .ppt,
+   Visio .vsd, Project .mpp), Image Composer and FlashPix files, Outlook
+   messages, StickyNotes, Zeiss AxioVision ZVI files, Olympus FluoView
+   OIB files, etc
+-  List all the streams and storages contained in an OLE file
+-  Open streams as files
+-  Parse and read property streams, containing metadata of the file
+-  Portable, pure Python module, no dependency
+
+olefile can be used as an independent package or with PIL/Pillow.
+
+olefile is mostly meant for developers. If you are looking for tools to
+analyze OLE files or to extract data (especially for security purposes
+such as malware analysis and forensics), then please also check my
+`python-oletools <http://www.decalage.info/python/oletools>`__, which
+are built upon olefile and provide a higher-level interface.
+
+History
+-------
+
+olefile is based on the OleFileIO module from
+`PIL <http://www.pythonware.com/products/pil/index.htm>`__, the
+excellent Python Imaging Library, created and maintained by Fredrik
+Lundh. The olefile API is still compatible with PIL, but since 2005 I
+have improved the internal implementation significantly, with new
+features, bugfixes and a more robust design. From 2005 to 2014 the
+project was called OleFileIO\_PL, and in 2014 I changed its name to
+olefile to celebrate its 9 years and its new write features.
+
+As far as I know, olefile is the most complete and robust Python
+implementation to read MS OLE2 files, portable on several operating
+systems. (please tell me if you know other similar Python modules)
+
+Since 2014 olefile/OleFileIO\_PL has been integrated into
+`Pillow <http://python-imaging.github.io/>`__, the friendly fork of PIL.
+olefile will continue to be improved as a separate project, and new
+versions will be merged into Pillow regularly.
+
+Main improvements over the original version of OleFileIO in PIL:
+----------------------------------------------------------------
+
+-  Compatible with Python 3.x and 2.6+
+-  Many bug fixes
+-  Support for files larger than 6.8MB
+-  Support for 64 bits platforms and big-endian CPUs
+-  Robust: many checks to detect malformed files
+-  Runtime option to choose if malformed files should be parsed or raise
+   exceptions
+-  Improved API
+-  Metadata extraction, stream/storage timestamps (e.g. for document
+   forensics)
+-  Can open file-like objects
+-  Added setup.py and install.bat to ease installation
+-  More convenient slash-based syntax for stream paths
+-  Write features
+
+Documentation
+-------------
+
+Please see the `online
+documentation <https://bitbucket.org/decalage/olefileio_pl/wiki>`__ for
+more information, especially the `OLE
+overview <https://bitbucket.org/decalage/olefileio_pl/wiki/OLE_Overview>`__
+and the `API
+page <https://bitbucket.org/decalage/olefileio_pl/wiki/API>`__ which
+describe how to use olefile in Python applications. A copy of the same
+documentation is also provided in the doc subfolder of the olefile
+package.
+
+Real-life examples
+------------------
+
+A real-life example: `using OleFileIO\_PL for malware analysis and
+forensics <http://blog.gregback.net/2011/03/using-remnux-for-forensic-puzzle-6/>`__.
+
+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.
+
+License
+-------
+
+olefile (formerly OleFileIO\_PL) is copyright (c) 2005-2016 Philippe
+Lagadec (http://www.decalage.info)
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+-  Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+-  Redistributions in binary form must reproduce the above copyright
+   notice, this list of conditions and the following disclaimer in the
+   documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
+TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+--------------
+
+olefile is based on source code from the OleFileIO module of the Python
+Imaging Library (PIL) published by Fredrik Lundh under the following
... 6536 lines suppressed ...

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-olefile.git



More information about the Python-modules-commits mailing list