For the sake of anybody that might find this in a search (and so I can remember later) here is what I did.
All of this is borrowed from here:
http://giantmetalrobot.blogspot.com/2011/05/android-tweeting-with-python-tweepy-and.htmland here:
http://talkfast.org/2010/05/31/twitter-from-the-command-line-in-python-using-oauth/and here:
https://github.com/tweepy/tweepyAs a warning, I am not a Python programmer. I probably can't help you figure out why it doesn't work for you.
First thing to do is go to your Twitter account and create an application (
https://dev.twitter.com/apps). Make sure your application has read AND write access. From there you can get the required Consumer key and Consumer secret. You can also create the Access token and Access secret directly from this page, thereby skipping step 3 in the instructions linked. Then you need to create a subfolder on your phone called 'tweepy' in your sl4a directory into which you copy all of the .py files from the tweepy library (
https://github.com/tweepy/tweepy/archive/master.zip). Then create your sl4a script like so:
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
#!/usr/bin/env python
import sys
import tweepy
import android
droid=android.Android()
CONSUMER_KEY = 'paste your Consumer Key here'
CONSUMER_SECRET = 'paste your Consumer Secret here'
ACCESS_KEY = 'paste your Access Key here'
ACCESS_SECRET = 'paste your Access Secret here'
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
auth.set_access_token(ACCESS_KEY, ACCESS_SECRET)
api = tweepy.API(auth)
tweet = droid.dialogGetInput('Twitter', 'Type your tweet here :').result
api.update_status(tweet)
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Place all 4 required keys and secrets where indicated in the script. When it is run, the script should pop up a little dialog that prompts you to enter your tweet, then it sends it on its way.
If you want to have tasker automatically assign the text of the tweet then replace this line:
tweet = droid.dialogGetInput('Twitter', 'Type your tweet here :').result
with this:
tweet = droid.getIntent().result[u'extras'][u'%tweet']
and when you run the script, pass a variable named '%tweet' along with it.
I hope this helps someone else. I'm a little surprised there isn't already such a plugin. Seems like it should be a pretty easy task for someone that knows what they're doing.