A plugin that allows users to dynamically create yaml classes and convert into a yaml file when done
Project description
Features
Easily build yaml classes and convert to a yaml file when done
Each class has the following functionality:
-
add(string variable, value) #Adds a variable to the class
-
get(string variable) #Gets a variable from the class
-
yaml() #Returns a yamlized version of the class to be used as value for other yaml classes
-
build(string filename) #Builds the yaml file from the yaml class and outputs to desired filename
installation
pip install yaml-designer
Example
from yaml_designer import yamlclass
myclass = yamlclass()
myclass.add("newvariable", "value")
myclass.build("output.yaml")
Requirements
pip install pyyaml
License
Distributed under the terms of the BSD-3
_ license, "yaml-designer" is free and open source software
Issues
If you encounter any problems, please file an issue
_ along with a detailed description.
.. _BSD-3
: https://opensource.org/licenses/BSD-3-Clause
.. _file an issue
: https://github.com/MichaelE55/yaml-designer/issues
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
Hashes for yaml_designer-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46db76b3c45b84058a87f8c18a2c5e4c7d0f85d8a0a4208e4c5eca50bd1ecb3c |
|
MD5 | fe4eaced52f9d313078dc1a3121cd241 |
|
BLAKE2b-256 | 698065fa84cddd79b1892cf44263cc49659e9809ea4d351cf9968554806e5b5f |