Skip to main content

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

yaml_designer-0.1.3.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

yaml_designer-0.1.3-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

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