Files

74 lines
2.2 KiB
Python

"""
AUTHOR:
Khushal P Soonderji
DATE:
Friday, 22nd Nov., 2024
OBJECTIVE:
To keep variables and values that will be shared among various parts of the project.
REFERENCES:
N/A
DOWNLOADS:
N/A
"""
# *****************************************************************************************************************
# ***** ****
# *** IMPORT ***
# ***** ****
# *****************************************************************************************************************
# To make sibling directories accessible for imports:
# ---
import sys
sys.path.append(".")
sys.path.append("..")
# My utils:
from utils_v2.api.codes import StatusCodes, HttpCodes
from utils_v2.api.response import ResponseModel
# System-level activities:
import os
# For parsing URLs:
import urllib
# *****************************************************************************************************************
# ***** ****
# *** MACROS / ONE-TIME INIT ***
# ***** ****
# *****************************************************************************************************************
# Project variables:
APP_VERSION = "1.0.0"
PROJECT_NAME = "utils"
MODULE_NAME = "converse"
# Standard responses:
API_RESPONSE_UNAUTHORIZED = ResponseModel(
status_code = StatusCodes.FAILED,
http_code = HttpCodes.UNAUTHORIZED,
message = "The account does not belong to this user."
)
API_RESPONSE_NO_AUTH_TOKEN = ResponseModel(
status_code = StatusCodes.FAILED,
http_code = HttpCodes.NOT_FOUND,
message = "No such integration(s) found."
)