{ "info": { "author": "Stein Heselmans", "author_email": "teh@melexis.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Environment :: Console", "Environment :: Web Environment", "Framework :: Sphinx :: Extension", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Utilities" ], "description": ".. image:: https://img.shields.io/hexpm/l/plug.svg\n :target: http://www.apache.org/licenses/LICENSE-2.0\n :alt: Apache2 License\n\n.. image:: https://badge.fury.io/py/mlx.json-to-mako.svg\n :target: https://badge.fury.io/py/mlx.json-to-mako\n :alt: Pypi packaged release\n\n.. image:: https://travis-ci.org/melexis/json-to-mako.svg?branch=master\n :target: https://travis-ci.org/melexis/json-to-mako\n :alt: Build status\n\n.. image:: https://codecov.io/gh/melexis/json-to-mako/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/melexis/json-to-mako\n :alt: Code Coverage\n\n.. image:: https://codeclimate.com/github/melexis/json-to-mako/badges/gpa.svg\n :target: https://codeclimate.com/github/melexis/json-to-mako\n :alt: Code Climate Status\n\n.. image:: https://codeclimate.com/github/melexis/json-to-mako/badges/issue_count.svg\n :target: https://codeclimate.com/github/melexis/json-to-mako\n :alt: Issue Count\n\n.. image:: https://requires.io/github/melexis/json-to-mako/requirements.svg?branch=master\n :target: https://requires.io/github/melexis/json-to-mako/requirements/?branch=master\n :alt: Requirements Status\n\n.. image:: https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat\n :target: https://github.com/melexis/json-to-mako/issues\n :alt: Contributions welcome\n\n======================\nJSON to MAKO generator\n======================\n\nPython script that converts JSON database(s) to any templated output using MAKO templates.\n\n.. _json_to_mako_installing:\n\n----------\nInstalling\n----------\n\n.. code-block::\n\n pip3 install mlx.json_to_mako\n\n.. _json_to_mako_usage:\n\n-----\nUsage\n-----\n\nThe script takes multiple JSON input files, combines them in a python list, and renders the\ndata through a provided template. No data-parsing functionality is provided by the script:\nthe complexity of 'interpreting' the data is done in the MAKO templates.\n\nExample\n=======\n\nGeneral use:\n\n.. code-block:: bash\n\n json-to-mako --input database.json --template rendering.mako --output rendered.html\n\nThe MAKO-template should match the dataformat of the JSON input file. The script adds\n\n- a list at the top level: multiple input JSON files are appended to a list,\n- some metadata in order to identify the input source\n\nThe usage on how to match the dataformat between JSON and MAKO is explained through an\nexample in the *example/* directory.\n\nMultiple input files\n====================\n\nThe `--input` flag can be provided multiple times in order to provide multiple JSON databases. This\nis explained by the example.\n\n.. code-block:: bash\n\n json-to-mako --input database1.json --input database2.json--template rendering.mako --output rendered.html\n\nThe multiple JSON databases are appended into a python list. Your MAKO-template needs to incorporate this by e.g.\nlooping over the different databases. See example/ folder for details.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/melexis/json-to-mako", "keywords": "json,mako", "license": "Apache License, Version 2.0", "maintainer": "", "maintainer_email": "", "name": "mlx.json-to-mako", "package_url": "https://pypi.org/project/mlx.json-to-mako/", "platform": "any", "project_url": "https://pypi.org/project/mlx.json-to-mako/", "project_urls": { "Homepage": "https://github.com/melexis/json-to-mako" }, "release_url": "https://pypi.org/project/mlx.json-to-mako/0.4/", "requires_dist": [ "mako" ], "requires_python": "", "summary": "Convertor for JSON database(s) to MAKO templated output", "version": "0.4" }, "last_serial": 3672802, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "c3ac842b434c7f689333c83195cbca2f", "sha256": "250a69d1920a30b1eb91fbec2d200aacbba3e891810c2d2c8b30a74e72f06bf8" }, "downloads": -1, "filename": "mlx.json_to_mako-0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c3ac842b434c7f689333c83195cbca2f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5463, "upload_time": "2017-12-11T09:16:25", "url": "https://files.pythonhosted.org/packages/a0/82/c0bd0a9a6198c9acee4e0310e3fe06fcb11459a524f8746f861db7721afd/mlx.json_to_mako-0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ccea3cbb0f9cdd7b30727c1386288f06", "sha256": "f7b984a684999177497755c6fecb3d3c809cfe9b5cf50b735e87db2e7235d8a2" }, "downloads": -1, "filename": "mlx.json_to_mako-0.1.tar.gz", "has_sig": false, "md5_digest": "ccea3cbb0f9cdd7b30727c1386288f06", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10997, "upload_time": "2017-12-11T09:16:58", "url": "https://files.pythonhosted.org/packages/4b/46/63506ac0f530d9a25a433c0186e6c9d558523ad0fcbfea6620c92aa6836a/mlx.json_to_mako-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "46a843f46a7a909e03f18b3f320a920a", "sha256": "a93c37268751c2d4788200ea3339bf9b98f6b4656844a885138b21d09ac5234e" }, "downloads": -1, "filename": "mlx.json_to_mako-0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "46a843f46a7a909e03f18b3f320a920a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6093, "upload_time": "2017-12-11T09:56:30", "url": "https://files.pythonhosted.org/packages/cd/82/851e7102dae04b28499f70789a8ca9f4f195bcc6d9b25027e9e05505d75c/mlx.json_to_mako-0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a23ab29773438a3aaa78110d99918e25", "sha256": "7932d422e6b4fc19a2b29c1a25d576db531d2be56b9547133ed2476dda7d7e5b" }, "downloads": -1, "filename": "mlx.json_to_mako-0.2.tar.gz", "has_sig": false, "md5_digest": "a23ab29773438a3aaa78110d99918e25", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11751, "upload_time": "2017-12-11T09:56:32", "url": "https://files.pythonhosted.org/packages/0e/c8/55f70f78183800d52d9c68e51dbe05a6384f31cc909dc6afecabb412bc71/mlx.json_to_mako-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "0826fe25ab8df2d8edb6e4bea30b30a3", "sha256": "8748c78bbac7236a7cff45ea540a73133dd6289103c7967d868db7541ceafb00" }, "downloads": -1, "filename": "mlx.json_to_mako-0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0826fe25ab8df2d8edb6e4bea30b30a3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6494, "upload_time": "2017-12-11T13:43:51", "url": "https://files.pythonhosted.org/packages/6c/34/a5b78b949ccef8dc47b90d8daf8ebbe397f612f2e9ebb8f64857dc2b77d5/mlx.json_to_mako-0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3107dc0b685d2f6f52b25ad9b9a357a2", "sha256": "fbd5aa9fe4e556e441104ca7c90de9c173fa11b551242244a4997f362193a47b" }, "downloads": -1, "filename": "mlx.json_to_mako-0.3.tar.gz", "has_sig": false, "md5_digest": "3107dc0b685d2f6f52b25ad9b9a357a2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12373, "upload_time": "2017-12-11T13:43:55", "url": "https://files.pythonhosted.org/packages/b6/e4/d73376c983c6688c1ee2d702b3d15fd0b7b15c7823bdb120e24407736864/mlx.json_to_mako-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "d1a9f1743f179173e78a3e14cd43fb5a", "sha256": "346b8d647431403b9c1dcd85fbe4e129cfac9c0f98fae7da121a850124407bd5" }, "downloads": -1, "filename": "mlx.json_to_mako-0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d1a9f1743f179173e78a3e14cd43fb5a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6571, "upload_time": "2018-03-15T14:55:00", "url": "https://files.pythonhosted.org/packages/15/dd/95b91b2a97531f479977b5cdb7816d17c9ae221d2e399f593738a9da1db5/mlx.json_to_mako-0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5176410458703711a3195ca1624d962c", "sha256": "2bbb9c3a7454de8c66d42f83e51d708cc65433551b0e7706d380094f0b521778" }, "downloads": -1, "filename": "mlx.json_to_mako-0.4.tar.gz", "has_sig": false, "md5_digest": "5176410458703711a3195ca1624d962c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11508, "upload_time": "2018-03-15T14:55:01", "url": "https://files.pythonhosted.org/packages/1f/bc/e730bba53a2148ffaec1583e2f9041dfdc2be9b5a5e81c1d2d496d63873b/mlx.json_to_mako-0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d1a9f1743f179173e78a3e14cd43fb5a", "sha256": "346b8d647431403b9c1dcd85fbe4e129cfac9c0f98fae7da121a850124407bd5" }, "downloads": -1, "filename": "mlx.json_to_mako-0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d1a9f1743f179173e78a3e14cd43fb5a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6571, "upload_time": "2018-03-15T14:55:00", "url": "https://files.pythonhosted.org/packages/15/dd/95b91b2a97531f479977b5cdb7816d17c9ae221d2e399f593738a9da1db5/mlx.json_to_mako-0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5176410458703711a3195ca1624d962c", "sha256": "2bbb9c3a7454de8c66d42f83e51d708cc65433551b0e7706d380094f0b521778" }, "downloads": -1, "filename": "mlx.json_to_mako-0.4.tar.gz", "has_sig": false, "md5_digest": "5176410458703711a3195ca1624d962c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11508, "upload_time": "2018-03-15T14:55:01", "url": "https://files.pythonhosted.org/packages/1f/bc/e730bba53a2148ffaec1583e2f9041dfdc2be9b5a5e81c1d2d496d63873b/mlx.json_to_mako-0.4.tar.gz" } ] }