{ "info": { "author": "Vince Forgione", "author_email": "vforgione@uhicago.edu", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Programming Language :: Python :: 3.6" ], "description": "Plenario Mailer Core\n====================\n\n.. image:: https://travis-ci.org/UrbanCCD-UChicago/plenario-mailer-core.svg?branch=master\n :target: https://travis-ci.org/UrbanCCD-UChicago/plenario-mailer-core\n\n.. image:: https://coveralls.io/repos/github/UrbanCCD-UChicago/plenario-mailer-core/badge.svg?branch=master\n :target: https://coveralls.io/github/UrbanCCD-UChicago/plenario-mailer-core?branch=master\n\n\nUsage\n-----\n\nThis package has a handful of useful shortcuts to send informational emails to\ndata set contributors and admins. The functions can be wired up to be used\nwith the data set event signals provided in ``plenario-core``. For example::\n\n from plenario_core.signals import data_set_approved\n from plenario_core_mailer import mailer\n\n def notify_approval(meta_model: MetaBase) -> None:\n mailer.send_data_set_approved(meta_model)\n\n data_set_approved.connect(notify_approval)\n\nNow, when a data set is marked as approved, ``plenario-core`` will fire off the\nsignal and the defined handler will pick it up and call the mailer function.\n\n\nDevelopment\n-----------\n\nFire up a virtualenv and install the dev requirements::\n\n $ python3.6 -m venv .env\n $ source .env/bin/activate\n $ pip install -r dev-requirements.txt\n\nTo run the tests, in a separate terminal pull in the PostGIS docker image and create the database::\n\n $ docker pull mdillon/postgis\n $ docker run -d -p 5432:5432 mdillon/postgis\n $ docker ps\n ...\n $ docker exec -it {container hash} /bin/bash\n ...\n # su postgres -c psql\n ...\n > create database plenario;\n\nThen all you have to do is run the tests normally::\n\n $ coverage run manage.py test\n $ coverage report\n $ flake8\n\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/UrbanCCD-UChicago/plenario-mailer-core", "keywords": "plenario", "license": "GPLv3", "maintainer": "", "maintainer_email": "", "name": "plenario-mailer-core", "package_url": "https://pypi.org/project/plenario-mailer-core/", "platform": "", "project_url": "https://pypi.org/project/plenario-mailer-core/", "project_urls": { "Homepage": "https://github.com/UrbanCCD-UChicago/plenario-mailer-core" }, "release_url": "https://pypi.org/project/plenario-mailer-core/0.0.2/", "requires_dist": [ "Django (<1.12,>=1.11)", "plenario-core" ], "requires_python": ">=3.6", "summary": "common email templates and functions", "version": "0.0.2" }, "last_serial": 3207732, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "cbf4baf959824ed5691afa8256c6fd75", "sha256": "91b149fc6940c9caea1f85725a977f7f655ad06ad9810d2076898594871049f3" }, "downloads": -1, "filename": "plenario_mailer_core-0.0.1-py3-none-any.whl", "has_sig": true, "md5_digest": "cbf4baf959824ed5691afa8256c6fd75", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 6364, "upload_time": "2017-09-25T21:04:40", "url": "https://files.pythonhosted.org/packages/18/da/0be041613f7b713f3019f042f6b42a99532e31aa75bae150fc9a3c8be46a/plenario_mailer_core-0.0.1-py3-none-any.whl" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "b3612c2407b42bb9a8279f32c605dc42", "sha256": "32c29966387010b1b4c101f5f42fa9bc83932dcbbcbbac873934efd56f6c1c28" }, "downloads": -1, "filename": "plenario_mailer_core-0.0.2-py3-none-any.whl", "has_sig": true, "md5_digest": "b3612c2407b42bb9a8279f32c605dc42", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 10545, "upload_time": "2017-09-27T16:41:29", "url": "https://files.pythonhosted.org/packages/2d/b1/274342f537dc8d984e89f7ae9e079bf2b0410ee1fb4137309ae0032d647d/plenario_mailer_core-0.0.2-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b3612c2407b42bb9a8279f32c605dc42", "sha256": "32c29966387010b1b4c101f5f42fa9bc83932dcbbcbbac873934efd56f6c1c28" }, "downloads": -1, "filename": "plenario_mailer_core-0.0.2-py3-none-any.whl", "has_sig": true, "md5_digest": "b3612c2407b42bb9a8279f32c605dc42", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 10545, "upload_time": "2017-09-27T16:41:29", "url": "https://files.pythonhosted.org/packages/2d/b1/274342f537dc8d984e89f7ae9e079bf2b0410ee1fb4137309ae0032d647d/plenario_mailer_core-0.0.2-py3-none-any.whl" } ] }