Skip to main content

Basic python data structures backed by a human editable yaml file

Project description

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.

Project details


Download files

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

Source Distribution

yaml_backed_structs-1.0.0.tar.gz (2.2 kB view details)

Uploaded Source

File details

Details for the file yaml_backed_structs-1.0.0.tar.gz.

File metadata

File hashes

Hashes for yaml_backed_structs-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6a9ce7c0f0914312baad62452faca221ab10a780ecd232e74f247d6407c8aebb
MD5 0574866b3e47555af0919950db5f5a9d
BLAKE2b-256 bd601c0397fb032e1cefe217c4d9665b36e65a0b3a353363bc87dcd0f4f14504

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page