【文件属性】:
文件名称:srslib:适用于Python的发件人重写方案(SRS)库
文件大小:202KB
文件格式:ZIP
更新时间:2021-05-17 09:41:12
python mailserver Python
srslib-用于Python的发件人重写方案(SRS)库
srslib是的现代Python实现。
强调:
兼容Python 2.7和3.x;
实施标准的“受保护的” SRS方案,如;
易于使用和理解。
安装
pip install srslib
用法示例
import srslib
srs = srslib . SRS ( 'my_secret_key' )
# Rewrites an email from alice@A.com to B.com
rewritten_addr = srs . forward ( 'alice@A.com' , 'B.com' )
# => 'SRS0=ZPM1=67=A.com=alice@B.com'
# Reverse it to get the address to bounce to.
try :
bounce_addr = sr
【文件预览】:
srslib-master
----README.rst(2KB)
----docs()
--------doctrees()
--------html()
----conf.py(2KB)
----test_srslib.py(4KB)
----LICENSE(11KB)
----setup.cfg(22B)
----setup.py(3KB)
----.gitignore(1KB)
----Makefile(2KB)
----README.md(2KB)
----index.rst(626B)
----srslib.py(14KB)