Simple persistence for Python dictionaries
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ledge
.gitignore
LICENSE
README.md
setup.py
tests.py

README.md

ledge

Simple serialized persistence for Python dictionaries. With backends for Amazon S3 and the filesystem.

Pre-alpha quality, probably not a good idea to use this yet.

>>> my_ledge = Ledge('my_ledge', backend=S3('some-bucket', 'some-key'), readonly=False)
>>> my_ledge['name'] = 'my_ledge'
>>> my_ledge['age'] = 42
>>> my_ledge.sync()
>>>
>>> # ... time passes
>>>
>>> my_ledge = Ledge('my_ledge', backend=S3('some-bucket', 'some-key'))
>>> print my_ledge['name']
"my_ledge"