async-sender


Nameasync-sender JSON
Version 3.0.0 PyPI version JSON
download
home_pagehttps://github.com/theruziev/async_sender
SummaryAsyncSender is a tiny module for SMTP mail sending, Inspired by Sender.
upload_time2023-12-16 09:47:40
maintainer
docs_urlNone
authorBakhtiyor Ruziev
requires_python
license
keywords email sender smtp asyncio
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. image:: https://img.shields.io/travis/com/theruziev/async_sender.svg?style=flat-square
        :target: https://travis-ci.com/theruziev/async_sender
.. image:: https://img.shields.io/codecov/c/github/theruziev/async_sender.svg?style=flat-square
        :target: https://codecov.io/gh/theruziev/async_sender
.. image:: https://img.shields.io/pypi/v/async_sender.svg?style=flat-square   
        :alt: PyPI   
        :target: https://pypi.org/project/async_sender/


AsyncSender provides a simple interface to set up a SMTP connection and send email messages asynchronously.


Installation
------------

Install with the following command

.. code-block:: bash

    pip install async_sender


Quickstart
----------

AsyncSender is really easy to use.  Emails are managed through a `Mail`
instance

.. code-block:: python

    from async_sender import Mail
    import asyncio


    async def run():
        mail = Mail()

        await mail.send_message("Hello", from_address="from@example.com",
                                to="to@example.com", body="Hello world!")


    asyncio.run(run())


Message
-------

To send one message, we need to create a `Message` instance

.. code-block:: python

    from async_sender import Message

    msg = Message("demo subject", from_address="from@example.com",
                  to="to@example.com")






            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/theruziev/async_sender",
    "name": "async-sender",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "email,sender,smtp,asyncio",
    "author": "Bakhtiyor Ruziev",
    "author_email": "rbakhtiyor+github@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/08/54/837e23ab4b757c655e6acff1707ccfa1aec1db7e243a1670afd93eb16097/async_sender-3.0.0.tar.gz",
    "platform": null,
    "description": ".. image:: https://img.shields.io/travis/com/theruziev/async_sender.svg?style=flat-square\n        :target: https://travis-ci.com/theruziev/async_sender\n.. image:: https://img.shields.io/codecov/c/github/theruziev/async_sender.svg?style=flat-square\n        :target: https://codecov.io/gh/theruziev/async_sender\n.. image:: https://img.shields.io/pypi/v/async_sender.svg?style=flat-square   \n        :alt: PyPI   \n        :target: https://pypi.org/project/async_sender/\n\n\nAsyncSender provides a simple interface to set up a SMTP connection and send email messages asynchronously.\n\n\nInstallation\n------------\n\nInstall with the following command\n\n.. code-block:: bash\n\n    pip install async_sender\n\n\nQuickstart\n----------\n\nAsyncSender is really easy to use.  Emails are managed through a `Mail`\ninstance\n\n.. code-block:: python\n\n    from async_sender import Mail\n    import asyncio\n\n\n    async def run():\n        mail = Mail()\n\n        await mail.send_message(\"Hello\", from_address=\"from@example.com\",\n                                to=\"to@example.com\", body=\"Hello world!\")\n\n\n    asyncio.run(run())\n\n\nMessage\n-------\n\nTo send one message, we need to create a `Message` instance\n\n.. code-block:: python\n\n    from async_sender import Message\n\n    msg = Message(\"demo subject\", from_address=\"from@example.com\",\n                  to=\"to@example.com\")\n\n\n\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "AsyncSender is a tiny module for SMTP mail sending, Inspired by Sender.",
    "version": "3.0.0",
    "project_urls": {
        "Homepage": "https://github.com/theruziev/async_sender"
    },
    "split_keywords": [
        "email",
        "sender",
        "smtp",
        "asyncio"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "65cfc0f1bbb9de7074c02a8cdb488a8286f025978c000afc6f94fbd333d3459e",
                "md5": "22400f7c6d54c7b49211b369d66cc3af",
                "sha256": "29ec01ce1c7b1e405aab26ba47bc3a78fa585d8c96843691a5fa54359102bf80"
            },
            "downloads": -1,
            "filename": "async_sender-3.0.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "22400f7c6d54c7b49211b369d66cc3af",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 6578,
            "upload_time": "2023-12-16T09:47:37",
            "upload_time_iso_8601": "2023-12-16T09:47:37.711538Z",
            "url": "https://files.pythonhosted.org/packages/65/cf/c0f1bbb9de7074c02a8cdb488a8286f025978c000afc6f94fbd333d3459e/async_sender-3.0.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0854837e23ab4b757c655e6acff1707ccfa1aec1db7e243a1670afd93eb16097",
                "md5": "97f0ff85b959598a7ee96935ded34239",
                "sha256": "2a990e9119ab6670692d03d6a7f14f61af7d0dcda2674f6779d8d53fb2ff5da2"
            },
            "downloads": -1,
            "filename": "async_sender-3.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "97f0ff85b959598a7ee96935ded34239",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 6345,
            "upload_time": "2023-12-16T09:47:40",
            "upload_time_iso_8601": "2023-12-16T09:47:40.493648Z",
            "url": "https://files.pythonhosted.org/packages/08/54/837e23ab4b757c655e6acff1707ccfa1aec1db7e243a1670afd93eb16097/async_sender-3.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-16 09:47:40",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "theruziev",
    "github_project": "async_sender",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "async-sender"
}
        
Elapsed time: 0.16151s