Open Source Python API for Outlook MSG Files

Save Attachments & Messages, Read & Parse MS Outlook MSG files via Python Library.


MSG-Extractor gives software developers the ability to process Microsoft Outlook MSG files from Python apps. It automates the extraction of key email data such as from, to, cc fields as well as subject, body, date, and attachments.

The MSG-Extractor supports several features such as reading an email message, extracting attachments, embedding MSG files, command-line arguments and save attachments to a custom location. 

Getting Started with MSG-extractor

You can install it using pip.

install via Pypi

 pip install extract-msg  

install via Github

 pip install git+ 
or you can include this in your list of python dependencies with

Python dependencies for MSG Extractor



Python API to Read Outlook MSG Files

The MSG-Extractor API allows Python developers and programmers to access & read contents of Outlook MSG files. You can access the email recipient addresses as well as view email messages & attachments.

Save Attachments & Messages to Custom Location

MSG-Extractor API enables the extraction of attachments from Outlook MSG files. The API provides the functionality to scans all the email messages stored in MSG and displays the list of messages that it finds. Users can select the attachments of their choice and save it to a chosen folder. It also allows users to delete unwanted files.