Metadata-Version: 2.1
Name: yaes
Version: 0.1.3
Summary: Yet Another Expansion Syntax (pronounced 'Yasssss Kweeeeen')
Home-page: https://yaes.readthedocs.io/en/0.1.3/
Download-URL: https://github.com/gaf3/yaes
Author: Gaffer Fitch
Author-email: yaes@gaf3.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
License-File: LICENSE.txt

yaes
====

Yet Another Expansion Syntax (pronounced 'Yasssss Kweeeeen') for expanding complex data (YAML / JSON) with Jinja2 templating::

    import yaes

    values = {
        "a": 1,
        "cs": [2, 3],
        "ds": "nuts"
    }

    block = {
        "transpose": {
            "b": "a"
        },
        "iterate": {
            "c": "cs",
            "d": "ds"
        },
        "condition": "{{ c != 3 and d != 't' }}",
        "values": {"L": 7}
    }

    list(yaes.each(block, values))
    # [
    #     (block, {"a": 1, "cs": [2, 3], "ds": "nuts", "b": 1, "c": 2, "d": "n", "L": 7}),
    #     (block, {"a": 1, "cs": [2, 3], "ds": "nuts", "b": 1, "c": 2, "d": "u", "L": 7}),
    #     (block, {"a": 1, "cs": [2, 3], "ds": "nuts", "b": 1, "c": 2, "d": "s", "L": 7})
    # ]
