# Path: nappingcat/exceptions.py
# class NappingCatUnhandled(NappingCatException):
#     pass
# 
# class NappingCatException(Exception):
#     pass
# 
# Path: nappingcat/exceptions.py
# class NappingCatException(Exception):
# class NappingCatBadArguments(NappingCatException):
# class NappingCatUnhandled(NappingCatException):
# class NappingCatBadConfig(NappingCatException):
# class NappingCatBadPatterns(NappingCatBadConfig):
# class NappingCatRejected(NappingCatException):
# 
# Path: nappingcat/config.py
# SECTION_NAME = 'kittyconfig' 
# def build_settings():
# def setup_environ(settings):
# 
# Path: nappingcat/response.py
# class Response(object):
# class TextResponse(Response):
#     def __init__(self, status_code, content):
#     def __str__(self):
#     def __init__(self, status_code, content):
#     def __str__(self):
# def Success(content, response_type=Response):
# def Failure(content, response_type=Response):
# 
# Path: nappingcat/util.py
# def _resolve_name(name, package, level):
# def import_class_from_module(name):


from nappingcat.exceptions import NappingCatUnhandled, NappingCatException
from nappingcat import exceptions, config, response
from nappingcat.util import import_module, import_class_from_module
import os
import sys
        self.environ = environ
        self.stdin = stdin
        self.stdout = stdout
        self.stderr = stderr

    def setup_environ(self):
        settings = config.build_settings()        
        if not settings.has_section(config.SECTION_NAME):
            raise exceptions.NappingCatBadConfig("""
                Your nappingcat.conf file does not include a %s section!
            """.strip() % config.SECTION_NAME)

        kitty_config = config.setup_environ(settings)

        self.global_settings = settings
        self.nappingcat_settings = kitty_config

    @classmethod
    def run(cls, *args, **kwargs):
        instance = cls()
        instance.setup_environ()
        try:
            result = instance.main()
        except NappingCatException, e:
            result = response.Failure(str(e))
        instance.stderr.write(str(result))
        instance.stderr.flush()

    def main(self, *args, **kwargs):
        raise NappingCatUnhandled("""

# Path: nappingcat/exceptions.py
# class NappingCatUnhandled(NappingCatException):
#     pass
# 
# class NappingCatException(Exception):
#     pass
# 
# Path: nappingcat/exceptions.py
# class NappingCatException(Exception):
# class NappingCatBadArguments(NappingCatException):
# class NappingCatUnhandled(NappingCatException):
# class NappingCatBadConfig(NappingCatException):
# class NappingCatBadPatterns(NappingCatBadConfig):
# class NappingCatRejected(NappingCatException):
# 
# Path: nappingcat/config.py
# SECTION_NAME = 'kittyconfig' 
# def build_settings():
# def setup_environ(settings):
# 
# Path: nappingcat/response.py
# class Response(object):
# class TextResponse(Response):
#     def __init__(self, status_code, content):
#     def __str__(self):
#     def __init__(self, status_code, content):
#     def __str__(self):
# def Success(content, response_type=Response):
# def Failure(content, response_type=Response):
# 
# Path: nappingcat/util.py
# def _resolve_name(name, package, level):
# def import_class_from_module(name):


# Path: nappingcat/app.py
from nappingcat.exceptions import NappingCatUnhandled, NappingCatException
from nappingcat import exceptions, config, response
from nappingcat.util import import_module, import_class_from_module
import os
import sys

        self.environ = environ
        self.stdin = stdin
        self.stdout = stdout
        self.stderr = stderr

    def setup_environ(self):
        settings = config.build_settings()        
        if not settings.has_section(config.SECTION_NAME):
            raise exceptions.NappingCatBadConfig("""
                Your nappingcat.conf file does not include a %s section!
            """.strip() % config.SECTION_NAME)

        kitty_config = config.setup_environ(settings)

        self.global_settings = settings
        self.nappingcat_settings = kitty_config

    @classmethod
    def run(cls, *args, **kwargs):
        instance = cls()
        instance.setup_environ()
        try:
            result = instance.main()
        except NappingCatException, e:
            result = response.Failure(str(e))
        instance.stderr.write(str(result))
        instance.stderr.flush()

    def main(self, *args, **kwargs):
        raise NappingCatUnhandled("""

            You woke up the kitten!