{"id":16419883,"url":"https://github.com/jpadilla/mandrill-inbound-python","last_synced_at":"2025-03-21T03:32:58.341Z","repository":{"id":7977802,"uuid":"9380357","full_name":"jpadilla/mandrill-inbound-python","owner":"jpadilla","description":"Python Wrapper for Mandrill Inbound Email","archived":false,"fork":false,"pushed_at":"2014-11-20T17:09:22.000Z","size":281,"stargazers_count":19,"open_issues_count":1,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-12T07:26:15.503Z","etag":null,"topics":["mandrill","python"],"latest_commit_sha":null,"homepage":"http://jpadilla.github.io/mandrill-inbound-python","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jpadilla.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-11T21:10:16.000Z","updated_at":"2024-04-17T21:21:37.000Z","dependencies_parsed_at":"2022-09-10T20:11:23.696Z","dependency_job_id":null,"html_url":"https://github.com/jpadilla/mandrill-inbound-python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpadilla%2Fmandrill-inbound-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpadilla%2Fmandrill-inbound-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpadilla%2Fmandrill-inbound-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpadilla%2Fmandrill-inbound-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpadilla","download_url":"https://codeload.github.com/jpadilla/mandrill-inbound-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221811374,"owners_count":16884305,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mandrill","python"],"created_at":"2024-10-11T07:26:15.573Z","updated_at":"2024-10-28T09:16:35.457Z","avatar_url":"https://github.com/jpadilla.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mandrill Inbound Python Wrapper [![Build Status](https://travis-ci.org/jpadilla/mandrill-inbound-python.png?branch=master)](https://travis-ci.org/jpadilla/mandrill-inbound-python)\n\n\nThis is a simple API wrapper for [Mandrill's inbound email webhook](http://help.mandrill.com/entries/22092308-What-is-the-format-of-inbound-email-webhooks-)\nin Python inspired by this other Python wrapper library I made for [Postmark Inbound](https://github.com/jpadilla/postmark-inbound-python).\n\n## Install\n\nUsing Github:\n\n```\ngit clone git://github.com/jpadilla/mandrill-inbound-python.git\n```\n\nUsing pip:\n\n```\npip install python-mandrill-inbound\n```\n\nUsing easy_install:\n\n```\neasy_install python-mandrill-inbound\n```\n\n\nUsage\n-----\n\n```python\nfrom mandrill_inbound import MandrillInbound\n\n\n# Load from JSON string\njson_data = open('./tests/fixtures/valid_http_post.json').read()\ninbound = MandrillInbound(json=json_data)\n\n# Load Python dictionary\njson_data = json.loads(open('./tests/fixtures/valid_http_post.json').read())\ninbound = MandrillInbound(source=json_data)\n\n# Content\nprint inbound.subject\nprint inbound.sender\nprint inbound.to\nprint inbound.cc\nprint inbound.recipients\nprint inbound.message_id\nprint inbound.mailbox_hash\nprint inbound.html_body\nprint inbound.text_body\nprint inbound.send_date\nprint inbound.ts\n\n# Spam and Spoofing Detection\nprint inbound.spf\nprint inbound.dkim\nprint inbound.spam_score\n\n# headers\nprint inbound.headers  # default to get all headers\nprint inbound.headers['MIME-Version']\nprint inbound.headers['Received-SPF']\n\n# attachments\nprint inbound.has_attachments # boolean\nattachments = inbound.attachments\n\nfirst_attachment = attachments[0]\nprint first_attachment.name\n\nsecond_attachment = attachments[1]\nprint second_attachment.content_length\n\nfor a in attachments:\n\tprint a.name\n\tprint a.content_type\n\tprint a.read()\n\tprint a.download('./tests/', ['image/png'])\n\n# raw data\nprint inbound.source\nprint inbound.msg\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\nLicense\n---------------------\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpadilla%2Fmandrill-inbound-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpadilla%2Fmandrill-inbound-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpadilla%2Fmandrill-inbound-python/lists"}