def __init__(self, api_key, lookup_key=''):

        assert lookup_key is not None

        self.api_key = api_key
        self.lookup_key = lookup_key
        self.path = os.path.expanduser(os.path.join("~", ".flickr"))
        self.filename = os.path.join(self.path, 'oauth-tokens.sqlite')

        if not os.path.exists(self.path):
            os.makedirs(self.path)

        self.create_table()
Creates a new token cache instance
dataset/ETHPy150Open onitu/onitu/drivers/flickr/onitu_flickr/flickrapi/tokencache.py/OAuthTokenCache.__init__