Metadata-Version: 2.1
Name: pymail-io
Version: 0.0.2
Summary: An asynchronous mail server
Home-page: https://github.com/joegasewicz/pymail_io
Author: Joe Gasewicz
Author-email: joegasewicz@gmail.com
License: UNKNOWN
Description: ![PyMailIO](assets/pymail_io.png)
        
         An Asynchronous mail server that's built on CPython's AsyncIO library.
        
        
        ```bash
        pip install pymail-io
        ```
        
        #### Quick Start
        
        
        There are 3 ways to use PyMailIO:
        
        
        Running PyMailIO as a complete emailing solution:
        
        ```python
        from pymail_io.pymailio_task import PyMailIOTask
        
        p = PyMailIOTask(
            password="wizard",
            receiver_email="joe@blogs.com", # Or a list of emails receiver_email=["joe@blogs.com", ...],
            sender_email="your_email@gmail.com",
            host="smtp.gmail.com",
        )
        # Create your email subject & body
        email_meta = p.send_email(
            subject="The subject...",
            body="The email body...",
        )
        # Get a response from your sent email:
        res = p.get_email_response(email_meta)
        ```
        
        ##### Coming soon:
        
        Running PyMailIO as an asyncio coroutine:
        
        ```python
        from pymail_io.pymailio_async import PymailIOAsync
        
        p = PymailIOAsync(
            password="wizard",
            receiver_email="joe@blogs.com",
            sender_email="your_email@gmail.com",
            host="smtp.gmail.com",
        )
        # Create your email subject & body as a coroutine & await
        email_meta = await p.send_email(
            subject="The subject...",
            body="The email body...",
        )
        # Await a response from your sent email as a coroutine:
        res = await p.get_email_response(email_meta)
        ```
        ##### Coming soon:
        
        Running PyMailIO as a synchronous function (You will need to handle blocking & response):
        
        ```python
        from pymail_io.pymailio_sync import PyMailIOSync
        
        p = PyMailIOSync(
            password="wizard",
            receiver_email="joe@blogs.com",
            sender_email="your_email@gmail.com",
            host="smtp.gmail.com",
        )
        # Create your email subject & body
        email_meta = p.send_email(
            subject="The subject...",
            body="The email body...",
        )
        ```
        
        
        ## Built With
        
        * [PyTaskIO](https://github.com/joegasewicz/pytask_io) - Asynchronous Tasks Library using asyncio
        
        
        ## Authors
        
        * **Joe Gasewicz** - *Initial work* - [JoeGasewicz](https://github.com/joegasewicz/)
        
        ## License
        
        This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
        
        ## Acknowledgments
        
        This library is based on & influenced by [flask-mail](https://github.com/mattupstate/flask-mail).
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
