msg_parser
==========
.. image:: https://img.shields.io/pypi/v/msg_parser.svg
:target: https://pypi.python.org/pypi/msg_parser
.. image:: https://img.shields.io/travis/vikramarsid/msg_parser.svg
:target: https://travis-ci.org/vikramarsid/msg_parser
.. image:: https://readthedocs.org/projects/msg-parser/badge/?version=latest
:target: https://msg-parser.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://pyup.io/repos/github/vikramarsid/msg_parser/shield.svg
:target: https://pyup.io/repos/github/vikramarsid/msg_parser/
:alt: Updates
Python module for parsing outlook msg files.
* Free software: BSD license
* Documentation: https://msg-parser.readthedocs.io.
Features
--------
* Parse MSG file.
* Convert MSG file to EML file.
* Output MSG file as JSON string.
* Handles nested MSG/EML attachments.
* Works 100% on Linux machines, do not require any windows libraries.
Installation
------------
* Basic installation
.. code-block:: bash
pip install msg_parser
* With RTF decompression
.. code-block:: bash
pip install msg_parser[rtf]
Usage
-----
* Run CLI command
.. code-block:: bash
$ msg_parser --help
usage: msg_parser [-h] -i FILE [-j] [-e EML_FILE]
Microsoft Message Parser
optional arguments:
-h, --help show this help message and exit
-i FILE, --input FILE
msg file path
-j, --json output parsed msg as json to console
-e EML_FILE, --eml EML_FILE
provide email file path to save as eml file.
* Import in python modules
.. code-block:: python
from msg_parser import MsOxMessage
msg_obj = MsOxMessage(msg_file_path)
json_string = msg_obj.get_message_as_json()
msg_properties_dict = msg_obj.get_properties()
saved_path = msg_obj.save_email_file(output_eml_file_path)
Raw data
{
"_id": null,
"home_page": "https://github.com/vikramarsid/msg_parser",
"name": "msg-parser",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.4",
"maintainer_email": "",
"keywords": "msg_parser",
"author": "Vikram Arsid",
"author_email": "vikramarsid@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/41/29/07909e648a72a6cd054a1ad5acf55caac0e9d4c9c3a06498af18f30a1602/msg_parser-1.2.0.tar.gz",
"platform": "",
"description": "msg_parser\n==========\n\n.. image:: https://img.shields.io/pypi/v/msg_parser.svg\n :target: https://pypi.python.org/pypi/msg_parser\n\n.. image:: https://img.shields.io/travis/vikramarsid/msg_parser.svg\n :target: https://travis-ci.org/vikramarsid/msg_parser\n\n.. image:: https://readthedocs.org/projects/msg-parser/badge/?version=latest\n :target: https://msg-parser.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n.. image:: https://pyup.io/repos/github/vikramarsid/msg_parser/shield.svg\n :target: https://pyup.io/repos/github/vikramarsid/msg_parser/\n :alt: Updates\n\nPython module for parsing outlook msg files.\n\n\n* Free software: BSD license\n* Documentation: https://msg-parser.readthedocs.io.\n\n\nFeatures\n--------\n\n* Parse MSG file.\n* Convert MSG file to EML file.\n* Output MSG file as JSON string.\n* Handles nested MSG/EML attachments.\n* Works 100% on Linux machines, do not require any windows libraries.\n\nInstallation\n------------\n\n* Basic installation\n\n .. code-block:: bash\n\n \t pip install msg_parser\n\n* With RTF decompression\n\n .. code-block:: bash\n\n \t pip install msg_parser[rtf]\n\n\nUsage\n-----\n\n* Run CLI command\n\n .. code-block:: bash\n\n $ msg_parser --help\n usage: msg_parser [-h] -i FILE [-j] [-e EML_FILE]\n\n Microsoft Message Parser\n\n optional arguments:\n -h, --help show this help message and exit\n -i FILE, --input FILE\n msg file path\n -j, --json output parsed msg as json to console\n -e EML_FILE, --eml EML_FILE\n provide email file path to save as eml file.\n\n\n * Import in python modules\n\n .. code-block:: python\n\n from msg_parser import MsOxMessage\n\n msg_obj = MsOxMessage(msg_file_path)\n\n json_string = msg_obj.get_message_as_json()\n\n msg_properties_dict = msg_obj.get_properties()\n\n saved_path = msg_obj.save_email_file(output_eml_file_path)\n\n\n\n",
"bugtrack_url": null,
"license": "BSD",
"summary": "This module enables reading, parsing and converting Microsoft Outlook MSG E-Mail files.",
"version": "1.2.0",
"split_keywords": [
"msg_parser"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "158b5738b32acc6acdf92d04d5e691bf70a379e78264e55843542e1888d4a10e",
"md5": "164d01cbe8727a13504561e91daa8021",
"sha256": "d47a2f0b2a359cb189fad83cc991b63ea781ecc70d91410324273fbf93e95375"
},
"downloads": -1,
"filename": "msg_parser-1.2.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "164d01cbe8727a13504561e91daa8021",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": ">=3.4",
"size": 101829,
"upload_time": "2019-12-14T01:33:01",
"upload_time_iso_8601": "2019-12-14T01:33:01.163691Z",
"url": "https://files.pythonhosted.org/packages/15/8b/5738b32acc6acdf92d04d5e691bf70a379e78264e55843542e1888d4a10e/msg_parser-1.2.0-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "412907909e648a72a6cd054a1ad5acf55caac0e9d4c9c3a06498af18f30a1602",
"md5": "0abc4d83cf3a214be8da3c772acf8a51",
"sha256": "0de858d4fcebb6c8f6f028da83a17a20fe01cdce67c490779cf43b3b0162aa66"
},
"downloads": -1,
"filename": "msg_parser-1.2.0.tar.gz",
"has_sig": false,
"md5_digest": "0abc4d83cf3a214be8da3c772acf8a51",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.4",
"size": 9457398,
"upload_time": "2019-12-14T01:33:03",
"upload_time_iso_8601": "2019-12-14T01:33:03.804252Z",
"url": "https://files.pythonhosted.org/packages/41/29/07909e648a72a6cd054a1ad5acf55caac0e9d4c9c3a06498af18f30a1602/msg_parser-1.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2019-12-14 01:33:03",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "vikramarsid",
"github_project": "msg_parser",
"travis_ci": true,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "olefile",
"specs": [
[
">=",
"0.46"
]
]
}
],
"tox": true,
"lcname": "msg-parser"
}