https://github.com/dcdanko/yamlbackedpystructs
Basic python data structures backed by a human editable yaml file
https://github.com/dcdanko/yamlbackedpystructs
Last synced: about 1 year ago
JSON representation
Basic python data structures backed by a human editable yaml file
- Host: GitHub
- URL: https://github.com/dcdanko/yamlbackedpystructs
- Owner: dcdanko
- License: mit
- Created: 2017-09-29T14:06:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-01-08T20:41:58.000Z (over 7 years ago)
- Last Synced: 2025-03-23T05:18:09.469Z (about 1 year ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
yaml_backed_structs
===================
.. image:: https://img.shields.io/pypi/v/yaml_backed_structs.svg
:target: https://pypi.python.org/pypi/yaml_backed_structs
:alt: Latest PyPI version
.. image:: https://img.shields.io/github/license/mashape/apistatus.svg
:target: https://img.shields.io/github/license/mashape/apistatus
:alt: License
.. image:: https://travis-ci.org/dcdanko/YamlBackedPyStructs.svg?branch=master
:target: https://travis-ci.org/dcdanko/YamlBackedPyStructs
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.
.. code-block:: python
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
------------
.. code-block:: bash
pip install yaml_backed_structs
python setup.py install
Licence
-------
MIT
Authors
-------
`yaml_backed_structs` was written by `David C. Danko `_.