django-banzai
API обёртка на Python над сервисом get-n-post.ru.
Зависимости
Установка и настройка
Установить пакет из 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()
Metadata
Release files for django-banzai 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-banzai-0.2.tar.gz | 10.2 kB | Without provenance | Details for django-banzai-0.2.tar.gz |
Release files / django-banzai-0.2.tar.gz
| Download URL | django-banzai-0.2.tar.gz |
|---|---|
| Size | 10.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
75acc691dff93c7f601ded93ced3427d99a38763a8633b5cb04c7cf4da69cdbd
|
|
BLAKE2b-256 checksum How to use checksums |
abf7680dd68f041baf07e6868e8f6b0b3565b2693aecd5b9e9053d7ff3ef9a24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-banzai 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.