1

Using pickle, I am saving dictionaries every time a key value changes (or when a new key is added). I am assuming that pickle saves all the data including the keys and values that have not changed. Is there a way to selectively pickle data when key changes? Something more like what git does i.e. save only what has changed.

nivesh
  • 109
  • 1
  • 6

1 Answers1

0

Sounds to me as if pickle no longer fits your requirements. Have a look at the Pickle Alternatives as suggested by Amin.

Another possibilty would be a sqlite-based key-value store: Use SQLite as a key:value store

Lydia van Dyke
  • 2,466
  • 3
  • 13
  • 25