Skip to main content
Build Status

Add new events for auth.users:

In [4]: from events_watcher.bridge import backend as events
In [5]: user = User.objects.create_user('newbie', 'newbie@example.com', '$ecret')

In [6]: events.add('subscription', user)
Out[6]: <Event: subscription for newbie>

In [7]: events.add('subscription', user, date=user.date_joined)
Out[7]: <Event: subscription for newbie>

List all events for auth.users:

In [12]: events.list(user)
Out[12]: [<Event: subscription for newbie>, <Event: subscription for newbie>]

In [13]: events.add('last_login', user, date=user.last_login)
Out[13]: <Event: last_login for newbie>

In [14]: events.list('last_login')
Out[14]: [<Event: last_login for newbie>]

Retrieve only one event for a specific event name and auth.users:

In [16]: events.retrieve('last_login', user)
Out[16]: <Event: last_login for newbie>

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.8

Installation

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.

Release files for django-events-watcher 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-events-watcher 0.3.3
File Size Uploaded
django-events-watcher-0.3.3.tar.gz 8.3 kB Details

Release files / django-events-watcher-0.3.3.tar.gz

Download URL django-events-watcher-0.3.3.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0b54620adf4966f1bd36e345340a09a16a8da3180865e9c5669cdddb40c9ec5d
BLAKE2b-256 checksum
How to use checksums
70a2f9cbcff81df70ca818e3be54c79021056c5008f5fafc3be272c40edb4809
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.3 This release

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3

1 release file

0.2.1

1 release file

0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page