meteostat.config.get_env_name

On this page

Get the full name of an environment variable (including prefix) that can be used to set a configuration option.

Parameters#

Parameter Description Type
key Configuration option key str

Returns#

str

The full environment variable name with the prefix included.

Example#

Python
import meteostat as ms

# Get environment variable name for cache directory
env_var = ms.config.get_env_name('cache_directory')
print(env_var)  # Output: MS_CACHE_DIRECTORY