Skip to main content

Provides user-friendly interface for YAML data stream serialization with OOP support.

Project description

Screenshot

made-with-python Build Status Coverage Status Code style: black Checked with pylint Checked with flake8 Checked with pydocstyle Checked with mypy License EO principles respected here PyPI version shields.io PyPI pyversions Downloads CodeFactor

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

⬆ back to top

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:

Contributing

  1. clone the repository
  2. configure Git for the first time after cloning with your name and email
  3. pip install -r requirements.txt to install all project dependencies
  4. pip install -r requirements-dev.txt to install all development project dependencies

⬆ back to top

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

uyaml-0.0.3.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uyaml-0.0.3-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file uyaml-0.0.3.tar.gz.

File metadata

  • Download URL: uyaml-0.0.3.tar.gz
  • Upload date:
  • Size: 8.4 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

Hashes for uyaml-0.0.3.tar.gz
Algorithm Hash digest
SHA256 a69e5535da725524e4d6b2adb9716668df28fbe36f8230eec48f80399c6ed5ab
MD5 5c40e953b0644f12002167e1f9f4f917
BLAKE2b-256 4ae99b8b526fee9f0c4f48f71ae02673fb65a6a489cb886546c311dc848c4fdc

See more details on using hashes here.

File details

Details for the file uyaml-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: uyaml-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.6 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

Hashes for uyaml-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d76017b59166de080c7a6d01f07723bb89ca12df62d0c9af2c29f4439f5bc8f5
MD5 ee5e9805a912c6f696c844c8d4b1bd61
BLAKE2b-256 c7011e3119ed51c655acb44f4ed90e11446aa7d68afae1f23b2b18dc98d35517

See more details on using hashes here.

Supported by

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