Skip to main content

config

config

General configuration for the planetarypy package.

This module handles general configuration settings such as storage locations.

Classes

Name Description
Config Manage general configuration settings.

Config

config.Config(config_path=None)

[source]

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.

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.

[source]

save
config.Config.save()

Write the TOML doc to file.

[source]

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

Set value in sub-dic using dotted key.

[source]