This is a collection of scripts I've written to do cool and unusual (well, I think so, anyway) things with Twitter.
A Python script to tweet the contents of your .plan
file whenever you
update it. It uses the credentials found in the file credentials.py
(of
which a sample is provided), currently expected to be in the same
directory, for the Twitter account.
Its requirements are the git version of pyinotify
, found
here, and python-twitter
,
available here.
To use it, simply run it (preferably in the background, since it doesn't
daemonize itself yet):
python tweet_my_dot_plan.py &
Several Python scripts for updating Twitter with git commits. There is
a post-commit
script, which posts each commit to Twitter as it
happens, and a post-receive
script, which posts commits to Twitter
after receiving them (via a push
, for example).
Their requirements are GitPython, found here, and python-twitter, which you can download here.
Sample hooks are provided which demonstrate how to use the scripts;
they and the Python files should be placed in the .git/hooks
directory of your repository.
Like git-hooks
, but for Mercurial. (Minus a 'commit'
hook--'incoming' is Mercurial's equivalent to Git's 'post-receive',
though.)
A sample .hg/hgrc
is included here demonstrating how to use the
hook. hg_twitter_hooks.py
must be somewhere in your PYTHONPATH
.
These scripts are copyright (C) 2009 Adam Lloyd.
They are free software: you can redistribute them and/or modify them under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
They are distributed in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
For the full text of the GNU General Public License, see the COPYING file.