Fridge is a persistent dict-like object useful for storing settings or any other JSON-serializable data.
Fridge currently supports only Python 3.
from fridge import Fridge
with Fridge('/home/user/config') as fr:
username = fr['username']
password = fr['password']
fr.setdefault('login_count', 0)
fr['login_count'] += 1