Skip to main content
Join the official 2019 Python Developers SurveyStart the 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()

Project details


Download files

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

Files for django-banzai, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size django-banzai-0.2.tar.gz (10.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

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