tabpy.tabpy_server.app.app_parameters   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 0
eloc 36
dl 0
loc 50
ccs 35
cts 35
cp 1
rs 10
c 0
b 0
f 0
1 1
class ConfigParameters:
2
    """
3
    Configuration settings names
4
    """
5
6 1
    TABPY_PWD_FILE = "TABPY_PWD_FILE"
7 1
    TABPY_PORT = "TABPY_PORT"
8 1
    TABPY_QUERY_OBJECT_PATH = "TABPY_QUERY_OBJECT_PATH"
9 1
    TABPY_STATE_PATH = "TABPY_STATE_PATH"
10 1
    TABPY_TRANSFER_PROTOCOL = "TABPY_TRANSFER_PROTOCOL"
11 1
    TABPY_CERTIFICATE_FILE = "TABPY_CERTIFICATE_FILE"
12 1
    TABPY_KEY_FILE = "TABPY_KEY_FILE"
13 1
    TABPY_MINIMUM_TLS_VERSION = "TABPY_MINIMUM_TLS_VERSION"
14 1
    TABPY_LOG_DETAILS = "TABPY_LOG_DETAILS"
15 1
    TABPY_STATIC_PATH = "TABPY_STATIC_PATH"
16 1
    TABPY_MAX_REQUEST_SIZE_MB = "TABPY_MAX_REQUEST_SIZE_MB"
17 1
    TABPY_EVALUATE_ENABLE = "TABPY_EVALUATE_ENABLE"
18 1
    TABPY_EVALUATE_TIMEOUT = "TABPY_EVALUATE_TIMEOUT"
19 1
    TABPY_GZIP_ENABLE = "TABPY_GZIP_ENABLE"
20
21
    # Arrow specific settings
22 1
    TABPY_ARROW_ENABLE = "TABPY_ARROW_ENABLE"
23 1
    TABPY_ARROWFLIGHT_PORT = "TABPY_ARROWFLIGHT_PORT"
24
25
26 1
class SettingsParameters:
27
    """
28
    Application (TabPyApp) settings names
29
    """
30
31 1
    TransferProtocol = "transfer_protocol"
32 1
    Port = "port"
33 1
    ServerVersion = "server_version"
34 1
    UploadDir = "upload_dir"
35 1
    CertificateFile = "certificate_file"
36 1
    KeyFile = "key_file"
37 1
    MinimumTLSVersion = "minimum_tls_version"
38 1
    StateFilePath = "state_file_path"
39 1
    ApiVersions = "versions"
40 1
    LogRequestContext = "log_request_context"
41 1
    StaticPath = "static_path"
42 1
    MaxRequestSizeInMb = "max_request_size_in_mb"
43 1
    EvaluateTimeout = "evaluate_timeout"
44 1
    EvaluateEnabled = "evaluate_enabled"
45 1
    GzipEnabled = "gzip_enabled"
46
47
    # Arrow specific settings
48 1
    ArrowEnabled = "arrow_enabled"
49
    ArrowFlightPort = "arrowflight_port"
50