Code Monkey home page Code Monkey logo

yayi's Introduction

yayi: yet another yaml introduction

Overview

This project is for users who are new to YAML and are looking to build some basic knowledge to start producing YAML files. The goal is to start leveraging cool tools such as Ansible , Salt, Heat, and many more without having to learn the full suite of YAML syntax. This project highlights the basics to get up and running quickly!

The project includes some basic YAML files to illustrate the basic data structures. The YAML examples are accompanied by a simple Python script that allows the user to see how the relevant YAML is serialized to Python data types. Some basic Python knowledge will definitely help. :)

Note that most tools (such as Ansible and the others previously mentioned) only leverage a subset of the YAML syntax. Again, this project focuses on the useful items to get up and running fast!

Installation

How to Use this Project

  1. Start by reviewing a sample YAML file with an editor of your choice
    • Atom, Eclipse, and SublimeText all provide syntax highlighting
  2. Run the Python script and pass the reviewed YAML file as an argument
  3. See how YAML syntax maps to Python data types

Running

  • python show_me_the_yaml.py 1_mapping.yml

  • python show_me_the_yaml.py 2_sequence.yml

  • python show_me_the_yaml.py 3_mappings.yml

  • python show_me_the_yaml.py 4_sequences.yml

  • python show_me_the_yaml.py 5_scalars.yml

Useful References

yayi's People

Contributors

darien-hirotsu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.