Cat Feeder  1.0.0
The Cat feeder project
Loading...
Searching...
No Matches
backend.src.libs.utils.constants Namespace Reference

Functions

List[Any] clean_list (List[Any] raw_input, Tuple[Any,...] items, Disp disp)
 
Dict[str, Any] clean_dict (Dict[str, Any] raw_input, Tuple[Any,...] items, Disp disp)
 
str mask_email_segment (str segment)
 
str hide_user_email (str user_email, Disp disp)
 

Variables

Disp IDISP = initialise_logger("Constants", False)
 
EnvLoader ENV = EnvLoader()
 
TOMLLoader TOML = TOMLLoader()
 
Path ROOT_DIRECTORY = Path(__file__).parent.parent.parent.parent
 
Path ASSETS_DIRECTORY = ROOT_DIRECTORY / "assets"
 
bool DEBUG = refresh_debug(False)
 
EnvLoader REDIRECT_URI = ENV.get_environment_variable("REDIRECT_URI")
 
EnvLoader DB_HOST = ENV.get_environment_variable("DB_HOST")
 
EnvLoader DB_PORT_RAW = ENV.get_environment_variable("DB_PORT")
 
 DB_PORT = int(DB_PORT_RAW)
 
EnvLoader DB_USER = ENV.get_environment_variable("DB_USER")
 
EnvLoader DB_PASSWORD = ENV.get_environment_variable("DB_PASSWORD")
 
EnvLoader DB_DATABASE = ENV.get_environment_variable("DB_DATABASE")
 
TOMLLoader SERVER_WORKERS
 
TOMLLoader SERVER_LIFESPAN
 
TOMLLoader SERVER_TIMEOUT_KEEP_ALIVE
 
 SUCCESS
 
 ERROR
 
TOMLLoader SERVER_DEV_RELOAD
 
TOMLLoader SERVER_DEV_RELOAD_DIRS
 
TOMLLoader SERVER_DEV_LOG_LEVEL
 
TOMLLoader SERVER_DEV_USE_COLOURS
 
TOMLLoader SERVER_PROD_PROXY_HEADERS
 
TOMLLoader SERVER_PROD_FORWARDED_ALLOW_IPS
 
TOMLLoader DATABASE_POOL_NAME
 
 DATABASE_MAX_POOL_CONNECTIONS
 
TOMLLoader DATABASE_RESET_POOL_NODE_CONNECTION
 
 DATABASE_CONNECTION_TIMEOUT
 
TOMLLoader DATABASE_LOCAL_INFILE
 
TOMLLoader DATABASE_INIT_COMMAND
 
TOMLLoader DATABASE_DEFAULT_FILE
 
TOMLLoader DATABASE_SSL_KEY
 
TOMLLoader DATABASE_SSL_CERT
 
TOMLLoader DATABASE_SSL_CA
 
TOMLLoader DATABASE_SSL_CIPHER
 
TOMLLoader DATABASE_SSL_VERIFY_CERT
 
TOMLLoader DATABASE_SSL
 
TOMLLoader DATABASE_AUTOCOMMIT
 
TOMLLoader DATABASE_COLLATION
 
 EMAIL_VERIFICATION_DELAY
 
 CHECK_TOKEN_SIZE
 
 RANDOM_MIN
 
 RANDOM_MAX
 
 API_REQUEST_DELAY
 
int FRONT_END_ASSETS_REFRESH
 
str JSON_TITLE = "title"
 
str JSON_MESSAGE = "msg"
 
str JSON_ERROR = "error"
 
str JSON_RESP = "resp"
 
str JSON_LOGGED_IN = "logged in"
 
str JSON_UID = "user_uid"
 
str TAB_PET = "Pet"
 
str TAB_ACCOUNTS = "Users"
 
str TAB_ACTIONS = "Actions"
 
str TAB_SERVICES = "Services"
 
str TAB_CONNECTIONS = "Connections"
 
str TAB_VERIFICATION = "Verification"
 
str TAB_ACTIVE_OAUTHS = "ActiveOauths"
 
str TAB_ACTION_LOGGING = "ActionLoging"
 
str TAB_ACTION_TEMPLATE = "ActionTemplate"
 
str TAB_USER_OAUTH_CONNECTION = "UserOauthConnection"
 
str CHAR_NODE_KEY = "node"
 
str CHAR_ACTIVE_KEY = "active"
 
str CHAR_NAME_KEY = "name"
 
str CHAR_UID_KEY = "uid"
 
int CHAR_ID_DEFAULT_INDEX = 0
 
int USERNAME_INDEX_DB = 1
 
int PASSWORD_INDEX_DB = 2
 
int FIRSTNAME_INDEX_DB = 3
 
int LASTNAME_INDEX_DB = 4
 
int BIRTHDAY_INDEX_DB = 5
 
int GENDER_INDEX_DB = 7
 
int ROLE_INDEX_DB = 10
 
str UD_USERNAME_KEY = "username"
 
str UD_FIRSTNAME_KEY = "firstname"
 
str UD_LASTNAME_KEY = "lastname"
 
str UD_BIRTHDAY_KEY = "birthday"
 
str UD_GENDER_KEY = "gender"
 
str UD_ROLE_KEY = "role"
 
str UD_ADMIN_KEY = "admin"
 
str UD_LOGIN_TIME_KEY = "login_time"
 
str UD_LOGGED_IN_KEY = "logged_in"
 
str REQUEST_TOKEN_KEY = "token"
 
str REQUEST_BEARER_KEY = "authorization"
 
int THREAD_CACHE_REFRESH_DELAY = 10
 
int UA_TOKEN_LIFESPAN = 7200
 
str UA_EMAIL_KEY = "email"
 
str UA_LIFESPAN_KEY = "lifespan"
 
list USER_INFO_BANNED = ["password", "method", "favicon"]
 
str USER_INFO_ADMIN_NODE = "admin"
 
str ICON_PATH
 
str PNG_ICON_PATH
 
tuple TABLE_COLUMNS_TO_IGNORE = ("id", "creation_date", "edit_date")
 
tuple TABLE_COLUMNS_TO_IGNORE_USER
 
str BUCKET_NAME = ENV.get_environment_variable("BUCKET_NAME")
 
Path STYLE_DIRECTORY = ASSETS_DIRECTORY / "css"
 
Path HTML_DIRECTORY = ASSETS_DIRECTORY / "html"
 
Path JS_DIRECTORY = ASSETS_DIRECTORY / "js" / "web"
 
Path IMG_DIRECTORY = ASSETS_DIRECTORY / "icon" / "img"
 
str GOOGLE_SITE_VERIFICATION_CODE
 

Detailed Description

# +==== BEGIN CatFeeder =================+
# LOGO:
# ..............(..../\
# ...............)..(.')
# ..............(../..)
# ...............\‍(__)|
# Inspired by Joan Stark
# source https://www.asciiart.eu/
# animals/cats
# /STOP
# PROJECT: CatFeeder
# FILE: constants.py
# CREATION DATE: 11-10-2025
# LAST Modified: 19:0:27 31-01-2026
# DESCRIPTION:
# This is the backend server in charge of making the actual website work.
# Backend server constants and configuration management.
# 
# This module contains all the configuration constants and utility functions
# required to run the CatFeeder server. It manages environment variables,
# TOML configurations, database settings, server configurations, and provides
# helper functions for data manipulation.
# 
# Module-level constants include:
# - Database connection parameters (host, port, user, password, database)
# - Server configurations (workers, timeout, development/production settings)
# - Verification settings (email delays, token sizes)
# - Table names and database schema constants
# - JSON response key constants
# - User data field mappings and indices
# /STOP
# COPYRIGHT: (c) Cat Feeder
# PURPOSE: This is the file in charge of containing the constants that run the server.
# // AR
# +==== END CatFeeder =================+

Function Documentation

◆ clean_dict()

Dict[str, Any] backend.src.libs.utils.constants.clean_dict ( Dict[str, Any] raw_input,
Tuple[Any, ...] items,
Disp disp )
Remove specified keys from a dictionary if they are present.

Iterates through the input dictionary and removes all keys specified
in the items tuple. Logs debug information for each removal.

Args:
    input (Dict[str, Any]): The dictionary to check and modify.
    items (Tuple[Any, Any]): The keys to remove from the dictionary.
    disp (Disp): The logging object for debug output.

Returns:
    Dict[str, Any]: The modified dictionary with specified keys removed.

Definition at line 318 of file constants.py.

◆ clean_list()

List[Any] backend.src.libs.utils.constants.clean_list ( List[Any] raw_input,
Tuple[Any, ...] items,
Disp disp )
Remove specified items from a list if they are present.

Iterates through the input list and removes all occurrences of items
specified in the items tuple. Logs debug information for each removal.

Args:
    raw_input (List[Any]): The list to check and modify.
    items (Tuple[Any, Any]): The items to remove from the list.
    disp (Disp): The logging object for debug output.

Returns:
    List[Any]: The modified list with specified items removed.

Definition at line 288 of file constants.py.

◆ hide_user_email()

str backend.src.libs.utils.constants.hide_user_email ( str user_email,
Disp disp )
Mask user email for privacy while preserving structure and shape.

Masks each word/segment separately, showing only first and last character.
Segments are separated by special characters: . + - @ 

Args:
    user_email (str): Email address to mask.

Returns:
    str: Masked email (e.g., t[...]t.m[...]e+r[...]m@g[...]l.c[...]m).

Definition at line 350 of file constants.py.

◆ mask_email_segment()

str backend.src.libs.utils.constants.mask_email_segment ( str segment)
Mask a single email segment, showing first and last character.

Definition at line 341 of file constants.py.

Variable Documentation

◆ API_REQUEST_DELAY

backend.src.libs.utils.constants.API_REQUEST_DELAY
Initial value:
1= int(TOML.get_toml_variable(
2 "Services", "api_request_delay", 5
3))

Definition at line 183 of file constants.py.

◆ ASSETS_DIRECTORY

Path backend.src.libs.utils.constants.ASSETS_DIRECTORY = ROOT_DIRECTORY / "assets"

Definition at line 60 of file constants.py.

◆ BIRTHDAY_INDEX_DB

int backend.src.libs.utils.constants.BIRTHDAY_INDEX_DB = 5

Definition at line 225 of file constants.py.

◆ BUCKET_NAME

str backend.src.libs.utils.constants.BUCKET_NAME = ENV.get_environment_variable("BUCKET_NAME")

Definition at line 272 of file constants.py.

◆ CHAR_ACTIVE_KEY

str backend.src.libs.utils.constants.CHAR_ACTIVE_KEY = "active"

Definition at line 214 of file constants.py.

◆ CHAR_ID_DEFAULT_INDEX

int backend.src.libs.utils.constants.CHAR_ID_DEFAULT_INDEX = 0

Definition at line 217 of file constants.py.

◆ CHAR_NAME_KEY

str backend.src.libs.utils.constants.CHAR_NAME_KEY = "name"

Definition at line 215 of file constants.py.

◆ CHAR_NODE_KEY

str backend.src.libs.utils.constants.CHAR_NODE_KEY = "node"

Definition at line 213 of file constants.py.

◆ CHAR_UID_KEY

str backend.src.libs.utils.constants.CHAR_UID_KEY = "uid"

Definition at line 216 of file constants.py.

◆ CHECK_TOKEN_SIZE

backend.src.libs.utils.constants.CHECK_TOKEN_SIZE
Initial value:
1= int(TOML.get_toml_variable(
2 "Verification", "check_token_size", 4
3))

Definition at line 172 of file constants.py.

◆ DATABASE_AUTOCOMMIT

TOMLLoader backend.src.libs.utils.constants.DATABASE_AUTOCOMMIT
Initial value:
1= TOML.get_toml_variable(
2 "Server_configuration.database", "autocommit", False
3)

Definition at line 161 of file constants.py.

◆ DATABASE_COLLATION

TOMLLoader backend.src.libs.utils.constants.DATABASE_COLLATION
Initial value:
1= TOML.get_toml_variable(
2 "Server_configuration.database", "collation", "utf8mb4_unicode_ci"
3)

Definition at line 164 of file constants.py.

◆ DATABASE_CONNECTION_TIMEOUT

backend.src.libs.utils.constants.DATABASE_CONNECTION_TIMEOUT
Initial value:
1= int(TOML.get_toml_variable(
2 "Server_configuration.database", "connection_timeout", 10
3))

Definition at line 131 of file constants.py.

◆ DATABASE_DEFAULT_FILE

TOMLLoader backend.src.libs.utils.constants.DATABASE_DEFAULT_FILE
Initial value:
1= TOML.get_toml_variable(
2 "Server_configuration.database", "default_file", None
3)

Definition at line 140 of file constants.py.

◆ DATABASE_INIT_COMMAND

TOMLLoader backend.src.libs.utils.constants.DATABASE_INIT_COMMAND
Initial value:
1= TOML.get_toml_variable(
2 "Server_configuration.database", "init_command", None
3)

Definition at line 137 of file constants.py.

◆ DATABASE_LOCAL_INFILE

TOMLLoader backend.src.libs.utils.constants.DATABASE_LOCAL_INFILE
Initial value:
1= TOML.get_toml_variable(
2 "Server_configuration.database", "local_infile", False
3)

Definition at line 134 of file constants.py.

◆ DATABASE_MAX_POOL_CONNECTIONS

backend.src.libs.utils.constants.DATABASE_MAX_POOL_CONNECTIONS
Initial value:
1= int(TOML.get_toml_variable(
2 "Server_configuration.database", "max_pool_connections", 10
3))

Definition at line 125 of file constants.py.

◆ DATABASE_POOL_NAME

TOMLLoader backend.src.libs.utils.constants.DATABASE_POOL_NAME
Initial value:
1= TOML.get_toml_variable(
2 "Server_configuration.database", "pool_name", None
3)

Definition at line 122 of file constants.py.

◆ DATABASE_RESET_POOL_NODE_CONNECTION

TOMLLoader backend.src.libs.utils.constants.DATABASE_RESET_POOL_NODE_CONNECTION
Initial value:
1= TOML.get_toml_variable(
2 "Server_configuration.database", "reset_pool_node_connection", True
3)

Definition at line 128 of file constants.py.

◆ DATABASE_SSL

TOMLLoader backend.src.libs.utils.constants.DATABASE_SSL
Initial value:
1= TOML.get_toml_variable(
2 "Server_configuration.database", "ssl", None
3)

Definition at line 158 of file constants.py.

◆ DATABASE_SSL_CA

TOMLLoader backend.src.libs.utils.constants.DATABASE_SSL_CA
Initial value:
1= TOML.get_toml_variable(
2 "Server_configuration.database", "ssl_ca", None
3)

Definition at line 149 of file constants.py.

◆ DATABASE_SSL_CERT

TOMLLoader backend.src.libs.utils.constants.DATABASE_SSL_CERT
Initial value:
1= TOML.get_toml_variable(
2 "Server_configuration.database", "ssl_cert", None
3)

Definition at line 146 of file constants.py.

◆ DATABASE_SSL_CIPHER

TOMLLoader backend.src.libs.utils.constants.DATABASE_SSL_CIPHER
Initial value:
1= TOML.get_toml_variable(
2 "Server_configuration.database", "ssl_cipher", None
3)

Definition at line 152 of file constants.py.

◆ DATABASE_SSL_KEY

TOMLLoader backend.src.libs.utils.constants.DATABASE_SSL_KEY
Initial value:
1= TOML.get_toml_variable(
2 "Server_configuration.database", "ssl_key", None
3)

Definition at line 143 of file constants.py.

◆ DATABASE_SSL_VERIFY_CERT

TOMLLoader backend.src.libs.utils.constants.DATABASE_SSL_VERIFY_CERT
Initial value:
1= TOML.get_toml_variable(
2 "Server_configuration.database", "ssl_verify_cert", False
3)

Definition at line 155 of file constants.py.

◆ DB_DATABASE

EnvLoader backend.src.libs.utils.constants.DB_DATABASE = ENV.get_environment_variable("DB_DATABASE")

Definition at line 76 of file constants.py.

◆ DB_HOST

EnvLoader backend.src.libs.utils.constants.DB_HOST = ENV.get_environment_variable("DB_HOST")

Definition at line 69 of file constants.py.

◆ DB_PASSWORD

EnvLoader backend.src.libs.utils.constants.DB_PASSWORD = ENV.get_environment_variable("DB_PASSWORD")

Definition at line 75 of file constants.py.

◆ DB_PORT

backend.src.libs.utils.constants.DB_PORT = int(DB_PORT_RAW)

Definition at line 73 of file constants.py.

◆ DB_PORT_RAW

EnvLoader backend.src.libs.utils.constants.DB_PORT_RAW = ENV.get_environment_variable("DB_PORT")

Definition at line 70 of file constants.py.

◆ DB_USER

EnvLoader backend.src.libs.utils.constants.DB_USER = ENV.get_environment_variable("DB_USER")

Definition at line 74 of file constants.py.

◆ DEBUG

bool backend.src.libs.utils.constants.DEBUG = refresh_debug(False)

Definition at line 63 of file constants.py.

◆ EMAIL_VERIFICATION_DELAY

backend.src.libs.utils.constants.EMAIL_VERIFICATION_DELAY
Initial value:
1= int(TOML.get_toml_variable(
2 "Verification", "email_verification_delay", 120
3))

Definition at line 169 of file constants.py.

◆ ENV

EnvLoader backend.src.libs.utils.constants.ENV = EnvLoader()

Definition at line 51 of file constants.py.

◆ ERROR

backend.src.libs.utils.constants.ERROR
Initial value:
1= int(TOML.get_toml_variable(
2 "Server_configuration.status_codes", "error", -84
3))

Definition at line 94 of file constants.py.

◆ FIRSTNAME_INDEX_DB

int backend.src.libs.utils.constants.FIRSTNAME_INDEX_DB = 3

Definition at line 223 of file constants.py.

◆ FRONT_END_ASSETS_REFRESH

int backend.src.libs.utils.constants.FRONT_END_ASSETS_REFRESH
Initial value:
1= int(TOML.get_toml_variable(
2 "Frontend", "asset_cache_refresh_interval", 300
3))

Definition at line 188 of file constants.py.

◆ GENDER_INDEX_DB

int backend.src.libs.utils.constants.GENDER_INDEX_DB = 7

Definition at line 226 of file constants.py.

◆ GOOGLE_SITE_VERIFICATION_CODE

str backend.src.libs.utils.constants.GOOGLE_SITE_VERIFICATION_CODE
Initial value:
1= ENV.get_environment_variable(
2 "GOOGLE_SITE_VERIFICATION_CODE"
3 )

Definition at line 281 of file constants.py.

◆ HTML_DIRECTORY

Path backend.src.libs.utils.constants.HTML_DIRECTORY = ASSETS_DIRECTORY / "html"

Definition at line 276 of file constants.py.

◆ ICON_PATH

str backend.src.libs.utils.constants.ICON_PATH
Initial value:
1= str(
2 ASSETS_DIRECTORY / "icon" / "cat_feeder" / "favicon.ico"
3)

Definition at line 255 of file constants.py.

◆ IDISP

Disp backend.src.libs.utils.constants.IDISP = initialise_logger("Constants", False)

Definition at line 47 of file constants.py.

◆ IMG_DIRECTORY

Path backend.src.libs.utils.constants.IMG_DIRECTORY = ASSETS_DIRECTORY / "icon" / "img"

Definition at line 278 of file constants.py.

◆ JS_DIRECTORY

Path backend.src.libs.utils.constants.JS_DIRECTORY = ASSETS_DIRECTORY / "js" / "web"

Definition at line 277 of file constants.py.

◆ JSON_ERROR

str backend.src.libs.utils.constants.JSON_ERROR = "error"

Definition at line 195 of file constants.py.

◆ JSON_LOGGED_IN

str backend.src.libs.utils.constants.JSON_LOGGED_IN = "logged in"

Definition at line 197 of file constants.py.

◆ JSON_MESSAGE

str backend.src.libs.utils.constants.JSON_MESSAGE = "msg"

Definition at line 194 of file constants.py.

◆ JSON_RESP

str backend.src.libs.utils.constants.JSON_RESP = "resp"

Definition at line 196 of file constants.py.

◆ JSON_TITLE

str backend.src.libs.utils.constants.JSON_TITLE = "title"

Definition at line 193 of file constants.py.

◆ JSON_UID

str backend.src.libs.utils.constants.JSON_UID = "user_uid"

Definition at line 198 of file constants.py.

◆ LASTNAME_INDEX_DB

int backend.src.libs.utils.constants.LASTNAME_INDEX_DB = 4

Definition at line 224 of file constants.py.

◆ PASSWORD_INDEX_DB

int backend.src.libs.utils.constants.PASSWORD_INDEX_DB = 2

Definition at line 222 of file constants.py.

◆ PNG_ICON_PATH

str backend.src.libs.utils.constants.PNG_ICON_PATH
Initial value:
1= str(
2 ASSETS_DIRECTORY / "icon" / "cat_feeder" / "logo_256x256.png"
3)

Definition at line 260 of file constants.py.

◆ RANDOM_MAX

backend.src.libs.utils.constants.RANDOM_MAX
Initial value:
1= int(TOML.get_toml_variable(
2 "Verification", "random_max", 999999
3))

Definition at line 178 of file constants.py.

◆ RANDOM_MIN

backend.src.libs.utils.constants.RANDOM_MIN
Initial value:
1= int(TOML.get_toml_variable(
2 "Verification", "random_min", 100000
3))

Definition at line 175 of file constants.py.

◆ REDIRECT_URI

EnvLoader backend.src.libs.utils.constants.REDIRECT_URI = ENV.get_environment_variable("REDIRECT_URI")

Definition at line 66 of file constants.py.

◆ REQUEST_BEARER_KEY

str backend.src.libs.utils.constants.REQUEST_BEARER_KEY = "authorization"

Definition at line 240 of file constants.py.

◆ REQUEST_TOKEN_KEY

str backend.src.libs.utils.constants.REQUEST_TOKEN_KEY = "token"

Definition at line 239 of file constants.py.

◆ ROLE_INDEX_DB

int backend.src.libs.utils.constants.ROLE_INDEX_DB = 10

Definition at line 227 of file constants.py.

◆ ROOT_DIRECTORY

Path backend.src.libs.utils.constants.ROOT_DIRECTORY = Path(__file__).parent.parent.parent.parent

Definition at line 57 of file constants.py.

◆ SERVER_DEV_LOG_LEVEL

TOMLLoader backend.src.libs.utils.constants.SERVER_DEV_LOG_LEVEL
Initial value:
1= TOML.get_toml_variable(
2 "Server_configuration.development", "log_level", "info"
3)

Definition at line 106 of file constants.py.

◆ SERVER_DEV_RELOAD

TOMLLoader backend.src.libs.utils.constants.SERVER_DEV_RELOAD
Initial value:
1= TOML.get_toml_variable(
2 "Server_configuration.development", "reload", False
3)

Definition at line 100 of file constants.py.

◆ SERVER_DEV_RELOAD_DIRS

TOMLLoader backend.src.libs.utils.constants.SERVER_DEV_RELOAD_DIRS
Initial value:
1= TOML.get_toml_variable(
2 "Server_configuration.development", "reload_dirs", None
3)

Definition at line 103 of file constants.py.

◆ SERVER_DEV_USE_COLOURS

TOMLLoader backend.src.libs.utils.constants.SERVER_DEV_USE_COLOURS
Initial value:
1= TOML.get_toml_variable(
2 "Server_configuration.development", "use_colours", True
3)

Definition at line 109 of file constants.py.

◆ SERVER_LIFESPAN

TOMLLoader backend.src.libs.utils.constants.SERVER_LIFESPAN
Initial value:
1= TOML.get_toml_variable(
2 "Server_configuration", "lifespan", "auto"
3)

Definition at line 83 of file constants.py.

◆ SERVER_PROD_FORWARDED_ALLOW_IPS

TOMLLoader backend.src.libs.utils.constants.SERVER_PROD_FORWARDED_ALLOW_IPS
Initial value:
1= TOML.get_toml_variable(
2 "Server_configuration.production", "forwarded_allow_ips", None
3)

Definition at line 117 of file constants.py.

◆ SERVER_PROD_PROXY_HEADERS

TOMLLoader backend.src.libs.utils.constants.SERVER_PROD_PROXY_HEADERS
Initial value:
1= TOML.get_toml_variable(
2 "Server_configuration.production", "proxy_headers", True
3)

Definition at line 114 of file constants.py.

◆ SERVER_TIMEOUT_KEEP_ALIVE

TOMLLoader backend.src.libs.utils.constants.SERVER_TIMEOUT_KEEP_ALIVE
Initial value:
1= TOML.get_toml_variable(
2 "Server_configuration", "timeout_keep_alive", 30
3)

Definition at line 86 of file constants.py.

◆ SERVER_WORKERS

TOMLLoader backend.src.libs.utils.constants.SERVER_WORKERS
Initial value:
1= TOML.get_toml_variable(
2 "Server_configuration", "workers", None
3)

Definition at line 80 of file constants.py.

◆ STYLE_DIRECTORY

Path backend.src.libs.utils.constants.STYLE_DIRECTORY = ASSETS_DIRECTORY / "css"

Definition at line 275 of file constants.py.

◆ SUCCESS

backend.src.libs.utils.constants.SUCCESS
Initial value:
1= int(TOML.get_toml_variable(
2 "Server_configuration.status_codes", "success", 0
3))

Definition at line 91 of file constants.py.

◆ TAB_ACCOUNTS

str backend.src.libs.utils.constants.TAB_ACCOUNTS = "Users"

Definition at line 202 of file constants.py.

◆ TAB_ACTION_LOGGING

str backend.src.libs.utils.constants.TAB_ACTION_LOGGING = "ActionLoging"

Definition at line 208 of file constants.py.

◆ TAB_ACTION_TEMPLATE

str backend.src.libs.utils.constants.TAB_ACTION_TEMPLATE = "ActionTemplate"

Definition at line 209 of file constants.py.

◆ TAB_ACTIONS

str backend.src.libs.utils.constants.TAB_ACTIONS = "Actions"

Definition at line 203 of file constants.py.

◆ TAB_ACTIVE_OAUTHS

str backend.src.libs.utils.constants.TAB_ACTIVE_OAUTHS = "ActiveOauths"

Definition at line 207 of file constants.py.

◆ TAB_CONNECTIONS

str backend.src.libs.utils.constants.TAB_CONNECTIONS = "Connections"

Definition at line 205 of file constants.py.

◆ TAB_PET

str backend.src.libs.utils.constants.TAB_PET = "Pet"

Definition at line 201 of file constants.py.

◆ TAB_SERVICES

str backend.src.libs.utils.constants.TAB_SERVICES = "Services"

Definition at line 204 of file constants.py.

◆ TAB_USER_OAUTH_CONNECTION

str backend.src.libs.utils.constants.TAB_USER_OAUTH_CONNECTION = "UserOauthConnection"

Definition at line 210 of file constants.py.

◆ TAB_VERIFICATION

str backend.src.libs.utils.constants.TAB_VERIFICATION = "Verification"

Definition at line 206 of file constants.py.

◆ TABLE_COLUMNS_TO_IGNORE

tuple backend.src.libs.utils.constants.TABLE_COLUMNS_TO_IGNORE = ("id", "creation_date", "edit_date")

Definition at line 265 of file constants.py.

◆ TABLE_COLUMNS_TO_IGNORE_USER

tuple backend.src.libs.utils.constants.TABLE_COLUMNS_TO_IGNORE_USER
Initial value:
1= (
2 "id", "creation_date", "edit_date", "last_connection", "deletion_date"
3)

Definition at line 267 of file constants.py.

◆ THREAD_CACHE_REFRESH_DELAY

int backend.src.libs.utils.constants.THREAD_CACHE_REFRESH_DELAY = 10

Definition at line 243 of file constants.py.

◆ TOML

TOMLLoader backend.src.libs.utils.constants.TOML = TOMLLoader()

Definition at line 54 of file constants.py.

◆ UA_EMAIL_KEY

str backend.src.libs.utils.constants.UA_EMAIL_KEY = "email"

Definition at line 247 of file constants.py.

◆ UA_LIFESPAN_KEY

str backend.src.libs.utils.constants.UA_LIFESPAN_KEY = "lifespan"

Definition at line 248 of file constants.py.

◆ UA_TOKEN_LIFESPAN

int backend.src.libs.utils.constants.UA_TOKEN_LIFESPAN = 7200

Definition at line 246 of file constants.py.

◆ UD_ADMIN_KEY

str backend.src.libs.utils.constants.UD_ADMIN_KEY = "admin"

Definition at line 234 of file constants.py.

◆ UD_BIRTHDAY_KEY

str backend.src.libs.utils.constants.UD_BIRTHDAY_KEY = "birthday"

Definition at line 231 of file constants.py.

◆ UD_FIRSTNAME_KEY

str backend.src.libs.utils.constants.UD_FIRSTNAME_KEY = "firstname"

Definition at line 229 of file constants.py.

◆ UD_GENDER_KEY

str backend.src.libs.utils.constants.UD_GENDER_KEY = "gender"

Definition at line 232 of file constants.py.

◆ UD_LASTNAME_KEY

str backend.src.libs.utils.constants.UD_LASTNAME_KEY = "lastname"

Definition at line 230 of file constants.py.

◆ UD_LOGGED_IN_KEY

str backend.src.libs.utils.constants.UD_LOGGED_IN_KEY = "logged_in"

Definition at line 236 of file constants.py.

◆ UD_LOGIN_TIME_KEY

str backend.src.libs.utils.constants.UD_LOGIN_TIME_KEY = "login_time"

Definition at line 235 of file constants.py.

◆ UD_ROLE_KEY

str backend.src.libs.utils.constants.UD_ROLE_KEY = "role"

Definition at line 233 of file constants.py.

◆ UD_USERNAME_KEY

str backend.src.libs.utils.constants.UD_USERNAME_KEY = "username"

Definition at line 228 of file constants.py.

◆ USER_INFO_ADMIN_NODE

str backend.src.libs.utils.constants.USER_INFO_ADMIN_NODE = "admin"

Definition at line 252 of file constants.py.

◆ USER_INFO_BANNED

list backend.src.libs.utils.constants.USER_INFO_BANNED = ["password", "method", "favicon"]

Definition at line 251 of file constants.py.

◆ USERNAME_INDEX_DB

int backend.src.libs.utils.constants.USERNAME_INDEX_DB = 1

Definition at line 221 of file constants.py.