__init__.py 698 Bytes
Newer Older
1
# Tweepy
2 3
# Copyright 2009-2010 Joshua Roesslein
# See LICENSE for details.
4

5 6 7
"""
Tweepy Twitter API library
"""
Joshua Roesslein's avatar
Joshua Roesslein committed
8
__version__ = '2.2'
9 10
__author__ = 'Joshua Roesslein'
__license__ = 'MIT'
11

12
from tweepy.models import Status, User, DirectMessage, Friendship, SavedSearch, SearchResults, ModelFactory, Category
Josh Roesslein's avatar
Josh Roesslein committed
13 14
from tweepy.error import TweepError
from tweepy.api import API
15
from tweepy.cache import Cache, MemoryCache, FileCache
Aaron Hill's avatar
Aaron Hill committed
16
from tweepy.auth import OAuthHandler
Josh Roesslein's avatar
Josh Roesslein committed
17 18
from tweepy.streaming import Stream, StreamListener
from tweepy.cursor import Cursor
19 20 21

# Global, unauthenticated instance of API
api = API()
Josh Roesslein's avatar
Josh Roesslein committed
22

23 24 25 26 27
def debug(enable=True, level=1):

    import httplib
    httplib.HTTPConnection.debuglevel = level