# Path: helper/scheduler.py
# def schedule(every):
#     def decorator(task):
#         task.every = every
#         return task
#     return decorator
# 
# Path: helper/utils/decorators.py
# def format_options_from_event(func):
#     def wrapper(data, **kwargs):


import json
import tweepy
from django import forms
from celery import shared_task
from helper.scheduler import schedule
from helper.utils.decorators import format_options_from_event, dedup




def get_api(consumer_key, consumer_secret,
            access_token, access_token_secret):
    auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
    auth.set_access_token(access_token, access_token_secret)
    return tweepy.API(auth)

@shared_task

# Path: helper/scheduler.py
# def schedule(every):
#     def decorator(task):
#         task.every = every
#         return task
#     return decorator
# 
# Path: helper/utils/decorators.py
# def format_options_from_event(func):
#     def wrapper(data, **kwargs):


# Path: helper/agents/twitter/tasks.py
import json
import tweepy
from django import forms
from celery import shared_task
from helper.scheduler import schedule
from helper.utils.decorators import format_options_from_event, dedup





def get_api(consumer_key, consumer_secret,
            access_token, access_token_secret):
    auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
    auth.set_access_token(access_token, access_token_secret)
    return tweepy.API(auth)

@shared_task

@format_options_from_event