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.

Source Distribution

django-banzai-0.2.tar.gz (10.2 kB view details)

Uploaded Source

File details

Details for the file django-banzai-0.2.tar.gz.

File metadata

  • Download URL: django-banzai-0.2.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-banzai-0.2.tar.gz
Algorithm Hash digest
SHA256 75acc691dff93c7f601ded93ced3427d99a38763a8633b5cb04c7cf4da69cdbd
MD5 f5dab2b5673a69b2fd57d58c5a3756c4
BLAKE2b-256 abf7680dd68f041baf07e6868e8f6b0b3565b2693aecd5b9e9053d7ff3ef9a24

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page