Serializable Dict
A simple serializable dict
License: Apache-2.0
Features
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__.
Usage
from serializabledict.storage.yamlfilestorage import YamlFileStorage
from serializabledict import SerializableDict
storage = YamlFileStorage("./test.yml")
adict = SerializableDict(storage=storage)
# Auto save
adict.load()
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
Credits
This package was created with Cookiecutter and the PyPackageTemplate project template.
History
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.
Metadata
Release files for serializabledict 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| serializabledict-0.0.5.zip | 14.6 kB | Without provenance | Details for serializabledict-0.0.5.zip |
Release files / serializabledict-0.0.5.zip
| Download URL | serializabledict-0.0.5.zip |
|---|---|
| Size | 14.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
770169108373c913612c2f00f9e72d18984069a8ae4701c5884556cdecff70ae
|
|
BLAKE2b-256 checksum How to use checksums |
c4c5250d72d63ba7632796652b65e0b6533fe7b6a685472f2c6aaff007ce6745
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for serializabledict 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.