Skip to content

fowbi/picklachu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Picklachu

picklachu_small

Pickle data and store it somewhere

2 built-in storage types

  • S3
  • local filesystem

More can be derived from BaseStorage

Usage

Persisting data:

from picklachu import Picklachu

with Picklachu(LocalStorage('/tmp/')) as picklachu:
    picklachu.i_pickle_you({'foo':'bar'}, 'foobar')

Retrieving data:

from picklachu import Picklachu

with Picklachu(LocalStorage('/tmp/')) as picklachu:
    picklachu.evolve('foobar') #  will return {'foo', 'bar'}