mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-17 06:04:21 +01:00
The schema now defaults to http if none is defined. Also improves some of the cli docstrings
17 lines
642 B
Python
17 lines
642 B
Python
import os
|
|
|
|
DATA_DIR = os.path.expanduser("~/.teos_cli/")
|
|
CONF_FILE_NAME = "teos_cli.conf"
|
|
LOG_PREFIX = "cli"
|
|
|
|
# Load config fields
|
|
DEFAULT_CONF = {
|
|
"TEOS_SERVER": {"value": "localhost", "type": str},
|
|
"TEOS_PORT": {"value": 9814, "type": int},
|
|
"LOG_FILE": {"value": "teos_cli.log", "type": str, "path": True},
|
|
"APPOINTMENTS_FOLDER_NAME": {"value": "appointment_receipts", "type": str, "path": True},
|
|
"CLI_PUBLIC_KEY": {"value": "cli_pk.der", "type": str, "path": True},
|
|
"CLI_PRIVATE_KEY": {"value": "cli_sk.der", "type": str, "path": True},
|
|
"TEOS_PUBLIC_KEY": {"value": "teos_pk.der", "type": str, "path": True},
|
|
}
|