async-sender-2.0.0
توضیحات
AsyncSender is a tiny module for SMTP mail sending, Inspired by Sender.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | async-sender-2.0.0 |
| نام | async-sender |
| نسخه کتابخانه | 2.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Bakhtiyor Ruziev |
| ایمیل نویسنده | rbakhtiyor+github@gmail.com |
| آدرس صفحه اصلی | https://github.com/theruziev/async_sender |
| آدرس اینترنتی | https://pypi.org/project/async-sender/ |
| مجوز | - |
.. 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")
نیازمندی
| مقدار | نام |
|---|---|
| ==2.0.1 | aiosmtplib |
نحوه نصب
نصب پکیج whl async-sender-2.0.0:
pip install async-sender-2.0.0.whl
نصب پکیج tar.gz async-sender-2.0.0:
pip install async-sender-2.0.0.tar.gz