# encoding: utf-8

"""
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""

from __future__ import absolute_import, unicode_literals

import enum


class Default(object):
    ENCODING = "utf-8"


class SourceType(object):
    TEXT = "text"
    FILE = "file"
    URL = "url"


class TableNameTemplate(object):
    __FORMAT = "%({:s})s"
    DEFAULT = __FORMAT.format("default")
    FILENAME = __FORMAT.format("filename")
    FORMAT_NAME = __FORMAT.format("format_name")
    FORMAT_ID = __FORMAT.format("format_id")
    GLOBAL_ID = __FORMAT.format("global_id")
    KEY = __FORMAT.format("key")
    TITLE = __FORMAT.format("title")
    SHEET = __FORMAT.format("sheet")


@enum.unique
class PatternMatch(enum.Enum):
    OR = 0
    AND = 1

# encoding: utf-8

"""
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""

from __future__ import absolute_import, unicode_literals

import enum


class Default(object):
    ENCODING = "utf-8"


class SourceType(object):
    TEXT = "text"
    FILE = "file"
    URL = "url"
    OBJECT = "object"


class TableNameTemplate(object):
    __FORMAT = "%({:s})s"
    DEFAULT = __FORMAT.format("default")
    FILENAME = __FORMAT.format("filename")
    FORMAT_NAME = __FORMAT.format("format_name")
    FORMAT_ID = __FORMAT.format("format_id")
    GLOBAL_ID = __FORMAT.format("global_id")
    KEY = __FORMAT.format("key")
    TITLE = __FORMAT.format("title")
    SHEET = __FORMAT.format("sheet")


@enum.unique
class PatternMatch(enum.Enum):
    OR = 0
    AND = 1

Add a source type