bonzo-0.1.2
توضیحات
Bonzo is a minimalistic SMTP Proxy built on top of Tornado.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | bonzo-0.1.2 |
| نام | bonzo |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jorge Puente Sarrín |
| ایمیل نویسنده | puentesarrin@gmail.com |
| آدرس صفحه اصلی | https://github.com/puentesarrin/bonzo |
| آدرس اینترنتی | https://pypi.org/project/bonzo/ |
| مجوز | Apache License, Version 2.0 |
=====
Bonzo
=====
.. image:: https://travis-ci.org/puentesarrin/bonzo.png
:target: https://travis-ci.org/puentesarrin/bonzo
:alt: Travis CI status
.. image:: https://coveralls.io/repos/puentesarrin/bonzo/badge.png
:target: https://coveralls.io/r/puentesarrin/bonzo
:alt: Coveralls status
.. image:: https://pypip.in/v/bonzo/badge.png
:target: https://pypi.python.org/pypi/bonzo
:alt: Latest PyPI version
.. image:: https://pypip.in/d/bonzo/badge.png
:target: https://pypi.python.org/pypi/bonzo
:alt: Number of PyPI downloads
About
=====
Bonzo is a minimalistic SMTP Proxy built on top of Tornado_.
.. code-block:: python
import tornado.ioloop
import email
from bonzo.server import SMTPServer
def receive_message(message):
print "New received message: "
print "From: " + message['from']
print "Subject: " + message['subject']
for line in email.iterators.body_line_iterator(message):
print line
SMTPServer(receive_message).listen(25)
tornado.ioloop.IOLoop.instance().start()
Installation
============
You can to use pip_ to install Bonzo::
$ pip install bonzo
Or using last source::
$ pip install git+git://github.com/puentesarrin/bonzo.git
.. _Tornado: http://tornadoweb.org
.. _pip: http://pypi.python.org/pypi/pip
نحوه نصب
نصب پکیج whl bonzo-0.1.2:
pip install bonzo-0.1.2.whl
نصب پکیج tar.gz bonzo-0.1.2:
pip install bonzo-0.1.2.tar.gz