{ "info": { "author": "Hamilton Insurance Group", "author_email": "opensource@hamiltoninsurancegroup.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: Financial and Insurance Industry", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Communications :: Email", "Topic :: Office/Business", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# outlook_msg\n\n[![Build Status](https://travis-ci.org/HamiltonInsurance/outlook_msg.svg?branch=master)](https://travis-ci.org/HamiltonInsurance/outlook_msg)\n\n`outlook_msg` is a Python library by [Hamilton Group](http://www.hamiltongroup.com/) to process the .msg files that \nUsers can export from Outlook. It is very common for users in organizations that use Outlook to archive data in this \nformat. For example, at Hamilton we see these files store in relation to deals we write. If we want to do automatic\nprocessing in a way that feels most natural to end users we need to extract data from these files.\n\nThis library is built on top of the excellent [compoundfiles](https://pypi.org/project/compoundfiles/) library, without\nwhich none of this would be possible.\n\n\n## Getting Started\n\nInstall using pip:\n\n`pip install outlook_msg`\n\n## Usage\n\nTo open an email:\n\n```python\nfrom outlook_msg import Message\n\nwith open('file.msg') as msg_file:\n msg = Message(msg_file)\n\n# Contents are the plaintext body of the email\ncontents = msg.body\n\n# Attachments can be read and saved like so\nfirst_attachment = msg.attachments[0]\nwith first_attachment.open() as attachment_fp, open(first_attachment.filename, 'wb') as output_fp:\n output_fp.write(attachment_fp.read())\n``` \n\n## Running the tests\n\nWe use [pytest](https://docs.pytest.org/en/latest/) to run our tests but you are best to use tox so you can test on all\nsupported Python versions and will ensure a clean environment. \n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/HamiltonInsurance/outlook_msg", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "outlook-msg", "package_url": "https://pypi.org/project/outlook-msg/", "platform": "", "project_url": "https://pypi.org/project/outlook-msg/", "project_urls": { "Homepage": "https://github.com/HamiltonInsurance/outlook_msg" }, "release_url": "https://pypi.org/project/outlook-msg/1.0.0/", "requires_dist": [ "compoundfiles (~=0.3)" ], "requires_python": ">=3.6, <4", "summary": "Read contents, metadata and attachments from Outlook Message files", "version": "1.0.0" }, "last_serial": 5323731, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "085aa3c9ec33b36c3599831fee0f50b8", "sha256": "cf13847e55f2b9e7f75717f8764d878775ed6f154edf65504586bec6f72b2372" }, "downloads": -1, "filename": "outlook_msg-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "085aa3c9ec33b36c3599831fee0f50b8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6, <4", "size": 11349, "upload_time": "2019-05-27T20:07:35", "url": "https://files.pythonhosted.org/packages/08/e5/39e3da92cc657880f68357b6b9da0f374058271866d4dc4795b0a15d70e2/outlook_msg-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ec8b018f84ad38c4f11c7c644aa284a1", "sha256": "482d4f4503e4f15def55f18492796ee43eacdc65c0aac7cbba8afd24947a52d1" }, "downloads": -1, "filename": "outlook_msg-1.0.0.tar.gz", "has_sig": false, "md5_digest": "ec8b018f84ad38c4f11c7c644aa284a1", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6, <4", "size": 5380, "upload_time": "2019-05-27T20:07:37", "url": "https://files.pythonhosted.org/packages/bd/db/10e5e3e82cbf6201ba1555543c061c91fa4d84dd96dbc4920c7b4ffe2a8b/outlook_msg-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "085aa3c9ec33b36c3599831fee0f50b8", "sha256": "cf13847e55f2b9e7f75717f8764d878775ed6f154edf65504586bec6f72b2372" }, "downloads": -1, "filename": "outlook_msg-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "085aa3c9ec33b36c3599831fee0f50b8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6, <4", "size": 11349, "upload_time": "2019-05-27T20:07:35", "url": "https://files.pythonhosted.org/packages/08/e5/39e3da92cc657880f68357b6b9da0f374058271866d4dc4795b0a15d70e2/outlook_msg-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ec8b018f84ad38c4f11c7c644aa284a1", "sha256": "482d4f4503e4f15def55f18492796ee43eacdc65c0aac7cbba8afd24947a52d1" }, "downloads": -1, "filename": "outlook_msg-1.0.0.tar.gz", "has_sig": false, "md5_digest": "ec8b018f84ad38c4f11c7c644aa284a1", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6, <4", "size": 5380, "upload_time": "2019-05-27T20:07:37", "url": "https://files.pythonhosted.org/packages/bd/db/10e5e3e82cbf6201ba1555543c061c91fa4d84dd96dbc4920c7b4ffe2a8b/outlook_msg-1.0.0.tar.gz" } ] }