Cat Feeder  1.0.0
The Cat feeder project
Loading...
Searching...
No Matches
converters_constants.py
Go to the documentation of this file.
1"""
2# +==== BEGIN CatFeeder =================+
3# LOGO:
4# ..............(..../\\
5# ...............)..(.')
6# ..............(../..)
7# ...............\\(__)|
8# Inspired by Joan Stark
9# source https://www.asciiart.eu/
10# animals/cats
11# /STOP
12# PROJECT: CatFeeder
13# FILE: converters_constants.py
14# CREATION DATE: 15-01-2026
15# LAST Modified: 1:21:18 17-01-2026
16# DESCRIPTION:
17# This is the backend server in charge of making the actual website work.
18# /STOP
19# COPYRIGHT: (c) Cat Feeder
20# PURPOSE: The constants used in the converter instances.
21# // AR
22# +==== END CatFeeder =================+
23"""
24
25from typing import Optional, Union
26
27from dataclasses import dataclass
28
29from pathlib import Path
30
31from ..http_constants import DataTypes
32
33from ...utils import constants as CONST
34
35
36@dataclass(frozen=True)
38 """Structure used to store the response of the font conversion procedure."""
39 ttf: bytes
40 otf: bytes
41 woff: bytes
42 woff2: bytes
43 css: Union[bytes, str]
44
45
46@dataclass(frozen=True)
48 """Structure used to store the response of the conversion procedure."""
49 data: bytes
50 converted: bool
51 from_type: DataTypes
52 to_type: DataTypes
53 result: Optional[Union[bytes, str, FontResult]] = None
54
55
56FF_FAMILY_PATH: Path = CONST.ASSETS_DIRECTORY / "fffamily"
57SUCCESS: int = CONST.SUCCESS
58ERROR: int = CONST.ERROR
59DEBUG: bool = CONST.DEBUG