__init__.py 740 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
v3.3.0    
Joshua Roesslein committed
8
__version__ = '3.3.0'
9
10
__author__ = 'Joshua Roesslein'
__license__ = 'MIT'
11

Aaron Hill's avatar
Aaron Hill committed
12
13
from tweepy.models import Status, User, DirectMessage, Friendship, SavedSearch, SearchResults, ModelFactory, Category
from tweepy.error import TweepError
Josh Roesslein's avatar
Josh Roesslein committed
14
from tweepy.api import API
Aaron Hill's avatar
Aaron Hill committed
15
16
17
18
from tweepy.cache import Cache, MemoryCache, FileCache
from tweepy.auth import OAuthHandler, AppAuthHandler
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
def debug(enable=True, level=1):
24
25
    from six.moves.http_client import HTTPConnection
    HTTPConnection.debuglevel = level