Skip to content

Persistent dict, backed by sqlite3 and pickle

Notifications You must be signed in to change notification settings

631068264/stash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Stash

persistent dict, backed-up by SQLite and pickle. Support py2.7 or py3.x

Recommend:

Keys are arbitrary strings,values arbitrary pickle-able objects.

Usage:

pip install six for Python compatibility

I use this to save program running state or data in memory when the program stop accidentally

stash = Stash('sss.sqlite', table_name='ss')
stash["foo"] = "fuck"
stash['和谐'] = '健康'
del stash["foo"]
del stash["15"]
del stash['和谐']

More usage refer to stash.py

Features

  • Use cPickle with the highest protocol for Values
  • Support for multiple tables in the same database file.

Inspire

About

Persistent dict, backed by sqlite3 and pickle

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages