The Django package to send all type of notifications like magic
Project description
Ninagram
A framework built on top Django and python-telegram-bot!
Why Ninagram?
If you ever developed a Telegram bot using python-telegram-bot rapidly you will need to have persitence, you will discover that you write again and again the same code with a slightly difference and you start dealing with conversation-oriented bots. It is true that python-telegram-bot has his own system to solve those problems like ConversationHandler and the new persistence system introduced in the v12. But it was not sufficient for me so i decided to extend it. Ninagram use the Django ORM to provide persistence and a simple but yet powerful system based on the State-step pattern to handle conversational bots. But Ninagram always comes with plenty of features like a SessionMiddleware, a runtime permisions system and States from Models.
.. image:: https://img.shields.io/pypi/l/ninagram .. image:: https://img.shields.io/pypi/v/ninagram
Installation
$pip install --upgrade ninagram
Features
- Persistence with Django ORM
- Simple and power States (machine)
- SessionMiddleware
- Automatic usage of default Django User model
- Django 2.2 supported. Plug-and-play.
- Fine grained permissions (States and Steps)
- States generation from Models
- Runtime storage
Usage
.. code-block:: python
django-admin startproject testbot
cd testbot
python manage.py startapp base
python manage.py startbot base
python manage.py runbot
Docs and support
You can find the documentation at https://ninagram.readthedocs.org For any question join https://t.me/
Roadmap
- Using JSON to declare the States of a bot
- Simple language to declare Actions and match them to PTB methods (Bot API functions)
- Studio, to build bot with drag-and-drop.
Contributing
Contribution are welcome and required. The only rule is to not break the State-Step pattern.
License
As per the license, feel free to use the the framework as you want.
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
Hashes for django-magic-notifier-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7291cf6dea2e4a4e18cf8339602fa1a24136d78bc6f77c9e66a03c6b6d5d7f5 |
|
MD5 | 0c1b4c36066f9ba0963413723bcec916 |
|
BLAKE2b-256 | d58c232e991543a68fd9710709dd04a3ccba92025a0f56d25fd3b3b3d91b4ecf |
Hashes for django_magic_notifier-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02365bc6d5d9fd0acb47026a47b0a4b6bb2cdfd74af8754d0761263edc0a796b |
|
MD5 | 7b3eb813d6c5775e948c0fb5672aadbc |
|
BLAKE2b-256 | c86ecebd8ca1ee402085612ee89bcf6eed7ac23d157a281310d812963f24dcb9 |