config

config

General configuration for the planetarypy package.

This module handles general configuration settings such as storage locations. PDS index URLs and timestamps are now managed separately in pds/index_config.py.

Classes

Name Description
Config Manage general configuration settings.

Config

config.Config(config_path=None)

Manage general configuration settings.

This class handles general configuration settings for the planetarypy package. At minimum, there should be the storage_root attribute for storing data.

Note: PDS index URLs and timestamps are now managed separately in pds/index_config.py.

Attributes

Name Description
d Get the Python dictionary from the TOML document.

Methods

Name Description
get_value Get sub-dictionary by nested key.
save Write the TOML doc to file.
set_value Set value in sub-dic using dotted key.
get_value
config.Config.get_value(key)

Get sub-dictionary by nested key.

save
config.Config.save()

Write the TOML doc to file.

set_value
config.Config.set_value(nested_key, value, save=True)

Set value in sub-dic using dotted key.