Basic python data structures backed by a human editable yaml file
Project description
Basic python data structures backed by a human editable yaml file
Description
Provides a dead simple way to store small amounts of information for python programs. This is useful for program configs and similar.
Has the advantage that the files backing the data structures are human readable and can be edited using your favorite text editor.
from yaml_backed_structs import PersistentDict, PersistentSet
pdict = PersistentDict('my-path.yml')
pdict['a'] = 1 # this will automatically be saved
pdict['b'] = []
pdict['b'].append(2) # this will not be saved automatically
pdict.save() # but we can save it like this
Installation
pip install yaml_backed_structs
python setup.py install
Licence
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file yaml_backed_structs-0.9.0.tar.gz
.
File metadata
- Download URL: yaml_backed_structs-0.9.0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 185326a77564330e6e9f32671a8446918eff13ce4fc9f5e3677a8c5edfb5cb82 |
|
MD5 | 544cbec05c3be0e0d19e7d9832a2d1c8 |
|
BLAKE2b-256 | 24f2fc48109a8e69c02547846334056d3017bef3214b9033219fa4d3bb63e088 |