skip to navigation
skip to content

Not Logged In

django_th 0.8.3

Django Trigger Happy acts when events occur and triggers actions for your account on all the social networks

Latest Version: 0.9.1

Django Trigger Happy

Automatically share data between popular services you use on the web.
And instead of giving your credentials to them, become the owner of yours !

For example a new RSS item is published, django-trigger-happy will be able to
automatically create a note on your Evernote account or create a bookmark to
your own Readability or Pocket account and so on


.. |ImageLink| image::
.. _ImageLink:

The goal of this project is to be independant from any other solution like
IFTTT, CloudWork or others.

Thus you could host your own solution and manage your own triggers without
depending any non-free solution.

With this project you can host triggers for you.

All you need is to have a hosting provider (or simply your own server ;)
who permits to use a manager of tasks like "cron" and, of course Python 2.7

Requirements :
* Django 1.6
* South 0.8.2
* batbelt 0.5.1
* ordereddict 1.1
* oauth2 1.5.211
* django-th-rss 0.2.5
* django-th-evernote 0.2.5
* django-th-pocket 0.1.2
* django-th-readability 0.1.0

to get the project, from your virtualenv, do :

.. code: system

git clone

to add the needed modules , do :

.. code:: python

pip install -r

and at least :

.. code:: python

python syncdb

to startup the database

Parameters :
As usual you will setup the database parameters.

Important parts are the settings of the available services :

add the module django_th to the INSTALLED_APPS

.. code:: python



TH_SERVICES is a list of the services we, like for example,

.. code:: python


If you plan to integrate django_th in an existing project then, to deal with the templates and avoid the TemplateDoesNotExist error you can
copy the template in your own templates directory or set the path like this :

.. code:: python

import os
PROJECT_DIR = os.path.dirname(os.path.abspath(__file__))
PROJECT_DIR + '/../../lib/python2.7/site-package/django_th/templates/',

also you'll need to look at the of django_th to copy a lot of existing the mapping.

Setting up : Administration

once the module is installed, go to the admin panel and activate the service you want.
Currently there are 4 services, RSS, Evernote, Pocket and Readability.

All you can decide here is to tell if the service requires an external authentication or not.

Once they are activated. User can use them.

Usage :

Activating services :

The user activates the service for their own need. If the service requires an external authentication, he will be redirected to the service which will ask him the authorization to acces the user's account. Once it's done, goes back to django-trigger-happy to finish and record the "auth token".

Using the activated services :

a set of 3 pages will ask to the user information that will permit to trigger data from a service "provider" to a service "consummer".

For example :

* page 1 : the user gives a RSS feed
* page 2 : the user gives the name of the notebook where notes will be stored and a tag if he wants
* page 3 : the user gives a description

Fire the Triggers :
To start handling the queue of triggers you/your users configure, just set the in a crontab or any other scheduler solution of your choice.
Keep in mind to avoid to set a too short duration between 2 run to avoid to be blocked by the externals services you/your users want to reach.

Blog posts :
You can find all details of all existing services of the blog :
File Type Py Version Uploaded on Size
django_th-0.8.3.tar.gz (md5) Source 2014-03-12 80KB
  • Downloads (All Versions):
  • 0 downloads in the last day
  • 56 downloads in the last week
  • 76 downloads in the last month