{ "info": { "author": "Christian Haudum", "author_email": "christian@christianhaudum.at", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "j2y - A Jinja2 Template CLI\n===========================\n\n.. image:: https://travis-ci.org/chaudum/j2y.svg?branch=master\n :target: https://travis-ci.org/chaudum/j2y\n :alt: Travis CI\n\n.. image:: https://badge.fury.io/py/j2y.svg\n :target: http://badge.fury.io/py/j2y\n :alt: Python Package Index\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n :target: https://github.com/ambv/black\n :alt: Code Style: Black\n\n|\n\nRender Jinja2 templates on the command line using a YAML_, JSON_ or HCL_ file\nas input for the render context.\n\n\ud83d\udcbd Installation\n---------------\n\n``j2y`` is installed using ``pip``::\n\n $ pip install j2y\n\nAlternatively you can install directly from Github master branch::\n\n $ pip install git+https://github.com/chaudum/j2y.git@master\n\n\ud83d\udc69\u200d\ud83d\udcbb Usage\n----------------\n\nBy default, ``j2y`` takes a YAML_ file as input::\n\n $ j2y template.j2 < values.yaml\n\nAlternatively you can use JSON_ or HCL_ as input format::\n\n $ j2y template.j2 -f json < values.json\n $ j2y template.j2 -f hcl < values.hcl\n\nIt's also possible to provide multiple input files::\n\n $ j2y template.j2 --context v1.yaml --context v2.yaml\n\nRun ``j2y -h`` to see all available options.\n\nTemplate Variables\n..................\n\nAdditionally to the variables provided by the input file, ``j2y`` also provides\nbuilt-in default variables. These variables are:\n\n:meta.date:\n Type: ``datetime``\n\n Value: Current UTC datetime object\n\n:meta.platform:\n Type: ``dict``\n\n Value: Output of ``platform.uname()``\n\n:env:\n Type: ``dict``\n\n Value: All environment variables (output of ``os.environ``).\n\n\u2697\ufe0f Local Development\n--------------------\n\nBootstrapping\n.............\n\nCreate a virtualenv_ and install the package as develop egg::\n\n $ python -m venv env\n $ source env/bin/activate\n (env) $ pip install -e .\n\nTests\n.....\n\nAt the moment there are very simple test cases only. Test are written as\nPython doctests and run using pytest_::\n\n (env) $ pip install -e \".[test]\"\n (env) $ pytest\n\nPytest additionally runs the black_ linter and mypy_ static type checker.\n\nThe tests located in the ``docs/`` folder can also be built into HTML using\nSphinx_::\n\n (env) $ sphinx-build -E -W docs/ _build/\n\n\n.. _YAML: http://yaml.org/spec/\n.. _JSON: https://www.json.org/\n.. _HCL: https://github.com/hashicorp/hcl\n.. _virtualenv: https://docs.python.org/3/tutorial/venv.html\n.. _pytest: https://docs.pytest.org/en/latest/\n.. _black: https://github.com/ambv/black\n.. _mypy: https://github.com/python/mypy\n.. _Sphinx: http://www.sphinx-doc.org/en/master/\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/chaudum/j2y", "keywords": "", "license": "Apache License 2.0", "maintainer": "", "maintainer_email": "", "name": "j2y", "package_url": "https://pypi.org/project/j2y/", "platform": "any", "project_url": "https://pypi.org/project/j2y/", "project_urls": { "Homepage": "https://github.com/chaudum/j2y" }, "release_url": "https://pypi.org/project/j2y/0.2.1/", "requires_dist": [ "Jinja2 (==2.10)", "PyYAML (==3.13)", "pyhcl (==0.3.10)", "Sphinx (<1.9,>=1.8) ; extra == 'docs'", "mypy ; extra == 'test'", "black (==18.6b2) ; extra == 'test'", "pytest (>=3.5) ; extra == 'test'", "pytest-flake8 ; extra == 'test'", "pytest-black (==0.1.7) ; extra == 'test'", "pytest-mypy ; extra == 'test'" ], "requires_python": ">=3.6", "summary": "Jinja2 Template CLI", "version": "0.2.1" }, "last_serial": 4514224, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "ddac8da2cb477694b2d6248183dc5bbe", "sha256": "f3551cf06cc89aca4242163c779d09b4c133c6197a90bef69bdb5eed54f35798" }, "downloads": -1, "filename": "j2y-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ddac8da2cb477694b2d6248183dc5bbe", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6", "size": 4165, "upload_time": "2018-10-23T20:03:56", "url": "https://files.pythonhosted.org/packages/3c/6a/76c539f347dd86b22a677bfde93b5dc64514208838be0ce0acc4c82201d7/j2y-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "18d2d595404ba37861972210a8ff53f0", "sha256": "7437f4167b3ee967d81fb7708d8b57fc09ad4ae4184436d7214bd3ec026bb7e8" }, "downloads": -1, "filename": "j2y-0.1.0.tar.gz", "has_sig": false, "md5_digest": "18d2d595404ba37861972210a8ff53f0", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 9306, "upload_time": "2018-10-23T20:03:58", "url": "https://files.pythonhosted.org/packages/d9/8b/028dd3008702174f366b9cdc57815b1f9543bf9755f8cf69bf78235f5887/j2y-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "531f66de9017405753be9468c6edd849", "sha256": "6227e92673b8897c0b6a9e8b9ac30a83bc5a3484e65b13e88aaa44b4e53b5e85" }, "downloads": -1, "filename": "j2y-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "531f66de9017405753be9468c6edd849", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6", "size": 9011, "upload_time": "2018-11-18T20:22:30", "url": "https://files.pythonhosted.org/packages/79/a7/908a3cfd3b3871b86351cf8d8229251b36b30f31d2d227925e37d297024c/j2y-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "479e4a3f3de3f3cd54d6fa38be7061e0", "sha256": "d46a7220fa7e2952b64fe7e8c9447e5074403694e82113107c6d4ff449b64152" }, "downloads": -1, "filename": "j2y-0.2.0.tar.gz", "has_sig": false, "md5_digest": "479e4a3f3de3f3cd54d6fa38be7061e0", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 12921, "upload_time": "2018-11-18T20:22:32", "url": "https://files.pythonhosted.org/packages/9f/df/842ffc09b9093c95a8a6e4c3f2fd08e819ad20b2dded2b98bd3918ea3923/j2y-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "da43697168208041af751ed25426b690", "sha256": "0b3938ac48d85a1f0059b425062e64c9ccd2a870d82b14687e48dce205ed390e" }, "downloads": -1, "filename": "j2y-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "da43697168208041af751ed25426b690", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6", "size": 9105, "upload_time": "2018-11-21T20:48:34", "url": "https://files.pythonhosted.org/packages/09/07/ec7344eb9eec2b55f562f37e7f5adb083e0e899329b9afa61ce484233f30/j2y-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5c3cfa64ee40430270d980400fdd7f87", "sha256": "e8ace2e1e84bc8c3b933c15664f70f0b0821cfe9de346631d649ca863ea1aafc" }, "downloads": -1, "filename": "j2y-0.2.1.tar.gz", "has_sig": false, "md5_digest": "5c3cfa64ee40430270d980400fdd7f87", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 13142, "upload_time": "2018-11-21T20:48:36", "url": "https://files.pythonhosted.org/packages/29/f4/e2074eb89e5c9d55a0b35e68ada2891c57bc0271fdfa4084454d35b64175/j2y-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "da43697168208041af751ed25426b690", "sha256": "0b3938ac48d85a1f0059b425062e64c9ccd2a870d82b14687e48dce205ed390e" }, "downloads": -1, "filename": "j2y-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "da43697168208041af751ed25426b690", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6", "size": 9105, "upload_time": "2018-11-21T20:48:34", "url": "https://files.pythonhosted.org/packages/09/07/ec7344eb9eec2b55f562f37e7f5adb083e0e899329b9afa61ce484233f30/j2y-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5c3cfa64ee40430270d980400fdd7f87", "sha256": "e8ace2e1e84bc8c3b933c15664f70f0b0821cfe9de346631d649ca863ea1aafc" }, "downloads": -1, "filename": "j2y-0.2.1.tar.gz", "has_sig": false, "md5_digest": "5c3cfa64ee40430270d980400fdd7f87", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 13142, "upload_time": "2018-11-21T20:48:36", "url": "https://files.pythonhosted.org/packages/29/f4/e2074eb89e5c9d55a0b35e68ada2891c57bc0271fdfa4084454d35b64175/j2y-0.2.1.tar.gz" } ] }