A pluggable notification system written for the Django framework.
Project description
django-nyt
==========
django-nyt does this:
.. code:: python
from django_nyt.utils import notify
EVENT_KEY = "my_key"
notify(_("OMG! Something happened"), EVENT_KEY)
All users subscribing to ``EVENT_KEY`` will have a notification created
in their stack. If you have emails enabled, they may get a summary of
notifications at an interval of their choice.
Data can be accessed easily from Django models or from the included JSON
views.
Why should you do this?
-----------------------
Users need a cleverly sifted stream of events that's highly customizable
as well. By using django-nyt, your users can subscribe to global events
or specific events pertaining specific objects.
Each event can be associated with a link so the user can use the
notifications as shortcuts in their work flow.
What do you need to do?
-----------------------
You need to do a lot! But django-nyt does everything to meet as many
needs as possible. Firstly, you need to write some javascript that will
fetch the latest notifications and display them in some area of the
screen. Upon clicking that icon, the latest notifications are displayed.
Something like this:
.. figure:: https://raw.githubusercontent.com/benjaoming/django-nyt/master/docs/misc/screenshot_dropdown.png
:alt: Javascript drop-down
Javascript drop-down
Some examples are provided, but there is no real easy way to place this
nifty little thing at the top of your site.
Other things for your TODO list:
- Provide your users with options to customize their subscriptions and
notification preferences
- Customize contents of notification emails
- Make the mail notification daemon script run
``python manage.py notifymail --daemon``
- Put calls to ``notify(...)`` where ever necessary
Docs
----
Here:
http://django-nyt.readthedocs.org/en/latest/
Community
---------
Please visit #django-wiki on irc.freenode.net as many django-wiki users
are also familiar with django-nyt which previously lived inside
django-wiki.
Development
-----------
In your Git fork, run ``pip install -r requirements.txt`` to install the
requirements.
The folder **testproject/** contains a pre-configured django project and
an sqlite database. Login for django admin is *admin:admin*.
|Build Status|
|Downloads|
|Downloads|
|Wheel Status|
|Egg Status|
*This is a work in progre..*
----------------------------
Please refer to the
`TODO <https://github.com/benjaoming/django-nyt/blob/master/TODO.md>`__
.. |Build Status| image:: https://travis-ci.org/benjaoming/django-nyt.png?branch=master
:target: https://travis-ci.org/benjaoming/django-nyt
.. |Downloads| image:: https://pypip.in/d/django-nyt/badge.png
:target: https://pypi.python.org/pypi/django-nyt
.. |Downloads| image:: https://pypip.in/v/django-nyt/badge.png
:target: https://pypi.python.org/pypi/django-nyt
.. |Wheel Status| image:: https://pypip.in/wheel/django-ny/badge.svg
:target: https://pypi.python.org/pypi/django-nyt/
.. |Egg Status| image:: https://pypip.in/egg/django-nyt/badge.svg
:target: https://pypi.python.org/pypi/django-nyt/
==========
django-nyt does this:
.. code:: python
from django_nyt.utils import notify
EVENT_KEY = "my_key"
notify(_("OMG! Something happened"), EVENT_KEY)
All users subscribing to ``EVENT_KEY`` will have a notification created
in their stack. If you have emails enabled, they may get a summary of
notifications at an interval of their choice.
Data can be accessed easily from Django models or from the included JSON
views.
Why should you do this?
-----------------------
Users need a cleverly sifted stream of events that's highly customizable
as well. By using django-nyt, your users can subscribe to global events
or specific events pertaining specific objects.
Each event can be associated with a link so the user can use the
notifications as shortcuts in their work flow.
What do you need to do?
-----------------------
You need to do a lot! But django-nyt does everything to meet as many
needs as possible. Firstly, you need to write some javascript that will
fetch the latest notifications and display them in some area of the
screen. Upon clicking that icon, the latest notifications are displayed.
Something like this:
.. figure:: https://raw.githubusercontent.com/benjaoming/django-nyt/master/docs/misc/screenshot_dropdown.png
:alt: Javascript drop-down
Javascript drop-down
Some examples are provided, but there is no real easy way to place this
nifty little thing at the top of your site.
Other things for your TODO list:
- Provide your users with options to customize their subscriptions and
notification preferences
- Customize contents of notification emails
- Make the mail notification daemon script run
``python manage.py notifymail --daemon``
- Put calls to ``notify(...)`` where ever necessary
Docs
----
Here:
http://django-nyt.readthedocs.org/en/latest/
Community
---------
Please visit #django-wiki on irc.freenode.net as many django-wiki users
are also familiar with django-nyt which previously lived inside
django-wiki.
Development
-----------
In your Git fork, run ``pip install -r requirements.txt`` to install the
requirements.
The folder **testproject/** contains a pre-configured django project and
an sqlite database. Login for django admin is *admin:admin*.
|Build Status|
|Downloads|
|Downloads|
|Wheel Status|
|Egg Status|
*This is a work in progre..*
----------------------------
Please refer to the
`TODO <https://github.com/benjaoming/django-nyt/blob/master/TODO.md>`__
.. |Build Status| image:: https://travis-ci.org/benjaoming/django-nyt.png?branch=master
:target: https://travis-ci.org/benjaoming/django-nyt
.. |Downloads| image:: https://pypip.in/d/django-nyt/badge.png
:target: https://pypi.python.org/pypi/django-nyt
.. |Downloads| image:: https://pypip.in/v/django-nyt/badge.png
:target: https://pypi.python.org/pypi/django-nyt
.. |Wheel Status| image:: https://pypip.in/wheel/django-ny/badge.svg
:target: https://pypi.python.org/pypi/django-nyt/
.. |Egg Status| image:: https://pypip.in/egg/django-nyt/badge.svg
:target: https://pypi.python.org/pypi/django-nyt/
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
django-nyt-0.9.7.2.tar.gz
(22.9 kB
view details)
Built Distribution
File details
Details for the file django-nyt-0.9.7.2.tar.gz
.
File metadata
- Download URL: django-nyt-0.9.7.2.tar.gz
- Upload date:
- Size: 22.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e5d51756a45e9190f2476c0fe0b7edbc7b2590811fd25ff2f7f3d78b6ce70fa |
|
MD5 | 7143932181f7a650df41f326ad611cbf |
|
BLAKE2b-256 | 008a4d372a84dc157fc81f1dfbab0281062be039411c8f2ade5b777e2cc9b096 |
File details
Details for the file django_nyt-0.9.7.2-py2.py3-none-any.whl
.
File metadata
- Download URL: django_nyt-0.9.7.2-py2.py3-none-any.whl
- Upload date:
- Size: 29.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3331258d666be8073b574f39e0ece708ab0833f6084317dbcfc654ff619205a9 |
|
MD5 | cf45f35685b2193177dd8c49269e871a |
|
BLAKE2b-256 | 3c74f29ca718ea884118d7bd87732e2ba967036d4999aaf710107faee9a78599 |