Skip to content

jam.defaults

__defaults__

Classes:

Name Description
DEFAULTS

Jam defaults vars.

DEFAULTS dataclass

DEFAULTS(
    DEBUG: bool = getenv("JAM_DEBUG", "False") == "True",
    TEMP_DIR: str = getenv("JAM_TMP_DIR", "/tmp/jam/"),
    ENABLE_PLUGINS: bool = getenv("JAM_ENABLE_PLUGINS", "1")
    == "0",
)

Jam defaults vars.

Attributes:

Name Type Description
DEBUG bool

Debug flag. Use only while developing jam module.

ENABLE_PLUGINS bool

Enabling experimental plugin features.

TEMP_DIR str

tmp directory for storing temporary files and blobs.

DEBUG class-attribute instance-attribute

DEBUG: bool = getenv('JAM_DEBUG', 'False') == 'True'

Debug flag. Use only while developing jam module.

ENABLE_PLUGINS class-attribute instance-attribute

ENABLE_PLUGINS: bool = (
    getenv("JAM_ENABLE_PLUGINS", "1") == "0"
)

Enabling experimental plugin features.

TEMP_DIR class-attribute instance-attribute

TEMP_DIR: str = getenv('JAM_TMP_DIR', '/tmp/jam/')

tmp directory for storing temporary files and blobs.