aioyagmail -- Yet Another GMAIL/SMTP client, using AsyncIO
The goal here is to make it as simple and painless as possible to send emails using asyncio.
In the end, your code will look something like this:
import asyncio
from aioyagmail import AIOSMTP
loop = asyncio.get_event_loop()
async def send_single():
# walks you through oauth2 process if no file at this location
async with AIOSMTP(oauth2_file="~/oauth2_gmail.json") as yag:
await yag.send(to="someone@gmail.com", subject="hi")
async def send_multi():
async with AIOSMTP(oauth2_file="~/oauth2_gmail.json") as yag:
# Runs asynchronously!
await asyncio.gather(yag.send(subject="1"),
yag.send(subject="2"),
yag.send(subject="3"))
loop.run_until_complete(send_single())
loop.run_until_complete(send_multi())
Username and password
It is possible like in yagmail to use username and password, but this is not actively encouraged anymore.
See https://github.com/kootenpv/yagmail#username-and-password how to do it.
For more information
Have a look at yagmail. Any issue NOT related to async should be posted there (or found out about).
Word of caution
Watch out that gmail does not block you for spamming. Using async you could potentially be sending emails too rapidly.
Donate
If you like aioyagmail, feel free (no pun intended) to donate any amount you'd like :-)
Metadata
Release files for aioyagmail 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| aioyagmail-0.0.4.tar.gz | 4.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aioyagmail-0.0.4-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 9.0 kB
Release files / aioyagmail-0.0.4.tar.gz
| Download URL | aioyagmail-0.0.4.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f360dcce75bc378ada2dbce77970486a97fc5e20bfda17ded95a95b92e7ac7c
|
|
BLAKE2b-256 checksum How to use checksums |
2383ce8539b03590d6b551958fc653879432361fcdc52a590b1769f53a04f7b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / aioyagmail-0.0.4-py2.py3-none-any.whl
| Download URL | aioyagmail-0.0.4-py2.py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
981eb7b9694a1ca85c5ea6aa2c19af4f1082b8b5ef4382142e751c3a30c11478
|
|
BLAKE2b-256 checksum How to use checksums |
2ffa1a67515ac17701275955801edefdd4c589626b7e8582c17a4d66abab906d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for aioyagmail 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.