1
0
mirror of https://github.com/enpaul/kodak.git synced 2024-11-11 00:57:00 +00:00
kodak/fresnel_lens/constants.py

30 lines
484 B
Python
Raw Normal View History

2021-10-28 23:03:09 +00:00
import enum
import peewee
class DatabaseBackend(enum.Enum):
MARIADB = peewee.MySQLDatabase
SQLITE = peewee.SqliteDatabase
class DimensionStrategy(enum.Enum):
CROP = enum.auto()
SCALE = enum.auto()
RELATIVE = enum.auto()
class ImageFormat(enum.Enum):
JPEG = ("jpg", "jpeg")
PNG = ("png",)
GIF = ("gif",)
class Anchor(enum.Enum):
C = "center"
HTTP_HEADER_RESPONSE_VERSION = "x-fresnel_lens-version"
HTTP_HEADER_RESPONSE_DIGEST = "Digest"