msg_parser
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
pip install msg_parserWith RTF decompression
pip install msg_parser[rtf]
Usage
Run CLI command
$ 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
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)
Metadata
Release files for msg-parser 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| msg_parser-1.2.0.tar.gz | 9.5 MB | Without provenance | Details for msg_parser-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| msg_parser-1.2.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for msg_parser-1.2.0-py2.py3-none-any.whl |
Total release size: 9.6 MB
Release files / msg_parser-1.2.0.tar.gz
| Download URL | msg_parser-1.2.0.tar.gz |
|---|---|
| Size | 9.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0de858d4fcebb6c8f6f028da83a17a20fe01cdce67c490779cf43b3b0162aa66
|
|
BLAKE2b-256 checksum How to use checksums |
412907909e648a72a6cd054a1ad5acf55caac0e9d4c9c3a06498af18f30a1602
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.5
|
Release files / msg_parser-1.2.0-py2.py3-none-any.whl
| Download URL | msg_parser-1.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 101.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
d47a2f0b2a359cb189fad83cc991b63ea781ecc70d91410324273fbf93e95375
|
|
BLAKE2b-256 checksum How to use checksums |
158b5738b32acc6acdf92d04d5e691bf70a379e78264e55843542e1888d4a10e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.5
|
Security for msg-parser 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.