Provides user-friendly interface for YAML data stream serialization with nothing but objects, supporting OOP approach.
Basically it is a wrapper over pyyaml python library.
Please run following script to obtain latest package from PYPI:
pip install uyaml
β¨ π° β¨
>>> from uyaml.loader import Yaml, YamlFromPath
>>>
>>> yaml: Yaml = YamlFromPath("path/to/config.yaml")
>>> yaml.content()
{"top":
{
"foo": {"content": "empty", "priority": 0},
"bar": {"content": "empty", "priority": 1}
}
}
>>> yaml.section(name="top")
{
"foo": {"content": "empty", "priority": 0},
"bar": {"content": "empty", "priority": 1}
}
git clone [email protected]:vyahello/uyaml.git
pip install -e .
Or using direct source:
pip install git+https://github.com/vyahello/[email protected]
Project has Travis CI integration using .travis.yml file thus code analysis (black
, pylint
, flake8
, mypy
, pydocstyle
) and unittests (pytest
) will be run automatically after every made change to the repository.
To be able to run code analysis, please execute command below:
./analyse-source-code.sh
Please check changelog file to get more details about actual versions and it's release notes.
Author β Volodymyr Yahello. Please refer to AUTHORS file to get all contributors.
Distributed under the MIT
license. See LICENSE for more information.
You can reach out me at:
- [email protected]
- https://twitter.com/vyahello
- https://www.linkedin.com/in/volodymyr-yahello-821746127
- clone the repository
- configure Git for the first time after cloning with your
name
andemail
pip install -r requirements.txt
to install all project dependenciespip install -r requirements-dev.txt
to install all development project dependencies