Most of the key-value stores I've seen are either a dictionary of dictionaries (like mango *) or a dictionary of strings (like redis). There are pros and cons for both approaches. I do not know what you want, so I will give the simplest answer: go with the list of dictionaries:
Users = [] Users.append({ 'Name' : {'Firstname', 'Lastname'}, # Are these sets? 'Address' : {'Street','Zip','State'}, 'CreditCard' : {'CCtype','CCnumber'}, })
* OK, to be honest, Mongo is more like a dictionary of magic strings. This is json, but the search is handled internally, so you can think of it as a dictionary of arbitrary (but json-serializable) data structures.
source share