#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import absolute_import, division
import os
import logging

from flask import Flask, request, make_response, abort, \
    url_for, render_template, jsonify
from flask_limiter import Limiter
from flask_limiter.util import get_remote_address

from werkzeug.utils import secure_filename

from curl2share import config
from curl2share import utils

if config.storage == 's3':
    from curl2share.storages.s3 import S3
    from curl2share.storages.redis import Redis
    s3 = S3()