Here you put a simple dictionary and make it accessible with the key myDict:
import shelve
myDict = {"a" : 1, "b" : 2}
myShelvedDict = shelve.open("my_shelved_dictionary.db")
myShelvedDict["myDict"] = myDict
Note that the contents of the dictionary should be legible, as for any that should be delayed.
, .. myDict, , update :
myShelvedDict.update(myDict)
shelve dict.