Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thoas/django-events-watcher
A basic django application to log information with a data model
https://github.com/thoas/django-events-watcher
Last synced: 2 months ago
JSON representation
A basic django application to log information with a data model
- Host: GitHub
- URL: https://github.com/thoas/django-events-watcher
- Owner: thoas
- Created: 2012-03-04T20:15:14.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2015-04-02T13:40:10.000Z (over 9 years ago)
- Last Synced: 2024-09-17T00:25:00.157Z (3 months ago)
- Language: Python
- Homepage:
- Size: 234 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
=====================
django-events-watcher
=====================.. image:: https://secure.travis-ci.org/thoas/django-events-watcher.png?branch=master
:alt: Build Status
:target: http://travis-ci.org/thoas/django-events-watcherAdd new events for auth.users::
In [4]: from events_watcher.bridge import backend as events
In [5]: user = User.objects.create_user('newbie', '[email protected]', '$ecret')In [6]: events.add('subscription', user)
Out[6]:In [7]: events.add('subscription', user, date=user.date_joined)
Out[7]:List all events for auth.users::
In [12]: events.list(user)
Out[12]: [, ]In [13]: events.add('last_login', user, date=user.last_login)
Out[13]:In [14]: events.list('last_login')
Out[14]: []Retrieve only one event for a specific event name and auth.users::
In [16]: events.retrieve('last_login', user)
Out[16]:Remove all events with a specific event name::
In [17]: events.remove('last_login')
Compatibility
-------------This library is compatible with:
- python2.6, django1.5
- python2.6, django1.6
- python2.7, django1.5
- python2.7, django1.6
- python2.7, django1.7
- python2.7, django1.8
- python3.3, django1.5
- python3.3, django1.6
- python3.3, django1.7
- python3.3, django1.8
- python3.4, django1.5
- python3.4, django1.6
- python3.4, django1.7
- python3.4, django1.8Installation
------------`python setup.py install`
OR
put the ``events_watcher`` folder on your python-path
Add ``events_watcher.backends.database`` to your `INSTALLED_APPS` if you want to
use the RDMS backend connector with the Django ORM.Roadmap
-------Currently only databases shipped with the default Django ORM is supported and
the API is very simple.Custom backends could be done to store results in NoSQL databases like: ``redis`` or
``MongoDB``.Notes
-----``events_watcher`` uses a ``load_class`` helper in its ``utils`` module which can be found at `django-shop `_.