{ "info": { "author": "Thiago Cardoso de Castro", "author_email": "thiago.decastro2@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Topic :: Software Development :: Libraries" ], "description": "Client service, to send simple text emails or, using a template created at Postman, send more complex emails.\n\nIn order to use this library, you must create an account in Postman.\n\n** **It is not currently possible to create an account in Postman, but will soon be** **\n\nHow to install:\n pip install postman_client\n\nFollow the examples below to send simple emails or emails with templates:\n\n**Simple Emails:**\n\n from postman.models import Mail\n from postman.client import PostMan\n\n postman = PostMan(key='', secret='')\n\n def send(self):\n mail = Mail(\n recipient_list=[\n 'Foo Bar ',\n 'Fulano Aquino ',\n ''\n ],\n message=\"Just a Test, delete if you want.\",\n from_name='Beutrano',\n from_email='beutrano@gmail.com',\n subject=\"Just a test\"\n )\n response = self.postman.send(mail)\n\n**Template Emails:**\n\n from postman.models import Mail\n from postman.client import PostMan\n\n postman = PostMan(key='', secret='')\n\n def send(self):\n mail = Mail(\n recipient_list=[\n 'Foo Bar ',\n 'Fulano Aquino ',\n ''\n ],\n from_name='Beutrano',\n from_email='beutrano@gmail.com',\n template_slug='test-101',\n context={'foobar': True},\n context_per_recipient={\n \"foo.bar@gmail.com\": {\"foo\": True},\n \"fulano.arquino@gmail.com.br\": {\"bar\": True}\n },\n use_tpl_default_subject=True,\n use_tpl_default_email=False,\n use_tpl_default_name=False\n )\n response = self.postman.send_template(mail)\n\n**Mail Parameters:**\n\nParameter - Type - Required - Description\n\nrecipient_list - List - Yes - List of all the recipients. The expected format is 'Name ``' or '``'.\n\nsubject - String - Yes* - The subject of the email. *In case your sending an email with template and pass `use_tpl_default_subject` as `True` then you don't need to pass the `subject`.\n\nmessage_text - String - Yes* - The `message` of the email on text format. *Only Required if your gonna send a simple text email.\n\nmessage_html - String - No - The `message` of the email on html format. *If pass this and an `template_slug` Postman is going to ignore the template's html.\n\ntags - Dict/List - No - The `tags` must be an dictionary containing keys and simple values or an list with strings.\n\nfrom_name - String - No* - The name of the sender. *In case your sending an email with template and pass `use_tpl_default_name` as `True` then you don't need to pass the `from_name`.\n\nfrom_email - String - Yes* - The email of the sender. *In case your sending an email with template and pass `use_tpl_default_email` as `True` then you don't need to pass the `from_email`.\n\ntemplate_slug - String - Yes* - The `template_slug` is the slug of the template. *Just pass this if your gonna send a email with template.\n\nuse_tpl_default_name - Bool - No* - If set to `True` it use the default value set to the sender's name.\n\nuse_tpl_default_email - Bool - No* - If set to `True` it use the default value set to the sender's email.\n\nuse_tpl_default_subject - Bool - No* - If set to `True` it use the default value set to the subject.\n\nexpose_recipients_list - Bool - No* - If set to `True` every recipient will see the entire list of recipients.\n\nget_text_from_html - Bool - No* - If set to `True` postman will extract from your html template an text version. This will only happen if your template doesn't already have an text version.\n\nactivate_tracking - Bool - No* - If set to `True` postman will track if your email will be open and how many times. Also it will track any links clicked inside the email.\n\ncontext - Dict - No - Global variables use in the Template. The format is expressed in the example (above).\n\ncontext_per_recipient - Dict - No - Variables set for each recipient. The format is expressed in the example (above).\n\n**Client Parameters:**\n\nParameter - Type - Required - Description\n\nkey - String - Yes - Your account's public key in the Postman.\n\nsecret - String - Yes - Your account's private key in the Postman.\n\nfail_silently - Bool - No - If set to `True` the lib will raise it's exceptions. Default `False`.", "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/ThCC/postman-client", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "postman_client", "package_url": "https://pypi.org/project/postman_client/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/postman_client/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/ThCC/postman-client" }, "release_url": "https://pypi.org/project/postman_client/0.2.4/", "requires_dist": null, "requires_python": null, "summary": "Client service, to send simple text emails or, using a template created at Postman, send more complex emails.", "version": "0.2.4" }, "last_serial": 2933252, "releases": { "0.1.10": [ { "comment_text": "", "digests": { "md5": "c093b3feba5e5815a52ab797183e997d", "sha256": "0e2087eb4798dee1223ebf0788fad3801fe235bcee8e1fbf9f9027cb7bf6042b" }, "downloads": -1, "filename": "postman_client-0.1.10.tar.gz", "has_sig": false, "md5_digest": "c093b3feba5e5815a52ab797183e997d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6219, "upload_time": "2016-10-04T17:10:54", "url": "https://files.pythonhosted.org/packages/5b/ff/dc8d9b65bd15b1fcc3ddd5ea6b2d7c2d6eafca97a25f360dcd0c78077fae/postman_client-0.1.10.tar.gz" } ], "0.1.11": [ { "comment_text": "", "digests": { "md5": "56ef5562f417a89dc9d31369346b16a7", "sha256": "1635e3cc847d80f7e73aa0d9817ff0b0797011430205347a983458eec03cdfe5" }, "downloads": -1, "filename": "postman_client-0.1.11.tar.gz", "has_sig": false, "md5_digest": "56ef5562f417a89dc9d31369346b16a7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6558, "upload_time": "2017-04-20T14:06:38", "url": "https://files.pythonhosted.org/packages/64/96/b592a0a754f30a222adcab58c8ee833abfef5c93118db39adb88ce7777d4/postman_client-0.1.11.tar.gz" } ], "0.1.12": [ { "comment_text": "", "digests": { "md5": "a4fb38c330a3b800c5ff9324bac4043c", "sha256": "e266473b001d3b660a6db80e334af0fc99d60764e5f6fab3b0863f272f198aad" }, "downloads": -1, "filename": "postman_client-0.1.12.tar.gz", "has_sig": false, "md5_digest": "a4fb38c330a3b800c5ff9324bac4043c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6607, "upload_time": "2017-05-08T14:03:45", "url": "https://files.pythonhosted.org/packages/5f/38/bea67e60f2c28d4e7e350939f44c175b1953ebb445c0e215e3df16573674/postman_client-0.1.12.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "78ef8c280db757ce019564920164d2a8", "sha256": "192c69b4aae679ad0debc30e6aacfe4988a72d2690d33fe839236b53ec2804e9" }, "downloads": -1, "filename": "postman_client-0.1.6.tar.gz", "has_sig": false, "md5_digest": "78ef8c280db757ce019564920164d2a8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6034, "upload_time": "2016-08-31T13:55:20", "url": "https://files.pythonhosted.org/packages/02/67/8ccf507045e5b6f8b83a0133c405275b2fa27f0566655536db8ba648e50f/postman_client-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "21739d4bec964c5c712f8faca937eb3a", "sha256": "cf65edebc25a05b2b57495e4391b76bcf7adf1fed4733ceb9c367f24a331b1e8" }, "downloads": -1, "filename": "postman_client-0.1.7.tar.gz", "has_sig": false, "md5_digest": "21739d4bec964c5c712f8faca937eb3a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6059, "upload_time": "2016-08-31T17:59:37", "url": "https://files.pythonhosted.org/packages/3c/5a/1658ca937cb816c9b5bd3f38a258fb66a9c47259a09a111746ef52f18e9a/postman_client-0.1.7.tar.gz" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "de15772590a980e94ab6cdb559760f3b", "sha256": "eee1b89bb26c8bf1782814b3cbca300d19101f7945bb3ec82a4d9fd58e0a68b1" }, "downloads": -1, "filename": "postman_client-0.1.8.tar.gz", "has_sig": false, "md5_digest": "de15772590a980e94ab6cdb559760f3b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6174, "upload_time": "2016-09-09T19:52:43", "url": "https://files.pythonhosted.org/packages/ec/11/c44696f74e8471e60285a1c4e1a652c1349082c55c272b32c0202de777b9/postman_client-0.1.8.tar.gz" } ], "0.1.9": [ { "comment_text": "", "digests": { "md5": "e2633efd419a48d04c77a9af63b349b2", "sha256": "53d9424bec30303b5108213ccfb872f80097864f8772c610e27ad8b5f57c0d7f" }, "downloads": -1, "filename": "postman_client-0.1.9.tar.gz", "has_sig": false, "md5_digest": "e2633efd419a48d04c77a9af63b349b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6206, "upload_time": "2016-09-21T16:16:22", "url": "https://files.pythonhosted.org/packages/15/e2/91d0ceaf7e0a7e1a7249b68e15d39a2c072f9c09229e7ef88e92e12ece8e/postman_client-0.1.9.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "ce2279197e9c4e4c1bcd9e9e98833272", "sha256": "8432f34894fc992368f94728af6adb7525274d97fda8e372980aeefb207539c2" }, "downloads": -1, "filename": "postman_client-0.2.0.tar.gz", "has_sig": false, "md5_digest": "ce2279197e9c4e4c1bcd9e9e98833272", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6826, "upload_time": "2017-05-12T16:34:48", "url": "https://files.pythonhosted.org/packages/6a/8a/5799fb57b176c551f08282e4a68b2ebb021c56dd54ec47628e585f9b9dac/postman_client-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "0ebf930213e561eaeb637256b94bc844", "sha256": "dd864f29cfefe82eff0a5cce0e52534b8a046b1b97186134dcedfcddd95f41e7" }, "downloads": -1, "filename": "postman_client-0.2.1.tar.gz", "has_sig": false, "md5_digest": "0ebf930213e561eaeb637256b94bc844", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6849, "upload_time": "2017-06-07T13:33:58", "url": "https://files.pythonhosted.org/packages/a6/21/f6c2672feaac7658941dd6ee0b4ea30bbd2b54239ce58f83090e1ddf5fff/postman_client-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "20a028bfc13fa23cb2a5a25cdb03c597", "sha256": "4bd902397318a6509b499192c391816ba4d6f5207c3af81bde5526c7602891c6" }, "downloads": -1, "filename": "postman_client-0.2.2.tar.gz", "has_sig": false, "md5_digest": "20a028bfc13fa23cb2a5a25cdb03c597", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6880, "upload_time": "2017-06-07T13:47:35", "url": "https://files.pythonhosted.org/packages/05/75/eb8e60e13cbcc5641cc0c25d54fdfe80c4620b3a42dedeb2ea340882f17b/postman_client-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "7c4a7a6143ae408f447b03f7bb19ea42", "sha256": "e070c77b4ce88b6448c0cc7bb6ed8fce29ed74504413490a189bb5b1f1e4951b" }, "downloads": -1, "filename": "postman_client-0.2.3.tar.gz", "has_sig": false, "md5_digest": "7c4a7a6143ae408f447b03f7bb19ea42", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6845, "upload_time": "2017-06-07T13:49:59", "url": "https://files.pythonhosted.org/packages/ea/b7/75a0b963f4a284aaff67380989527b4c3ec06deb9134919b16cd7a602c85/postman_client-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "7edb7f6a29adedd9617e7c7ce0ad1fa5", "sha256": "06b100ff0a661de10a6a9279ba98cb35a2e0c8a33097336e3233d18c1129df08" }, "downloads": -1, "filename": "postman_client-0.2.4.tar.gz", "has_sig": false, "md5_digest": "7edb7f6a29adedd9617e7c7ce0ad1fa5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6842, "upload_time": "2017-06-07T19:39:00", "url": "https://files.pythonhosted.org/packages/a4/8c/4fa3096606ff074a635fee7dc0fb38ac8dfb27d86301d3281890be83ad15/postman_client-0.2.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7edb7f6a29adedd9617e7c7ce0ad1fa5", "sha256": "06b100ff0a661de10a6a9279ba98cb35a2e0c8a33097336e3233d18c1129df08" }, "downloads": -1, "filename": "postman_client-0.2.4.tar.gz", "has_sig": false, "md5_digest": "7edb7f6a29adedd9617e7c7ce0ad1fa5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6842, "upload_time": "2017-06-07T19:39:00", "url": "https://files.pythonhosted.org/packages/a4/8c/4fa3096606ff074a635fee7dc0fb38ac8dfb27d86301d3281890be83ad15/postman_client-0.2.4.tar.gz" } ] }