Skip to content

constants

orchard.core.paths.constants

Project-wide Constants, Metric Keys, and Logging Style.

Single source of truth for static values used across all layers of the codebase: paths, environment, config, and logger. Lives in the lowest-level package (paths) so that every other module can safely import from here without circular-dependency risks.

Attributes:

Name Type Description
SUPPORTED_RESOLUTIONS Final[frozenset[int]]

Valid image resolutions across architectures.

METRIC_* Final[frozenset[int]]

Canonical metric key strings.

LOGGER_NAME Final[str]

Global logger identity for log synchronization.

HEALTHCHECK_LOGGER_NAME Final[str]

Logger identity for dataset validation.

LogStyle Final[str]

Unified logging style constants.

LogStyle

Unified logging style constants for consistent visual hierarchy.

Provides separators, symbols, indentation, and ANSI color codes used by all logging modules. Placed here (in paths.constants) rather than in logger.styles so that low-level packages (environment, config) can reference the constants without triggering circular imports.