mirror of
https://github.com/enpaul/kodak.git
synced 2024-11-14 02:27:24 +00:00
30 lines
484 B
Python
30 lines
484 B
Python
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"
|