store and fetch data by key : DBM « Database « Python






store and fetch data by key

import anydbm
file = anydbm.open("filename",'c') 
file['key'] = 'data'            
data = file['key']               


           
       








Related examples in the same category

1.Generic access to DBM-style databases Generic access to DBM-style databases
2.DBM Demo