pnpl.datasets.libribrain2025.constants_utils

pnpl.datasets.libribrain2025.constants_utils#

Utility functions for managing remote constants.

Functions

clear_cache()

Clear the cached constants files.

create_constants_json_file(output_path[, ...])

Create a constants JSON file from the current constants or provided dictionary.

disable_remote_constants()

Disable remote constants fetching for the current session.

enable_remote_constants()

Enable remote constants fetching for the current session.

get_cache_info()

Get information about the current cache state.

print_status()

Print the current status of the remote constants system.

refresh_constants()

Force refresh constants from the remote source.

set_remote_constants_url(url)

Set the remote constants URL for the current session.

validate_constants_json(constants_dict)

Validate that a constants dictionary has the expected structure.