Terarea  2
The automation project
Loading...
Searching...
No Matches
src.lib.components.constants Namespace Reference

Functions

str _get_environement_variable (dotenv environement, str variable_name)
 
Any _get_toml_variable (dict toml_conf, str section, str key, default=None)
 

Variables

 name
 
 ENV = dict(dotenv.dotenv_values())
 
 TOML_CONF = toml.load("config.toml")
 
 debug
 
str SENDER_ADDRESS = _get_environement_variable(ENV, "SENDER_ADDRESS")
 
str SENDER_KEY = _get_environement_variable(ENV, "SENDER_KEY")
 
str SENDER_HOST = _get_environement_variable(ENV, "SENDER_HOST")
 
 SENDER_PORT = int(_get_environement_variable(ENV, "SENDER_PORT"))
 
str REDIRECT_URI = _get_environement_variable(ENV, "REDIRECT_URI")
 
str DB_HOST = _get_environement_variable(ENV, "DB_HOST")
 
 DB_PORT = int(_get_environement_variable(ENV, "DB_PORT"))
 
str DB_USER = _get_environement_variable(ENV, "DB_USER")
 
str DB_PASSWORD = _get_environement_variable(ENV, "DB_PASSWORD")
 
str DB_DATABASE = _get_environement_variable(ENV, "DB_DATABASE")
 
str MINIO_HOST = _get_environement_variable(ENV, "MINIO_HOST")
 
 MINIO_PORT = int(_get_environement_variable(ENV, "MINIO_PORT"))
 
str MINIO_ROOT_USER = _get_environement_variable(ENV, "MINIO_ROOT_USER")
 
str MINIO_ROOT_PASSWORD = _get_environement_variable(ENV, "MINIO_ROOT_PASSWORD")
 
Any SERVER_WORKERS
 
Any SERVER_LIFESPAN
 
Any SERVER_TIMEOUT_KEEP_ALIVE
 
 SUCCESS
 
 ERROR
 
Any DEBUG
 
Any SERVER_DEV_RELOAD
 
Any SERVER_DEV_RELOAD_DIRS
 
Any SERVER_DEV_LOG_LEVEL
 
Any SERVER_DEV_USE_COLOURS
 
Any SERVER_PROD_PROXY_HEADERS
 
Any SERVER_PROD_FORWARDED_ALLOW_IPS
 
Any DATABASE_POOL_NAME
 
 DATABASE_MAX_POOL_CONNECTIONS
 
Any DATABASE_RESET_POOL_NODE_CONNECTION
 
 DATABASE_CONNECTION_TIMEOUT
 
Any DATABASE_LOCAL_INFILE
 
Any DATABASE_INIT_COMMAND
 
Any DATABASE_DEFAULT_FILE
 
Any DATABASE_SSL_KEY
 
Any DATABASE_SSL_CERT
 
Any DATABASE_SSL_CA
 
Any DATABASE_SSL_CIPHER
 
Any DATABASE_SSL_VERIFY_CERT
 
Any DATABASE_SSL
 
Any DATABASE_AUTOCOMMIT
 
Any DATABASE_COLLATION
 
Any CLEAN_TOKENS = _get_toml_variable(TOML_CONF, "Crons", "clean_tokens", True)
 
 CLEAN_TOKENS_INTERVAL
 
Any ENABLE_TEST_CRONS
 
 TEST_CRONS_INTERVAL
 
 CHECK_ACTIONS_INTERVAL
 
Any CLEAN_VERIFICATION
 
Any CLEAN_VERIFICATION_INTERVAL
 
Any RENEW_OATH_TOKENS
 
Any RENEW_OATH_TOKENS_INTERVAL
 
 EMAIL_VERIFICATION_DELAY
 
 CHECK_TOKEN_SIZE
 
 RANDOM_MIN
 
 RANDOM_MAX
 
 API_REQUEST_DELAY
 
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 JSON_HEADER_APP_NAME = "app_sender"
 
str JSON_HEADER_HOST = "serving_host"
 
str JSON_HEADER_PORT = "serving_port"
 
str CONTENT_TYPE = "JSON"
 
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 PATH_KEY = "path"
 
str ENDPOINT_KEY = "endpoint"
 
str METHOD_KEY = "method"
 
list ALLOWED_METHODS
 
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"
 

Detailed Description

_summary_
    This is the file in charge of containing the constants that run the server.

Function Documentation

◆ _get_environement_variable()

str src.lib.components.constants._get_environement_variable ( dotenv environement,
str variable_name )
protected
_summary_
    Get the content of an environement variable.

Args:
    variable_name (str): _description_

Returns:
    str: _description_: the value of that variable, otherwise an exception is raised.

Definition at line 21 of file constants.py.

◆ _get_toml_variable()

Any src.lib.components.constants._get_toml_variable ( dict toml_conf,
str section,
str key,
default = None )
protected
Get the value of a configuration variable from the TOML file.

Args:
    toml_conf (dict): The loaded TOML configuration as a dictionary.
    section (str): The section of the TOML file to search in.
    key (str): The key within the section to fetch.
    default: The default value to return if the key is not found. Defaults to None.

Returns:
    str: The value of the configuration variable, or the default value if the key is not found.

Raises:
    KeyError: If the section is not found in the TOML configuration.

Definition at line 39 of file constants.py.

Variable Documentation

◆ ALLOWED_METHODS

list src.lib.components.constants.ALLOWED_METHODS
Initial value:
1= [
2 "GET", "POST",
3 "PUT", "PATCH",
4 "DELETE", "HEAD",
5 "OPTIONS"
6]

Definition at line 312 of file constants.py.

◆ API_REQUEST_DELAY

src.lib.components.constants.API_REQUEST_DELAY
Initial value:
1= int(_get_toml_variable(
2 TOML_CONF, "Services", "api_request_delay", 5
3))

Definition at line 253 of file constants.py.

◆ BIRTHDAY_INDEX_DB

int src.lib.components.constants.BIRTHDAY_INDEX_DB = 5

Definition at line 295 of file constants.py.

◆ CHAR_ACTIVE_KEY

str src.lib.components.constants.CHAR_ACTIVE_KEY = "active"

Definition at line 284 of file constants.py.

◆ CHAR_ID_DEFAULT_INDEX

int src.lib.components.constants.CHAR_ID_DEFAULT_INDEX = 0

Definition at line 287 of file constants.py.

◆ CHAR_NAME_KEY

str src.lib.components.constants.CHAR_NAME_KEY = "name"

Definition at line 285 of file constants.py.

◆ CHAR_NODE_KEY

str src.lib.components.constants.CHAR_NODE_KEY = "node"

Definition at line 283 of file constants.py.

◆ CHAR_UID_KEY

str src.lib.components.constants.CHAR_UID_KEY = "uid"

Definition at line 286 of file constants.py.

◆ CHECK_ACTIONS_INTERVAL

src.lib.components.constants.CHECK_ACTIONS_INTERVAL
Initial value:
1= int(_get_toml_variable(
2 TOML_CONF, "Crons", "check_actions_interval", 300
3))

Definition at line 222 of file constants.py.

◆ CHECK_TOKEN_SIZE

src.lib.components.constants.CHECK_TOKEN_SIZE
Initial value:
1= int(_get_toml_variable(
2 TOML_CONF, "Verification", "check_token_size", 4
3))

Definition at line 242 of file constants.py.

◆ CLEAN_TOKENS

Any src.lib.components.constants.CLEAN_TOKENS = _get_toml_variable(TOML_CONF, "Crons", "clean_tokens", True)

Definition at line 212 of file constants.py.

◆ CLEAN_TOKENS_INTERVAL

src.lib.components.constants.CLEAN_TOKENS_INTERVAL
Initial value:
1= int(_get_toml_variable(
2 TOML_CONF, "Crons", "clean_tokens_interval", 1800
3))

Definition at line 213 of file constants.py.

◆ CLEAN_VERIFICATION

Any src.lib.components.constants.CLEAN_VERIFICATION
Initial value:
1= _get_toml_variable(
2 TOML_CONF, "Crons", "clean_verification", True
3)

Definition at line 225 of file constants.py.

◆ CLEAN_VERIFICATION_INTERVAL

Any src.lib.components.constants.CLEAN_VERIFICATION_INTERVAL
Initial value:
1= _get_toml_variable(
2 TOML_CONF, "Crons", "clean_verification_interval", 900
3)

Definition at line 228 of file constants.py.

◆ CONTENT_TYPE

str src.lib.components.constants.CONTENT_TYPE = "JSON"

Definition at line 269 of file constants.py.

◆ DATABASE_AUTOCOMMIT

Any src.lib.components.constants.DATABASE_AUTOCOMMIT
Initial value:
1= _get_toml_variable(
2 TOML_CONF, "Server_configuration.database", "autocommit", False
3)

Definition at line 204 of file constants.py.

◆ DATABASE_COLLATION

Any src.lib.components.constants.DATABASE_COLLATION
Initial value:
1= _get_toml_variable(
2 TOML_CONF, "Server_configuration.database", "collation", "utf8mb4_unicode_ci"
3)

Definition at line 207 of file constants.py.

◆ DATABASE_CONNECTION_TIMEOUT

src.lib.components.constants.DATABASE_CONNECTION_TIMEOUT
Initial value:
1= int(_get_toml_variable(
2 TOML_CONF, "Server_configuration.database", "connection_timeout", 10
3))

Definition at line 174 of file constants.py.

◆ DATABASE_DEFAULT_FILE

Any src.lib.components.constants.DATABASE_DEFAULT_FILE
Initial value:
1= _get_toml_variable(
2 TOML_CONF, "Server_configuration.database", "default_file", None
3)

Definition at line 183 of file constants.py.

◆ DATABASE_INIT_COMMAND

Any src.lib.components.constants.DATABASE_INIT_COMMAND
Initial value:
1= _get_toml_variable(
2 TOML_CONF, "Server_configuration.database", "init_command", None
3)

Definition at line 180 of file constants.py.

◆ DATABASE_LOCAL_INFILE

Any src.lib.components.constants.DATABASE_LOCAL_INFILE
Initial value:
1= _get_toml_variable(
2 TOML_CONF, "Server_configuration.database", "local_infile", False
3)

Definition at line 177 of file constants.py.

◆ DATABASE_MAX_POOL_CONNECTIONS

src.lib.components.constants.DATABASE_MAX_POOL_CONNECTIONS
Initial value:
1= int(_get_toml_variable(
2 TOML_CONF, "Server_configuration.database", "max_pool_connections", 10
3))

Definition at line 168 of file constants.py.

◆ DATABASE_POOL_NAME

Any src.lib.components.constants.DATABASE_POOL_NAME
Initial value:
1= _get_toml_variable(
2 TOML_CONF, "Server_configuration.database", "pool_name", None
3)

Definition at line 165 of file constants.py.

◆ DATABASE_RESET_POOL_NODE_CONNECTION

Any src.lib.components.constants.DATABASE_RESET_POOL_NODE_CONNECTION
Initial value:
1= _get_toml_variable(
2 TOML_CONF, "Server_configuration.database", "reset_pool_node_connection", True
3)

Definition at line 171 of file constants.py.

◆ DATABASE_SSL

Any src.lib.components.constants.DATABASE_SSL
Initial value:
1= _get_toml_variable(
2 TOML_CONF, "Server_configuration.database", "ssl", None
3)

Definition at line 201 of file constants.py.

◆ DATABASE_SSL_CA

Any src.lib.components.constants.DATABASE_SSL_CA
Initial value:
1= _get_toml_variable(
2 TOML_CONF, "Server_configuration.database", "ssl_ca", None
3)

Definition at line 192 of file constants.py.

◆ DATABASE_SSL_CERT

Any src.lib.components.constants.DATABASE_SSL_CERT
Initial value:
1= _get_toml_variable(
2 TOML_CONF, "Server_configuration.database", "ssl_cert", None
3)

Definition at line 189 of file constants.py.

◆ DATABASE_SSL_CIPHER

Any src.lib.components.constants.DATABASE_SSL_CIPHER
Initial value:
1= _get_toml_variable(
2 TOML_CONF, "Server_configuration.database", "ssl_cipher", None
3)

Definition at line 195 of file constants.py.

◆ DATABASE_SSL_KEY

Any src.lib.components.constants.DATABASE_SSL_KEY
Initial value:
1= _get_toml_variable(
2 TOML_CONF, "Server_configuration.database", "ssl_key", None
3)

Definition at line 186 of file constants.py.

◆ DATABASE_SSL_VERIFY_CERT

Any src.lib.components.constants.DATABASE_SSL_VERIFY_CERT
Initial value:
1= _get_toml_variable(
2 TOML_CONF, "Server_configuration.database", "ssl_verify_cert", False
3)

Definition at line 198 of file constants.py.

◆ DB_DATABASE

str src.lib.components.constants.DB_DATABASE = _get_environement_variable(ENV, "DB_DATABASE")

Definition at line 109 of file constants.py.

◆ DB_HOST

str src.lib.components.constants.DB_HOST = _get_environement_variable(ENV, "DB_HOST")

Definition at line 105 of file constants.py.

◆ DB_PASSWORD

str src.lib.components.constants.DB_PASSWORD = _get_environement_variable(ENV, "DB_PASSWORD")

Definition at line 108 of file constants.py.

◆ DB_PORT

src.lib.components.constants.DB_PORT = int(_get_environement_variable(ENV, "DB_PORT"))

Definition at line 106 of file constants.py.

◆ DB_USER

str src.lib.components.constants.DB_USER = _get_environement_variable(ENV, "DB_USER")

Definition at line 107 of file constants.py.

◆ DEBUG

Any src.lib.components.constants.DEBUG
Initial value:
1= _get_toml_variable(
2 TOML_CONF, "Server_configuration.debug_mode", "debug", False
3)

Definition at line 138 of file constants.py.

◆ debug

src.lib.components.constants.debug

Definition at line 90 of file constants.py.

◆ EMAIL_VERIFICATION_DELAY

src.lib.components.constants.EMAIL_VERIFICATION_DELAY
Initial value:
1= int(_get_toml_variable(
2 TOML_CONF, "Verification", "email_verification_delay", 120
3))

Definition at line 239 of file constants.py.

◆ ENABLE_TEST_CRONS

Any src.lib.components.constants.ENABLE_TEST_CRONS
Initial value:
1= _get_toml_variable(
2 TOML_CONF, "Crons", "enable_test_crons", False
3)

Definition at line 216 of file constants.py.

◆ ENDPOINT_KEY

str src.lib.components.constants.ENDPOINT_KEY = "endpoint"

Definition at line 310 of file constants.py.

◆ ENV

src.lib.components.constants.ENV = dict(dotenv.dotenv_values())

Definition at line 15 of file constants.py.

◆ ERROR

src.lib.components.constants.ERROR
Initial value:
1= int(_get_toml_variable(
2 TOML_CONF, "Server_configuration.status_codes", "error", -84
3))

Definition at line 133 of file constants.py.

◆ FIRSTNAME_INDEX_DB

int src.lib.components.constants.FIRSTNAME_INDEX_DB = 3

Definition at line 293 of file constants.py.

◆ GENDER_INDEX_DB

int src.lib.components.constants.GENDER_INDEX_DB = 7

Definition at line 296 of file constants.py.

◆ JSON_ERROR

str src.lib.components.constants.JSON_ERROR = "error"

Definition at line 260 of file constants.py.

◆ JSON_HEADER_APP_NAME

str src.lib.components.constants.JSON_HEADER_APP_NAME = "app_sender"

Definition at line 266 of file constants.py.

◆ JSON_HEADER_HOST

str src.lib.components.constants.JSON_HEADER_HOST = "serving_host"

Definition at line 267 of file constants.py.

◆ JSON_HEADER_PORT

str src.lib.components.constants.JSON_HEADER_PORT = "serving_port"

Definition at line 268 of file constants.py.

◆ JSON_LOGGED_IN

str src.lib.components.constants.JSON_LOGGED_IN = "logged in"

Definition at line 262 of file constants.py.

◆ JSON_MESSAGE

str src.lib.components.constants.JSON_MESSAGE = "msg"

Definition at line 259 of file constants.py.

◆ JSON_RESP

str src.lib.components.constants.JSON_RESP = "resp"

Definition at line 261 of file constants.py.

◆ JSON_TITLE

str src.lib.components.constants.JSON_TITLE = "title"

Definition at line 258 of file constants.py.

◆ JSON_UID

str src.lib.components.constants.JSON_UID = "user_uid"

Definition at line 263 of file constants.py.

◆ LASTNAME_INDEX_DB

int src.lib.components.constants.LASTNAME_INDEX_DB = 4

Definition at line 294 of file constants.py.

◆ METHOD_KEY

str src.lib.components.constants.METHOD_KEY = "method"

Definition at line 311 of file constants.py.

◆ MINIO_HOST

str src.lib.components.constants.MINIO_HOST = _get_environement_variable(ENV, "MINIO_HOST")

Definition at line 112 of file constants.py.

◆ MINIO_PORT

src.lib.components.constants.MINIO_PORT = int(_get_environement_variable(ENV, "MINIO_PORT"))

Definition at line 113 of file constants.py.

◆ MINIO_ROOT_PASSWORD

str src.lib.components.constants.MINIO_ROOT_PASSWORD = _get_environement_variable(ENV, "MINIO_ROOT_PASSWORD")

Definition at line 115 of file constants.py.

◆ MINIO_ROOT_USER

str src.lib.components.constants.MINIO_ROOT_USER = _get_environement_variable(ENV, "MINIO_ROOT_USER")

Definition at line 114 of file constants.py.

◆ name

src.lib.components.constants.name

Definition at line 10 of file constants.py.

◆ PASSWORD_INDEX_DB

int src.lib.components.constants.PASSWORD_INDEX_DB = 2

Definition at line 292 of file constants.py.

◆ PATH_KEY

str src.lib.components.constants.PATH_KEY = "path"

Definition at line 309 of file constants.py.

◆ RANDOM_MAX

src.lib.components.constants.RANDOM_MAX
Initial value:
1= int(_get_toml_variable(
2 TOML_CONF, "Verification", "random_max", 999999
3))

Definition at line 248 of file constants.py.

◆ RANDOM_MIN

src.lib.components.constants.RANDOM_MIN
Initial value:
1= int(_get_toml_variable(
2 TOML_CONF, "Verification", "random_min", 100000
3))

Definition at line 245 of file constants.py.

◆ REDIRECT_URI

str src.lib.components.constants.REDIRECT_URI = _get_environement_variable(ENV, "REDIRECT_URI")

Definition at line 102 of file constants.py.

◆ RENEW_OATH_TOKENS

Any src.lib.components.constants.RENEW_OATH_TOKENS
Initial value:
1= _get_toml_variable(
2 TOML_CONF, "Crons", "renew_oath_tokens", True
3)

Definition at line 231 of file constants.py.

◆ RENEW_OATH_TOKENS_INTERVAL

Any src.lib.components.constants.RENEW_OATH_TOKENS_INTERVAL
Initial value:
1= _get_toml_variable(
2 TOML_CONF, "Crons", "renew_oath_tokens_interval", 1800
3)

Definition at line 234 of file constants.py.

◆ REQUEST_BEARER_KEY

str src.lib.components.constants.REQUEST_BEARER_KEY = "authorization"

Definition at line 321 of file constants.py.

◆ REQUEST_TOKEN_KEY

str src.lib.components.constants.REQUEST_TOKEN_KEY = "token"

Definition at line 320 of file constants.py.

◆ ROLE_INDEX_DB

int src.lib.components.constants.ROLE_INDEX_DB = 10

Definition at line 297 of file constants.py.

◆ SENDER_ADDRESS

str src.lib.components.constants.SENDER_ADDRESS = _get_environement_variable(ENV, "SENDER_ADDRESS")

Definition at line 96 of file constants.py.

◆ SENDER_HOST

str src.lib.components.constants.SENDER_HOST = _get_environement_variable(ENV, "SENDER_HOST")

Definition at line 98 of file constants.py.

◆ SENDER_KEY

str src.lib.components.constants.SENDER_KEY = _get_environement_variable(ENV, "SENDER_KEY")

Definition at line 97 of file constants.py.

◆ SENDER_PORT

src.lib.components.constants.SENDER_PORT = int(_get_environement_variable(ENV, "SENDER_PORT"))

Definition at line 99 of file constants.py.

◆ SERVER_DEV_LOG_LEVEL

Any src.lib.components.constants.SERVER_DEV_LOG_LEVEL
Initial value:
1= _get_toml_variable(
2 TOML_CONF, "Server_configuration.development", "log_level", "info"
3)

Definition at line 149 of file constants.py.

◆ SERVER_DEV_RELOAD

Any src.lib.components.constants.SERVER_DEV_RELOAD
Initial value:
1= _get_toml_variable(
2 TOML_CONF, "Server_configuration.development", "reload", False
3)

Definition at line 143 of file constants.py.

◆ SERVER_DEV_RELOAD_DIRS

Any src.lib.components.constants.SERVER_DEV_RELOAD_DIRS
Initial value:
1= _get_toml_variable(
2 TOML_CONF, "Server_configuration.development", "reload_dirs", None
3)

Definition at line 146 of file constants.py.

◆ SERVER_DEV_USE_COLOURS

Any src.lib.components.constants.SERVER_DEV_USE_COLOURS
Initial value:
1= _get_toml_variable(
2 TOML_CONF, "Server_configuration.development", "use_colours", True
3)

Definition at line 152 of file constants.py.

◆ SERVER_LIFESPAN

Any src.lib.components.constants.SERVER_LIFESPAN
Initial value:
1= _get_toml_variable(
2 TOML_CONF, "Server_configuration", "lifespan", "auto"
3)

Definition at line 122 of file constants.py.

◆ SERVER_PROD_FORWARDED_ALLOW_IPS

Any src.lib.components.constants.SERVER_PROD_FORWARDED_ALLOW_IPS
Initial value:
1= _get_toml_variable(
2 TOML_CONF, "Server_configuration.production", "forwarded_allow_ips", None
3)

Definition at line 160 of file constants.py.

◆ SERVER_PROD_PROXY_HEADERS

Any src.lib.components.constants.SERVER_PROD_PROXY_HEADERS
Initial value:
1= _get_toml_variable(
2 TOML_CONF, "Server_configuration.production", "proxy_headers", True
3)

Definition at line 157 of file constants.py.

◆ SERVER_TIMEOUT_KEEP_ALIVE

Any src.lib.components.constants.SERVER_TIMEOUT_KEEP_ALIVE
Initial value:
1= _get_toml_variable(
2 TOML_CONF, "Server_configuration", "timeout_keep_alive", 30
3)

Definition at line 125 of file constants.py.

◆ SERVER_WORKERS

Any src.lib.components.constants.SERVER_WORKERS
Initial value:
1= _get_toml_variable(
2 TOML_CONF, "Server_configuration", "workers", None
3)

Definition at line 119 of file constants.py.

◆ SUCCESS

src.lib.components.constants.SUCCESS
Initial value:
1= int(_get_toml_variable(
2 TOML_CONF, "Server_configuration.status_codes", "success", 0
3))

Definition at line 130 of file constants.py.

◆ TAB_ACCOUNTS

str src.lib.components.constants.TAB_ACCOUNTS = "Users"

Definition at line 272 of file constants.py.

◆ TAB_ACTION_LOGGING

str src.lib.components.constants.TAB_ACTION_LOGGING = "ActionLoging"

Definition at line 278 of file constants.py.

◆ TAB_ACTION_TEMPLATE

str src.lib.components.constants.TAB_ACTION_TEMPLATE = "ActionTemplate"

Definition at line 279 of file constants.py.

◆ TAB_ACTIONS

str src.lib.components.constants.TAB_ACTIONS = "Actions"

Definition at line 273 of file constants.py.

◆ TAB_ACTIVE_OAUTHS

str src.lib.components.constants.TAB_ACTIVE_OAUTHS = "ActiveOauths"

Definition at line 277 of file constants.py.

◆ TAB_CONNECTIONS

str src.lib.components.constants.TAB_CONNECTIONS = "Connections"

Definition at line 275 of file constants.py.

◆ TAB_SERVICES

str src.lib.components.constants.TAB_SERVICES = "Services"

Definition at line 274 of file constants.py.

◆ TAB_USER_OAUTH_CONNECTION

str src.lib.components.constants.TAB_USER_OAUTH_CONNECTION = "UserOauthConnection"

Definition at line 280 of file constants.py.

◆ TAB_VERIFICATION

str src.lib.components.constants.TAB_VERIFICATION = "Verification"

Definition at line 276 of file constants.py.

◆ TEST_CRONS_INTERVAL

src.lib.components.constants.TEST_CRONS_INTERVAL
Initial value:
1= int(_get_toml_variable(
2 TOML_CONF, "Crons", "test_cron_interval", 200
3))

Definition at line 219 of file constants.py.

◆ THREAD_CACHE_REFRESH_DELAY

int src.lib.components.constants.THREAD_CACHE_REFRESH_DELAY = 10

Definition at line 324 of file constants.py.

◆ TOML_CONF

src.lib.components.constants.TOML_CONF = toml.load("config.toml")

Definition at line 18 of file constants.py.

◆ UA_EMAIL_KEY

str src.lib.components.constants.UA_EMAIL_KEY = "email"

Definition at line 328 of file constants.py.

◆ UA_LIFESPAN_KEY

str src.lib.components.constants.UA_LIFESPAN_KEY = "lifespan"

Definition at line 329 of file constants.py.

◆ UA_TOKEN_LIFESPAN

int src.lib.components.constants.UA_TOKEN_LIFESPAN = 7200

Definition at line 327 of file constants.py.

◆ UD_ADMIN_KEY

str src.lib.components.constants.UD_ADMIN_KEY = "admin"

Definition at line 304 of file constants.py.

◆ UD_BIRTHDAY_KEY

str src.lib.components.constants.UD_BIRTHDAY_KEY = "birthday"

Definition at line 301 of file constants.py.

◆ UD_FIRSTNAME_KEY

str src.lib.components.constants.UD_FIRSTNAME_KEY = "firstname"

Definition at line 299 of file constants.py.

◆ UD_GENDER_KEY

str src.lib.components.constants.UD_GENDER_KEY = "gender"

Definition at line 302 of file constants.py.

◆ UD_LASTNAME_KEY

str src.lib.components.constants.UD_LASTNAME_KEY = "lastname"

Definition at line 300 of file constants.py.

◆ UD_LOGGED_IN_KEY

str src.lib.components.constants.UD_LOGGED_IN_KEY = "logged_in"

Definition at line 306 of file constants.py.

◆ UD_LOGIN_TIME_KEY

str src.lib.components.constants.UD_LOGIN_TIME_KEY = "login_time"

Definition at line 305 of file constants.py.

◆ UD_ROLE_KEY

str src.lib.components.constants.UD_ROLE_KEY = "role"

Definition at line 303 of file constants.py.

◆ UD_USERNAME_KEY

str src.lib.components.constants.UD_USERNAME_KEY = "username"

Definition at line 298 of file constants.py.

◆ USER_INFO_ADMIN_NODE

str src.lib.components.constants.USER_INFO_ADMIN_NODE = "admin"

Definition at line 333 of file constants.py.

◆ USER_INFO_BANNED

list src.lib.components.constants.USER_INFO_BANNED = ["password", "method", "favicon"]

Definition at line 332 of file constants.py.

◆ USERNAME_INDEX_DB

int src.lib.components.constants.USERNAME_INDEX_DB = 1

Definition at line 291 of file constants.py.