# HG changeset patch # User Jeff Hammel # Date 1278534697 25200 # Node ID 56a9fb9ad9b4e0239b616cba40eff618d4d274d1 initial commit of bitsytweet (not yet functional) diff -r 000000000000 -r 56a9fb9ad9b4 bitsytweet/__init__.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bitsytweet/__init__.py Wed Jul 07 13:31:37 2010 -0700 @@ -0,0 +1,15 @@ +""" +BitsyTweet +""" + +import twitter + +class BitsyTweet(object): + + def __init__(self, username, password): + self.username = username + self.password = password + self.api = twitter.Api(username=self.username, password=self.password) + + def __call__(self, post): + self.api.PostUpdate(self.username, self.password, '') diff -r 000000000000 -r 56a9fb9ad9b4 setup.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/setup.py Wed Jul 07 13:31:37 2010 -0700 @@ -0,0 +1,28 @@ +from setuptools import setup, find_packages + +version = '0.0' + +setup(name='bitsytweet', + version=version, + description="tweet your bitsyblog posts", + long_description="""\ +""", + classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers + keywords='twitter blog microblog bitsyblog', + author='Jeff Hammel', + author_email='k0scist@gmail.com', + url='http://k0s.org/', + license='GPL', + packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), + include_package_data=True, + zip_safe=False, + install_requires=[ + # -*- Extra requirements: -*- + 'python-twitter', + ], + entry_points=""" + # -*- Entry points: -*- + [bitsyblog.listeners] + bitsytweet = bitsytweet:BitsyTweet + """, + )