Skip to content

Basic python data structures backed by a human editable yaml file

License

Notifications You must be signed in to change notification settings

dcdanko/YamlBackedPyStructs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yaml_backed_structs

Latest PyPI version License https://travis-ci.org/dcdanko/YamlBackedPyStructs.svg?branch=master

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

Authors

yaml_backed_structs was written by David C. Danko.

About

Basic python data structures backed by a human editable yaml file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages