"""
__version__ = '1.2'
-from . models import Status, User, DirectMessage, Friendship, SavedSearch, SearchResult, models
-from . error import TweepError
-from . api import API
-from . cache import Cache, MemoryCache, FileCache, MemCache
-from . auth import BasicAuthHandler, OAuthHandler
-from . streaming import Stream, StreamListener
-from . cursor import Cursor
+from tweepy.models import Status, User, DirectMessage, Friendship, SavedSearch, SearchResult, models
+from tweepy.error import TweepError
+from tweepy.api import API
+from tweepy.cache import Cache, MemoryCache, FileCache, MemCache
+from tweepy.auth import BasicAuthHandler, OAuthHandler
+from tweepy.streaming import Stream, StreamListener
+from tweepy.cursor import Cursor
# Global, unauthenticated instance of API
api = API()
import os
import mimetypes
-from . binder import bind_api
-from . error import TweepError
-from . auth import BasicAuthHandler, OAuthHandler
+from tweepy.binder import bind_api
+from tweepy.error import TweepError
+from tweepy.auth import BasicAuthHandler, OAuthHandler
from tweepy.parsers import *
from urllib2 import Request, urlopen
import base64
-from . import oauth
-from . error import TweepError
+from tweepy import oauth
+from tweepy.error import TweepError
class AuthHandler(object):
import urllib
import time
-from . parsers import parse_error
-from . error import TweepError
+from tweepy.parsers import parse_error
+from tweepy.error import TweepError
try:
import json #Python >= 2.6
# TODO: use win32file
pass
-from . import memcache
+from tweepy import memcache
class Cache(object):
# Copyright 2009 Joshua Roesslein
# See LICENSE
-from . error import TweepError
+from tweepy.error import TweepError
class Cursor(object):
"""Pagination helper class"""
# Copyright 2009 Joshua Roesslein
# See LICENSE
-from . error import TweepError
+from tweepy.error import TweepError
class Model(object):
import re
from datetime import datetime
-from . models import models
+from tweepy.models import models
def _parse_cursor(obj):
from threading import Thread
from time import sleep
-from . auth import BasicAuthHandler
-from . parsers import parse_status
-from . api import API
-from . error import TweepError
+from tweepy.auth import BasicAuthHandler
+from tweepy.parsers import parse_status
+from tweepy.api import API
+from tweepy.error import TweepError
try:
import json #Python >= 2.6