{ "info": { "author": "Dariusz Izak", "author_email": "dariusz.izak@ibb.waw.pl", "bugtrack_url": null, "classifiers": [ "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "# headnode notifier\n\nSimple script for sending emails.\n\n### Usage examples\n\n```\nusage: headnode_notifier [address] [OPTION]\n\nSimple script for email notifications. Uses gmail by default.\n\npositional arguments:\n Recipient address\n\noptional arguments:\n -h, --help show this help message and exit\n -v, --version show program's version number and exit\n --subject Message subject\n --body Message body\n --attach Attachment\n --serv-addr Server address. Default \n --port Server's port. Default: <587>\n --from-addr Account address.\n --password-file Read password from exeternal file. Prevents hard-coding\n password anywhere in this script. IMPORTANT! Password is\n stored as plain text! Do NOT use with your personal\n account!\n```\n\n#### Let's assume you are using default account and you have password file in a proper place\n\nYou can specify the message subject, content and attach a file.\n\n```\nheadnode_notifier.py recipient@domain.com --subject 'Important message' --body 'Hello there!' --attach ./some/file.zip\n```\n\nYou can also send just blank message, only ```recipient@domain.com``` is truly obligatory if using default values for the rest.\n\nYou can specify server, port and else if you wish with ```--serv-addr smpt.provider.com --port 42 --from-addr my.address@provider.com```\n\n#### Config handling\nIf an option is not specified in the CLI, it is read from the headnode_notifier.config file. It is meant to facilitate the usage by setting default values for:\n\n1. Server address.\n2. Port.\n3. Mailbox address\n4. /path/to/password_file\n\n\n* Config content:\n\n```\n[server]\naddress = smtp.gmail.com\nport = 587\n\n[mailbox]\naddress =\npassword_file =\n```\n\n\n* Config location: **$HOME**\n\n\n* Config name:\n\n```\n.headnode_notifier.config\n```\n\n#### Password handling\n\nIn order to avoid storing the password anywhere in the script, it is read from file. You can specify the path using ```--password-file /path/to/file``` or in the config file. Remember that the **password file is plain text** so use the script with caution.\n\n\n#### Using gmail\n\nRemember to allow *less secure apps* to connect if using gmail. You can set it on [google account security page](https://myaccount.google.com/security)\n\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/dizak/headnode_notifier", "keywords": "smtp,script,mail,client,layer", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "headnode-notifier", "package_url": "https://pypi.org/project/headnode-notifier/", "platform": "", "project_url": "https://pypi.org/project/headnode-notifier/", "project_urls": { "Homepage": "https://github.com/dizak/headnode_notifier" }, "release_url": "https://pypi.org/project/headnode-notifier/1.5.4/", "requires_dist": [ "six" ], "requires_python": "", "summary": "Simple script for sending emails", "version": "1.5.4" }, "last_serial": 4123951, "releases": { "1.5.1": [ { "comment_text": "", "digests": { "md5": "6c06e00126183cf7e0a337e5bb91b4f9", "sha256": "f11626abf08e90aee8b2f62c843cd93fb0008aa3da1f4f5af4d84ac997ec4a7e" }, "downloads": -1, "filename": "headnode_notifier-1.5.1-py3-none-any.whl", "has_sig": false, "md5_digest": "6c06e00126183cf7e0a337e5bb91b4f9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5239, "upload_time": "2018-07-31T13:36:34", "url": "https://files.pythonhosted.org/packages/85/d8/5f1a7844d4753972b6249c7d79fe02b2ea896ddecefb5c502ccb34dbf2b6/headnode_notifier-1.5.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2569a115ee810509c8ecd85a02cf3a9e", "sha256": "d1b18362e6fa0e0e19f3b7f964e07167c3779dd7f4520bba869abcc659f29944" }, "downloads": -1, "filename": "headnode_notifier-1.5.1.tar.gz", "has_sig": false, "md5_digest": "2569a115ee810509c8ecd85a02cf3a9e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3631, "upload_time": "2018-07-31T13:36:35", "url": "https://files.pythonhosted.org/packages/11/f2/eb7167d1d00fc74e17b8653cd6b7d8f3cf7dc2d773baf3648f1e056e447f/headnode_notifier-1.5.1.tar.gz" } ], "1.5.2": [ { "comment_text": "", "digests": { "md5": "462002bd2219efa80609d1665b7fd55e", "sha256": "9f4be294ea40925780ba01dfff00fb53fa4cafaed45dcfe12d7133c1a31890c8" }, "downloads": -1, "filename": "headnode_notifier-1.5.2.tar.gz", "has_sig": false, "md5_digest": "462002bd2219efa80609d1665b7fd55e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3894, "upload_time": "2018-07-31T14:55:33", "url": "https://files.pythonhosted.org/packages/94/e7/2b86c79d73b94696da89e3650d4ce0c1d14f4d1478435d0a6590af57aed4/headnode_notifier-1.5.2.tar.gz" } ], "1.5.3": [ { "comment_text": "", "digests": { "md5": "78692dfa9a205c34575184f2b61517a7", "sha256": "5a417ce7b21c072e9af582902a37125bcfe19ac1eba313b82a16089ab858d7c9" }, "downloads": -1, "filename": "headnode_notifier-1.5.3-py3-none-any.whl", "has_sig": false, "md5_digest": "78692dfa9a205c34575184f2b61517a7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6221, "upload_time": "2018-07-31T15:34:17", "url": "https://files.pythonhosted.org/packages/26/01/061e7eff58af5652557927244aaf414156b441d9bfcf92dd38633620da1f/headnode_notifier-1.5.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2da280c47d78be85aafc8af149252887", "sha256": "5ab55992374ae3bad9daa5c8b056fba398455e51145db5f9630a15d52f99e6bd" }, "downloads": -1, "filename": "headnode_notifier-1.5.3.tar.gz", "has_sig": false, "md5_digest": "2da280c47d78be85aafc8af149252887", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3893, "upload_time": "2018-07-31T15:34:18", "url": "https://files.pythonhosted.org/packages/da/8e/63f52a76a7f027e1b3f2fa172bad8b1609cc389ac3528b17e178b3568d7e/headnode_notifier-1.5.3.tar.gz" } ], "1.5.4": [ { "comment_text": "", "digests": { "md5": "051a1e5e0e017c408a68af662145785e", "sha256": "ea4f3b927e00602f6d1db57dc95a78d2e702af9a5d643ecff56108bc50035d4e" }, "downloads": -1, "filename": "headnode_notifier-1.5.4-py3-none-any.whl", "has_sig": false, "md5_digest": "051a1e5e0e017c408a68af662145785e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6221, "upload_time": "2018-08-01T09:41:42", "url": "https://files.pythonhosted.org/packages/1b/af/c31b77303b3bf5988f42dd90de2d12eaba539954748bdacd1aceac5e0741/headnode_notifier-1.5.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "41a2b82f5c662125128c111b63cb997c", "sha256": "75b8de4d65dc4d3b9abf024a866f4f1345d03c9219523184782718f68ddb2f78" }, "downloads": -1, "filename": "headnode_notifier-1.5.4.tar.gz", "has_sig": false, "md5_digest": "41a2b82f5c662125128c111b63cb997c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4682, "upload_time": "2018-08-01T09:41:43", "url": "https://files.pythonhosted.org/packages/db/89/a75567db61ca18d0d2ef15606a72b7239fadbf81c5b70176e00d5f7b123d/headnode_notifier-1.5.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "051a1e5e0e017c408a68af662145785e", "sha256": "ea4f3b927e00602f6d1db57dc95a78d2e702af9a5d643ecff56108bc50035d4e" }, "downloads": -1, "filename": "headnode_notifier-1.5.4-py3-none-any.whl", "has_sig": false, "md5_digest": "051a1e5e0e017c408a68af662145785e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6221, "upload_time": "2018-08-01T09:41:42", "url": "https://files.pythonhosted.org/packages/1b/af/c31b77303b3bf5988f42dd90de2d12eaba539954748bdacd1aceac5e0741/headnode_notifier-1.5.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "41a2b82f5c662125128c111b63cb997c", "sha256": "75b8de4d65dc4d3b9abf024a866f4f1345d03c9219523184782718f68ddb2f78" }, "downloads": -1, "filename": "headnode_notifier-1.5.4.tar.gz", "has_sig": false, "md5_digest": "41a2b82f5c662125128c111b63cb997c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4682, "upload_time": "2018-08-01T09:41:43", "url": "https://files.pythonhosted.org/packages/db/89/a75567db61ca18d0d2ef15606a72b7239fadbf81c5b70176e00d5f7b123d/headnode_notifier-1.5.4.tar.gz" } ] }