Provides user-friendly interface for YAML data stream serialization with OOP support.
Project description
uYAML
Provides user-friendly interface for YAML data stream serialization with OOP support.
Basically it is a wrapper over pyyaml python library.
Tools
Usage
Installation
Please run following script to obtain latest package from PYPI:
➜ pip install uyaml
✨ 🍰 ✨
Quick start
>>> 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}
}
Source code
➜ git clone git@github.com:vyahello/uyaml.git
➜ pip install -e .
Or using direct source:
➜ pip install git+https://github.com/vyahello/uyaml@0.0.1
Development notes
CI
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
Release notes
Please check changelog file to get more details about actual versions and it's release notes.
Meta
Author – Volodymyr Yahello
Distributed under the MIT license. See LICENSE for more information.
You can reach out me at:
- vyahello@gmail.com
- https://github.com/vyahello
- https://www.linkedin.com/in/volodymyr-yahello-821746127
Contributing
- clone the repository
- configure Git for the first time after cloning with your
nameandemail pip install -r requirements.txtto install all project dependenciespip install -r requirements-dev.txtto install all development project dependencies
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file uyaml-0.0.5.tar.gz.
File metadata
- Download URL: uyaml-0.0.5.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b49a0e6f1d0d2558a7f5cf0d0bf68cb31dead7b9017a29c6fbf564f1c043fbb
|
|
| MD5 |
e21ea252e28caf3a5e0a3eee83f00c52
|
|
| BLAKE2b-256 |
6e133e9a7891d15937bcc22f04c0218edbedc55e3815099c7bb0c4649471a7e8
|
File details
Details for the file uyaml-0.0.5-py3-none-any.whl.
File metadata
- Download URL: uyaml-0.0.5-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2da51b896b4c6cdbb230bf8951a653efc88ea07a53544afbd6debfed90c1c927
|
|
| MD5 |
cbb72a913f253a1609abae5487501e2f
|
|
| BLAKE2b-256 |
868f5d6126fa20f4db3ae38afa635cf7736370e59d286d3216dd893de8412c21
|