pnpl.datasets.libribrain2025.constants

pnpl.datasets.libribrain2025.constants#

Constants for LibriBrain2025 dataset.

This module provides constants that can be updated remotely without re-releasing the package. Constants are fetched from a remote JSON source and cached locally.

Environment variables: - PNPL_REMOTE_CONSTANTS_URL: URL to fetch constants from - PNPL_REMOTE_CONSTANTS_DISABLED: Set to “true” to disable remote fetching - PNPL_CACHE_DIR: Directory to store cached constants (default: ~/.pnpl/cache) - PNPL_CACHE_TIMEOUT: Cache timeout in seconds (default: 86400 = 24 hours)

Functions

refresh_module_constants()

Force refresh of module-level constants.

Classes

ConstantsAccessor()

Dynamic accessor for constants that can be refreshed.