Skip to main content

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

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page