Save
save function
Parameters
Raises
Example
import pysettings_manager as pysm
# Save a dictionary to a JSON file
settings = {"foo": 1, "bar": "hello"}
pysm.save("settings.json", **settings)
# Save variables to a JSON file
foo = 1
bar = "hello"
pysm.save("settings.json", foo=foo, bar=bar)
# Save and merge multiple dictionaries to a JSON file
settings1 = {"foo": 1, "bar": "hello"}
settings2 = {"baz": 2, "qux": "world"}
pysm.save("settings.json", **settings1, **settings2)Last updated