Skip to main content

A simple serializable dict

Project description

Serializable Dict

A simple serializable dict

  • License: Apache-2.0


  • Save dict data while it’s changed in realtime, so data will safety saved to file system if script crashed suddenly.
  • Support context recursively save, data will only be saved during last __exit__.


from import YamlFileStorage
from serializabledict import SerializableDict

storage = YamlFileStorage("./test.yml")
adict = SerializableDict(storage=storage)

# Auto save
adict["item"] = 13 # Saved to test.yml automaticly.

# Batch save, saved to test.yml after 'with' finish
with adict:
    adict["item"] = 14
    adict["item2"] = 15
    adict["item3"] = 16


This package was created with Cookiecutter and the PyPackageTemplate project template.


0.0.5 (2018-07-12)

  • Dropped support of python 2.x
  • Refactor setup routines

0.0.4 (2018-06-25)

  • First release on PyPI.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for serializabledict, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size (14.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page