Basic python data structures backed by a human editable yaml file
Project description
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
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::
pip install yaml_backed_structs
python setup.py install
Licence
-------
MIT
Authors
-------
`yaml_backed_structs` was written by `David C. Danko <dcdanko@gmail.com>`_.
===================
.. 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
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::
pip install yaml_backed_structs
python setup.py install
Licence
-------
MIT
Authors
-------
`yaml_backed_structs` was written by `David C. Danko <dcdanko@gmail.com>`_.
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.1.0.tar.gz
.
File metadata
- Download URL: yaml_backed_structs-0.1.0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d2cbea3181846a0ad30ab83962cd74191eeca2e096f9a2259fa5b247985b27c |
|
MD5 | adc0d18ecb046b9a74117580f3e514fa |
|
BLAKE2b-256 | ad1b87d70e5af004d86b147b41b6a0abaa21f3355eee2d9f768be91f60df68f6 |