Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

Django API wrapper for mailing delivery service: http://get-n-post.ru/

Project Description

API обёртка на Python над сервисом get-n-post.ru.

Зависимости

Пакету требуются: requests и lxml.

Установка и настройка

Установить пакет из PyPI:

$ pip install django-banzai

Добавить приложение banzai в ваши INSTALLED_APPS.

Заполнить в настройках BANZAI_API_KEY - API-ключ, сгенерированный сервисом для вашего IP-адреса.

Использование

Отправить email с django-совместимым синтаксисом:

from banzai.base import send_mail

send_mail('subject', 'mail body', 'from@myprojectand.me', ['to@lovely.users'])

Или отправить email согласно принципам get-n-post:

from banzai.mail import MailPackage
from banzai.api import BanzaiAPI

mail_package = MailPackage(email_from, name_from, subject, message)
mail_package.add_recipients(recipient_list)
package = mail_package.save()

banzai_api_obj = BanzaiAPI(package)
package = banzai_api_obj.add()

Release history Release notifications

This version
History Node

0.2

History Node

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-banzai-0.2.tar.gz (10.2 kB) Copy SHA256 hash SHA256 Source None Dec 16, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page