{ "info": { "author": "Aleksandr Kurlov", "author_email": "sasha.kurlov@yandex.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: AsyncIO", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Communications :: Email", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "aiohttp-sendgrid\n================\n.. image:: https://travis-ci.org/Kurlov/aiohttp-sendgrid.svg?branch=master\n :target: https://travis-ci.org/Kurlov/aiohttp-sendgrid\n.. image:: https://badge.fury.io/py/aiohttp-sendgrid.svg\n :target: https://badge.fury.io/py/aiohttp-sendgrid\n\nSendGrid mail API wrapper\n\nInstallation\n------------\n``pip install aiohttp_sendgrid``\n\nUsage\n-----\nCreate an instance of API client:\n\n.. code:: python\n\n import asyncio\n from aiohttp_sendgrid import Sendgrid\n api_key = ''\n mailer = Sendgrid(api_key=api_key)\n\nImportant to note that if ``api_key`` is not provided then it will try to\nread ``SENDGRID_API_KEY`` environment variable\n\nSend email to single recipient\n-------------------------------\n.. code:: python\n\n to = 'to@example.com'\n sender = 'from@example.com'\n subject = 'greetings'\n content = '

Hello

'\n send_mail = mailer.send(to, sender, subject, content)\n loop = asyncio.get_event_loop()\n loop.run_until_complete(send_mail)\n\nBoth ``to`` and ``sender`` might be also a dictionary with ``email`` key,\nif you want to specify name for sender or recipient then add ``name`` key to\nthe dictionary. Thus, ``to = {'email': 'to@example.com', 'name': 'Recipient'}``\nis also a correct value.\n\nSend single email to multiple recipients\n----------------------------------------\n.. code:: python\n\n to = ['to@example.com', 'another@example']\n sender = 'from@example.com'\n subject = 'greetings'\n content = '

Hello

'\n send_mail = mailer.send(to, sender, subject, content)\n loop = asyncio.get_event_loop()\n loop.run_until_complete(send_mail)\n\n``to`` might be tuple or list of strings or dictionaries.\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "https://pypi.python.org/pypi/aiohttp-sendgrid", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/kurlov/aiohttp-sendgrid", "keywords": "aiohttp sendgrid", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "aiohttp-sendgrid", "package_url": "https://pypi.org/project/aiohttp-sendgrid/", "platform": "", "project_url": "https://pypi.org/project/aiohttp-sendgrid/", "project_urls": { "Download": "https://pypi.python.org/pypi/aiohttp-sendgrid", "Homepage": "https://github.com/kurlov/aiohttp-sendgrid" }, "release_url": "https://pypi.org/project/aiohttp-sendgrid/0.0.4/", "requires_dist": [ "aiohttp (>=2.3.7)" ], "requires_python": "", "summary": "SendGrid mail send API wrapper", "version": "0.0.4" }, "last_serial": 3478815, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "a9dfb6a76863bd7fed9fd653d3be5f3d", "sha256": "0aa5c8951a17cc1b35b359f067e9095257144e3ee7be48972f8c1c7ee23e3251" }, "downloads": -1, "filename": "aiohttp_sendgrid-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "a9dfb6a76863bd7fed9fd653d3be5f3d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3051, "upload_time": "2018-01-07T02:45:41", "url": "https://files.pythonhosted.org/packages/4c/11/2e90b59b007f0f36314ccb21fdfd375013dd878fd4ce30e2dc96ac55247d/aiohttp_sendgrid-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9497f0e3ccf35b0c5ed88deb7d36e7d0", "sha256": "39bfe8549daa8459056fedc0e59b2050b31b174298f97bbefe6f0057f363498a" }, "downloads": -1, "filename": "aiohttp_sendgrid-0.0.1.tar.gz", "has_sig": false, "md5_digest": "9497f0e3ccf35b0c5ed88deb7d36e7d0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3200, "upload_time": "2018-01-07T02:45:42", "url": "https://files.pythonhosted.org/packages/14/5a/844086303a57ab90cab82dcd70ae77c05eb348a1abfe958ba47045a188cb/aiohttp_sendgrid-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "9bf8d597d3a7ee7f46569fa6843abd2b", "sha256": "232d4b7e844bb551afc69def20d00b2c2e33dc3cc210792ed61502b03aa15da6" }, "downloads": -1, "filename": "aiohttp_sendgrid-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "9bf8d597d3a7ee7f46569fa6843abd2b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4289, "upload_time": "2018-01-08T16:57:33", "url": "https://files.pythonhosted.org/packages/63/b6/9996030c6b460a7cebfd18a705b96c6eb0d8beaafaa0ee24ff373e80282d/aiohttp_sendgrid-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6c00a90d8c93e06b74ed730c8475634b", "sha256": "6f8b1307a18faada97cef03cbd92f9aa41e6a8cd8315ebf4a19d273f6a372f33" }, "downloads": -1, "filename": "aiohttp_sendgrid-0.0.2.tar.gz", "has_sig": false, "md5_digest": "6c00a90d8c93e06b74ed730c8475634b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3561, "upload_time": "2018-01-08T16:57:35", "url": "https://files.pythonhosted.org/packages/04/e0/76685f8934c9a98d75827c3dfcc7dd2deac24b58e7fc6ef08a69e2d25071/aiohttp_sendgrid-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "4a3bd895e01e07938a5b715783c1e27f", "sha256": "ca3307bc0d5546e9511150774a63c46b361cac370c6b3e37e4625fe2f0c0ec81" }, "downloads": -1, "filename": "aiohttp_sendgrid-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "4a3bd895e01e07938a5b715783c1e27f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5079, "upload_time": "2018-01-09T22:40:14", "url": "https://files.pythonhosted.org/packages/3a/0d/b90f24ba3be0e585ebec761153b8afcd2be61c46ef840f4dedc430747f08/aiohttp_sendgrid-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c6835ac3f5873e3c21131c62d5f4034a", "sha256": "e6d17a6fd7f491e8514e5324b1dfad071cf86aa8af8fc9a5b97f566d65aca8cf" }, "downloads": -1, "filename": "aiohttp_sendgrid-0.0.3.tar.gz", "has_sig": false, "md5_digest": "c6835ac3f5873e3c21131c62d5f4034a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4284, "upload_time": "2018-01-09T22:40:15", "url": "https://files.pythonhosted.org/packages/44/60/ecf87ebcf3f72036a2417e7936454e295c53816f204855de7c830f76aa91/aiohttp_sendgrid-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "bcfa7bcf8cc9534900a50f96f8a6ddb5", "sha256": "7c7a735b3e92426c3a3afd49340317c4651d22799759ced1fbb9323de3f9799c" }, "downloads": -1, "filename": "aiohttp_sendgrid-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "bcfa7bcf8cc9534900a50f96f8a6ddb5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6141, "upload_time": "2018-01-10T20:40:16", "url": "https://files.pythonhosted.org/packages/d9/68/621c2a9bee8c45240bf435e54bb04a3a75ddafb5e1fff9614df4b4c352bb/aiohttp_sendgrid-0.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9661d10aeec52781910dce6db4a6db65", "sha256": "ed966f5ea95c2dcb324577befb58ef62e6ff3b70b4781e43a880aa1a02027675" }, "downloads": -1, "filename": "aiohttp_sendgrid-0.0.4.tar.gz", "has_sig": false, "md5_digest": "9661d10aeec52781910dce6db4a6db65", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5027, "upload_time": "2018-01-10T20:40:18", "url": "https://files.pythonhosted.org/packages/74/1f/2f9c6a3b254440d904af87fa0e3ce9fb73b6dff84fce3ef050a79b8b90b9/aiohttp_sendgrid-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bcfa7bcf8cc9534900a50f96f8a6ddb5", "sha256": "7c7a735b3e92426c3a3afd49340317c4651d22799759ced1fbb9323de3f9799c" }, "downloads": -1, "filename": "aiohttp_sendgrid-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "bcfa7bcf8cc9534900a50f96f8a6ddb5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6141, "upload_time": "2018-01-10T20:40:16", "url": "https://files.pythonhosted.org/packages/d9/68/621c2a9bee8c45240bf435e54bb04a3a75ddafb5e1fff9614df4b4c352bb/aiohttp_sendgrid-0.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9661d10aeec52781910dce6db4a6db65", "sha256": "ed966f5ea95c2dcb324577befb58ef62e6ff3b70b4781e43a880aa1a02027675" }, "downloads": -1, "filename": "aiohttp_sendgrid-0.0.4.tar.gz", "has_sig": false, "md5_digest": "9661d10aeec52781910dce6db4a6db65", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5027, "upload_time": "2018-01-10T20:40:18", "url": "https://files.pythonhosted.org/packages/74/1f/2f9c6a3b254440d904af87fa0e3ce9fb73b6dff84fce3ef050a79b8b90b9/aiohttp_sendgrid-0.0.4.tar.gz" } ] }