Barry Warsaw aiosmtpd A better asyncio based SMTP server PyCon 2017

  Рет қаралды 3,336

PyCon 2017

PyCon 2017

Күн бұрын

"Speaker: Barry Warsaw
smtpd.py has been in the standard library for many years. It's been a common tool for deploying SMTP and LMTP servers that handle email-based communication in Python, providing both basic protocol implementations and a fundamental module for higher level tools, such as lazr.smtptest for testing email clients. Based on asyncore and asynchat, smtpd.py is showing its age, and its API is unwieldy.
Fortunately, there's a new alternative available. aiosmtpd is a modern reinvention based on asyncio, with all the improvements that come along with such a new implementation. It provides servers for both the SMTP and LMTP protocols, as well as a higher level ""controller"" API for testing SMTP and LMTP clients. It exposes a much better API for customization, allowing the user to associate a simple ""handler"" to process incoming messages without having to worry about the details of the protocols, and it provides some useful hooks for subclassing.
This talk will describe the purpose and history of smtpd.py and aiosmtpd, show how users can extend the servers and implement specialized handlers, and show how applications can use the testing API for ensuring that their email sending applications do the right things. Examples will be taken from GNU Mailman 3, which uses aiosmtpd extensively.
Slides can be found at: speakerdeck.com/pycon2017 and github.com/PyCon/2017-slides"

Пікірлер: 1
@Zitrone0199
@Zitrone0199 7 жыл бұрын
Actually the first ESMTP RFC was released 1995: tools.ietf.org/html/rfc1869 But Berry Warsaw is right that the current ESMTP RFC is RFC 5321 from 2008.
Eric Evenchick   Hacking Cars with Python   PyCon 2017
29:48
PyCon 2017
Рет қаралды 15 М.
когда повзрослела // EVA mash
00:40
EVA mash
Рет қаралды 4,2 МЛН
1 or 2?🐄
00:12
Kan Andrey
Рет қаралды 50 МЛН
98% Cloud Cost Saved By Writing Our Own Database
21:45
ThePrimeTime
Рет қаралды 316 М.
The Right Way To Build REST APIs
10:07
Awesome
Рет қаралды 42 М.
Benny Bauer   Python in The Serverless Era   PyCon 2017
30:47
PyCon 2017
Рет қаралды 9 М.
Why Isn't Functional Programming the Norm? - Richard Feldman
46:09
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 335 М.