{ "info": { "author": "Jos\u00e9 Padilla", "author_email": "hello@jpadilla.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "Postmark Inbound Hook [![Build Status](https://travis-ci.org/jpadilla/postmark-inbound-python.png?branch=master)](https://travis-ci.org/jpadilla/postmark-inbound-python)\n=====================\n\nThis is a simple API wrapper for [Postmark Inbound Hook](http://developer.postmarkapp.com/developer-inbound.html)\nin Python inspired by [jjaffeux](https://github.com/jjaffeux/postmark-inbound-php).\n\n## Install\n\nUsing Github:\n\n```\ngit clone git@github.com:jpadilla/postmark-inbound-python.git\n```\n\nUsing pip:\n\n```\npip install python-postmark-inbound\n```\n\nUsing easy_install:\n\n```\neasy_install python-postmark-inbound\n```\n\n\nUsage\n-----\n\n``` python\nfrom postmark_inbound import PostmarkInbound\n\n\n# load json\njson_data = open('./tests/fixtures/valid_http_post.json').read()\ninbound = PostmarkInbound(json=json_data)\n\n# content\ninbound.subject()\ninbound.sender()\ninbound.to()\ninbound.bcc()\ninbound.tag()\ninbound.message_id()\ninbound.mailbox_hash()\ninbound.reply_to()\ninbound.html_body()\ninbound.text_body()\ninbound.send_date()\n\n# headers\ninbound.headers() # default to get Date\ninbound.headers('MIME-Version')\ninbound.headers('Received-SPF')\n\n# spam\ninbound.headers('X-Spam-Checker-Version')\ninbound.headers('X-Spam-Score')\ninbound.headers('X-Spam-Tests')\ninbound.headers('X-Spam-Status')\n\n# attachments\ninbound.has_attachments() # boolean\nattachments = inbound.attachments()\n\nfirst_attachment = attachments[0]\nfirst_attachment.name()\n\nsecond_attachment = attachments[1]\nsecond_attachment.content_length()\n\nfor a in attachments:\n\ta.name()\n\ta.content_type()\n\ta.content_length()\n\ta.download('./tests/', ['image/png'], '10000')\n\n# raw data\ninbound.json\ninbound.source\n```\n\nBug tracker\n-----------\n\nHave a bug? Please create an issue here on GitHub!\n\n\nContributions\n-------------\n\n* Fork\n* Write tests\n* Write Code\n* Pull request\n\nThanks for your help.\n\n\nTODO\n----\n\n* Write more tests\n\n\nAuthors\n-------\n\n**Jos\u00e9 Padilla**\n\n+ http://twitter.com/jpadilla_\n+ http://github.com/jpadilla\n\nInspiration\n-----------\n\nThanks to [jjaffeux](https://github.com/jjaffeux/) for the original PHP wrapper\n\n+ https://github.com/jjaffeux\n+ https://github.com/jjaffeux/postmark-inbound-php\n\n\nOther libraries\n---------------\n\n+ Ruby: https://github.com/r38y/postmark-mitt\n+ PHP: https://github.com/jjaffeux/postmark-inbound-php\n+ Node.js + CouchDB: https://gist.github.com/1647808\n\nLicense\n---------------------\n\nMIT License\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jpadilla/postmark-inbound-python", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "python-postmark-inbound", "package_url": "https://pypi.org/project/python-postmark-inbound/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/python-postmark-inbound/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/jpadilla/postmark-inbound-python" }, "release_url": "https://pypi.org/project/python-postmark-inbound/1.1.0/", "requires_dist": null, "requires_python": null, "summary": "Python wrapper for Postmark Inbound", "version": "1.1.0" }, "last_serial": 1505551, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "40f5964a45daf05462fd067b93334ac4", "sha256": "30efe5f09e5841f875f558a551b62ddbe0c64a04ccb2d8159cf9429736ceda0f" }, "downloads": -1, "filename": "python-postmark-inbound-0.1.tar.gz", "has_sig": false, "md5_digest": "40f5964a45daf05462fd067b93334ac4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3710, "upload_time": "2013-01-29T18:05:51", "url": "https://files.pythonhosted.org/packages/f6/e9/0dbe0e6467f9120dc5375cc908e3c18e8ea79b2924089788844d152a4f07/python-postmark-inbound-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "e10245267afbaf9e1f0625770116f1d4", "sha256": "89411db4089c51d6ed5298033a8b793fae667b25072f7ca6112c6d1595d10c2e" }, "downloads": -1, "filename": "python-postmark-inbound-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e10245267afbaf9e1f0625770116f1d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3688, "upload_time": "2013-01-29T18:55:20", "url": "https://files.pythonhosted.org/packages/53/ab/26d53eddf01f2a120992069d7f75d9b8d0e5914c95d73b48c823afce8dd6/python-postmark-inbound-0.1.1.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "43f8eae588c139d7f3a8662e2c99618a", "sha256": "cba135adcfa752ac7657e2f2eeffd2c2795163243ad748e12b9287e045a764cf" }, "downloads": -1, "filename": "python_postmark_inbound-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "43f8eae588c139d7f3a8662e2c99618a", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 3309, "upload_time": "2014-08-22T15:11:23", "url": "https://files.pythonhosted.org/packages/2b/ee/1006630dbd5ff2161076ea77ea985cd6b91f56627b664aeca4f1c3093fb8/python_postmark_inbound-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f98e168c852742d3b219ec20b1e5a342", "sha256": "e8270e3b66d76b1f9928eee1073f366ef030140ef2ba7a110a6ad28d1a0be02d" }, "downloads": -1, "filename": "python-postmark-inbound-1.0.0.tar.gz", "has_sig": false, "md5_digest": "f98e168c852742d3b219ec20b1e5a342", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4170, "upload_time": "2014-08-22T15:11:19", "url": "https://files.pythonhosted.org/packages/b5/fc/c34accfecd978c379121315726eacc6fb8a5278196856bc258f1518a14d5/python-postmark-inbound-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "47b66399ab959512d47ef2e331b25f53", "sha256": "fdf2585238dc8d5da91e7a0dfb30b0856e55519f5828fb0ceea53582c634635e" }, "downloads": -1, "filename": "python_postmark_inbound-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "47b66399ab959512d47ef2e331b25f53", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 3704, "upload_time": "2015-04-14T22:29:16", "url": "https://files.pythonhosted.org/packages/fe/7e/8f84c2343cdfdd3b6f23fd16cce837e31504386444b5fab9271662525489/python_postmark_inbound-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ad8ef024e93f461c300c9fde4735699a", "sha256": "72686a67235f19d4c88d39bd459809cf20cd74f6d8ed7d013fb920e4d089e41c" }, "downloads": -1, "filename": "python-postmark-inbound-1.1.0.tar.gz", "has_sig": false, "md5_digest": "ad8ef024e93f461c300c9fde4735699a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4319, "upload_time": "2015-04-14T22:29:12", "url": "https://files.pythonhosted.org/packages/15/94/f188be1f951ce0ca0aeefe748d28b91ae7bf8661d1b2dac638d8e7b04d9c/python-postmark-inbound-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "47b66399ab959512d47ef2e331b25f53", "sha256": "fdf2585238dc8d5da91e7a0dfb30b0856e55519f5828fb0ceea53582c634635e" }, "downloads": -1, "filename": "python_postmark_inbound-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "47b66399ab959512d47ef2e331b25f53", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 3704, "upload_time": "2015-04-14T22:29:16", "url": "https://files.pythonhosted.org/packages/fe/7e/8f84c2343cdfdd3b6f23fd16cce837e31504386444b5fab9271662525489/python_postmark_inbound-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ad8ef024e93f461c300c9fde4735699a", "sha256": "72686a67235f19d4c88d39bd459809cf20cd74f6d8ed7d013fb920e4d089e41c" }, "downloads": -1, "filename": "python-postmark-inbound-1.1.0.tar.gz", "has_sig": false, "md5_digest": "ad8ef024e93f461c300c9fde4735699a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4319, "upload_time": "2015-04-14T22:29:12", "url": "https://files.pythonhosted.org/packages/15/94/f188be1f951ce0ca0aeefe748d28b91ae7bf8661d1b2dac638d8e7b04d9c/python-postmark-inbound-1.1.0.tar.gz" } ] }