# Path: gbdxtools/auth.py
# def Auth(**kwargs):
#     global auth
#     if auth is None or len(kwargs) > 0:
#         auth = _Auth(**kwargs)
#     return auth


import json
from gbdxtools.auth import Auth
    def delete(self, recipe_id):
        '''
        Deletes an AnswerFactory Recipe by id

        Args:
             recipe_id: The id of the recipe to delete

        Returns:
             Nothing
        '''
        self.logger.debug('Deleting recipe by id: ' + recipe_id)
        url = '%(base_url)s/recipe/%(recipe_id)s' % {
            'base_url': self.base_url, 'recipe_id': recipe_id
        }
        r = self.gbdx_connection.delete(url)
        r.raise_for_status()


class Project(object):
    def __init__(self, **kwargs):
        '''
        Construct an instance of an AnswerFactory Project

        Args:
            **kwargs

        Returns:
            An instance of a Project.

        '''

# Path: gbdxtools/auth.py
# def Auth(**kwargs):
#     global auth
#     if auth is None or len(kwargs) > 0:
#         auth = _Auth(**kwargs)
#     return auth


# Path: gbdxtools/answerfactory.py
import json
from gbdxtools.auth import Auth

    def delete(self, recipe_id):
        '''
        Deletes an AnswerFactory Recipe by id

        Args:
             recipe_id: The id of the recipe to delete

        Returns:
             Nothing
        '''
        self.logger.debug('Deleting recipe by id: ' + recipe_id)
        url = '%(base_url)s/recipe/%(recipe_id)s' % {
            'base_url': self.base_url, 'recipe_id': recipe_id
        }
        r = self.gbdx_connection.delete(url)
        r.raise_for_status()


class Project(object):
    def __init__(self, **kwargs):
        '''
        Construct an instance of an AnswerFactory Project

        Args:
            **kwargs

        Returns:
            An instance of a Project.

        '''

        interface = Auth(**kwargs)