/window-specification-generator

Generate a pdf of window specification from a JSON description

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

window-specification-generator

Generate a pdf of window (physical windows, the ones that go into you house) specification from a JSON description. In other words given this:

{
    "name": "example",
    "title": "Example",
    "windows": [
        {
            "name": "kitchen1",
            "width": 100,
            "height": 100,
            "division": {
                "type": "vertical",
                "pieces": [
                    {
                        "type": "horizontal",
                        "pieces": [
                            {"size": 30},
                            {"opens": "left"}
                        ]
                    },
                    {
                        "opens": ["top", "left"]
                    }
                ]
            }
        }
    ]
}

Generate this: screenshot-example

Useful if you want to ask for a price offer for a bunch of windows but don't feel like manually drawing them.

Usage

./wsg.py /path/to/my-json-specification.json

Dependencies