A client-server notification system for HTML emails, sms and more.
Project description
🚩 Table of contents
👀 What is tattler?
Are you building an online service and need to send beautiful, branded notifications via email or SMS to your users?
Tattler makes that easy for you. Your application makes a simple HTTP call to tattler:
curl -X POST 'http://127.0.0.1:11503/notification/mywebapp/password_changed/?user=123'
Tattler helps you with these:
Templates: Load templates for event password_changed for email, SMS etc.
Addressbook: Fetch the user’s email address and mobile number from your DB (with trivial-to-write plug-ins).
Template data: Fetch variables for your templates from your DB (with trivial-to-write plug-ins).
MIME: Package a multi-part email with HTML+text fallback.
Delivery: Send the content through SMTP and an SMS delivery network.
Dev mode: Let your applications trigger notifications to the real user and have tattler only deliver it to your debug address.
Tattler is designed with simplicity in mind. It strives to be easy to adopt and useful among common needs – so you can focus on your communication, brand and customer journey.
If your system sends notifications from multiple different softwares – say a web application, a billing daemon, and a cron job which monitors inventory – then your simplification gains with tattlers get multipled 🚀
😵💫 Don’t beat around the bush!
Tattler is:
a server
written in python
for UNIX systems
that exposes a REST interface
which your applications contact
to request delivery of notifications to users.
🤩 Examples
Here’s a little gallery of notifications sent via tattler to email and SMS:
🚀 Quick start
Install tattler:
# create and load a virtualenv to install into
mkdir ~/tattler_quickstart
python3 -m venv ~/tattler_quickstart/venv
. ~/tattler_quickstart/venv/bin/activate
# install tattler into it
pip install tattler
Run tattler server:
export TATTLER_MASTER_MODE=production
# if you need to customize your SMTP settings
export TATTLER_SMTP_ADDRESS="127.0.0.1:25"
export TATTLER_SMTP_AUTH="username:password" # you will learn secure configuration later
export TATTLER_SMTP_TLS=yes
# run tattler server on default 127.0.0.1:11503
tattler_server
Trigger a demo notification via HTTP:
# in a new terminal:
# replace ``your@email.com`` with your actual email address
curl -X POST 'http://127.0.0.1:11503/notification/demoscope/demoevent/?mode=production&user=your@email.com'
… or via command-line utility:
# load the same virtual environment where you installed tattler server
. ~/tattler_quickstart/venv/bin/activate
# replace ``your@email.com`` with your actual email address
tattler_notify -s '127.0.0.1:11503' -m production your@email.com demoscope demoevent
… or via tattler’s python SDK:
from tattler.client.tattler_py import send_notification
# replace ``your@email.com`` with your actual email address
send_notification('demoscope', 'demoevent', 'your@email.com', mode='production', srv_addr='127.0.0.1', srv_port=11503)
Done!
Want more? Proceed to the complete quickstart in tattler’s documentation for plug-ins, deployment and more.
💙 Help us be better
Here’s how you can help, in order of increasing time commitment 🙂
⭐️ star our repository if you like tattler. That’s our go-to place whenever we feel sad! 😁
Let us know that you are using tattler. How long? For what organization? What is your feedback?
Let your friends know about tattler. If you found it useful, chances are they will too.
Report any issue in our code or docs. We take those seriously.
Package tattler for your distribution.
See ways to contribute in our contributing guidelines.
🎖️ License
Tattler is open-source software (BSD 3-clause license).
📈 Enterprise users
Tattler is enterprise-friendly. Enterprise users avail of a subscription which provides a bugfixing warranty, extra features, and patronage for the continuity of the project.
📌 Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tattler-1.5.0.tar.gz
.
File metadata
- Download URL: tattler-1.5.0.tar.gz
- Upload date:
- Size: 70.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18f583b2dc74eda1126de3a5faa3ccc44c0ebbc1122243646f3618f25f4ee431 |
|
MD5 | fe57851bfea4bd1c031cdf7006052e62 |
|
BLAKE2b-256 | b11cb9f4a3e701824effd4438680451ea2564bf35449e5e3559d332b1c4b7938 |
File details
Details for the file tattler-1.5.0-py3-none-any.whl
.
File metadata
- Download URL: tattler-1.5.0-py3-none-any.whl
- Upload date:
- Size: 89.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7333bad1ad104661cc615c00562b3dc16e5cdf647ddd4f20c36f020e7795877 |
|
MD5 | 2341e99ff9ee98e28b9f50b31c87cfe2 |
|
BLAKE2b-256 | 8d386d4f93f240702904b83e0b3ec60d7e8680edec1a345c225cb83ef7487734 |