sign_language_translator.config.utils module
This module contains various helper functions and utilities for configuration purposes.
Module Structure: - get_package_version() -> str: Retrieves the version of the package. - read_urls(file_path: str) -> Dict[str, str]:
reads urls for package resources and prepares filename to url map.
- sign_language_translator.config.utils.get_package_version()[source][source]
Retrieves the version of the ‘sign-language-translator’ package.
- Returns:
The version of the package.
- Return type:
str
- sign_language_translator.config.utils.read_urls(file_path: str, encoding='utf-8') Dict[str, str][source][source]
Prepares a dictionary mapping filenames to their corresponding URLs.
- Parameters:
file_path (str) – The path to the JSON file containing resources information.
- Returns:
A dictionary mapping filenames to their corresponding URLs.
- Return type:
Dict[str, str]