{ "info": { "author": "Cyker Way", "author_email": "cykerway@example.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development" ], "description": "# jinja-cli\n\na command line interface to [jinja][jinja];\n\nthis program renders a jinja template with given data; data may be read from a\nfile, or defined as command line arguments; either template or data file may be\nstdin; output file may be stdout;\n\nsupported data formats: ini, json, xml, yaml;\n\n## install\n\n pip install jinja-cli\n\n## usage\n\nto render a jinja template with data in json format:\n\n # jinja -d {data} {template}\n\nto use a different data format:\n\n # jinja -d {data} -f {data_format} {template}\n\nto read template from stdin:\n\n # jinja -d {data} < {template}\n\nto read data from stdin:\n\n # jinja -d - {template} < {data}\n\nto output to a file:\n\n # jinja -d {data} -o {output} {template}\n\n## example\n\ntemplate file `example.j2`:\n\n sheep eat {{ sheep.eat }};\n\ndata file `example.json`:\n\n {\n \"sheep\": {\n \"eat\": \"grass\"\n }\n }\n\nany of these commands:\n\n # jinja -d example.json example.j2\n # jinja -d example.json < example.j2\n # jinja -d - -f json example.j2 < example.json\n\noutput:\n\n sheep eat grass;\n\n## license\n\nCopyright (C) 2018 Cyker Way\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program. If not, see .\n\n[jinja]: http://jinja.pocoo.org/", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/cykerway/jinja-cli", "keywords": "jinja template engine", "license": "", "maintainer": "", "maintainer_email": "", "name": "jinja-cli", "package_url": "https://pypi.org/project/jinja-cli/", "platform": "", "project_url": "https://pypi.org/project/jinja-cli/", "project_urls": { "Bug Reports": "https://github.com/cykerway/jinja-cli/issues", "Homepage": "https://github.com/cykerway/jinja-cli", "Source": "https://github.com/cykerway/jinja-cli" }, "release_url": "https://pypi.org/project/jinja-cli/1.1.3/", "requires_dist": null, "requires_python": "", "summary": "a command line interface to jinja;", "version": "1.1.3" }, "last_serial": 4551778, "releases": { "1.0.3": [ { "comment_text": "", "digests": { "md5": "17f025d76357be01e6977a332abbc05f", "sha256": "2a34b7915e76197b0302d13e125ca975b9ce8d8847ceb4427c709b203ba9983f" }, "downloads": -1, "filename": "jinja-cli-1.0.3.tar.gz", "has_sig": false, "md5_digest": "17f025d76357be01e6977a332abbc05f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6857, "upload_time": "2018-10-12T14:50:44", "url": "https://files.pythonhosted.org/packages/07/81/2fa26034d2eb4037a7b2c0cdcc968a42b607404378f4a870f10802558ab7/jinja-cli-1.0.3.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "8f3ab2cb0794ccb36979b023a9336866", "sha256": "635d60135d9c93415a8cc706f882ff817ed96edc9821904048edaf32ac362b83" }, "downloads": -1, "filename": "jinja-cli-1.1.0.tar.gz", "has_sig": false, "md5_digest": "8f3ab2cb0794ccb36979b023a9336866", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18623, "upload_time": "2018-11-30T12:13:00", "url": "https://files.pythonhosted.org/packages/c1/13/32410cdc463bc370c12b10f7d19e580013d965c88bb4edbcf821ec4b2013/jinja-cli-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "073f93e5845877613799a4360341c188", "sha256": "80ea96eb54afe45a550583b985b5bcaf42d2ec47f8fe69159fe9f75783ea56fa" }, "downloads": -1, "filename": "jinja-cli-1.1.1.tar.gz", "has_sig": false, "md5_digest": "073f93e5845877613799a4360341c188", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18553, "upload_time": "2018-11-30T12:35:53", "url": "https://files.pythonhosted.org/packages/51/ab/2be59179f3e9642e61148902a6503bc8baa02bb5d72371076c14322bd090/jinja-cli-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "dd2a90f2b75eaa0023f864c0405393ff", "sha256": "d1334a456e20a338f603dcecaab2efb12ea85f8bb21eda134bd584cb2b87aa7e" }, "downloads": -1, "filename": "jinja-cli-1.1.2.tar.gz", "has_sig": false, "md5_digest": "dd2a90f2b75eaa0023f864c0405393ff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18525, "upload_time": "2018-11-30T14:10:14", "url": "https://files.pythonhosted.org/packages/13/0d/e58a35b498d6222508b5a824b27d0c9c05d67b6ed93c3e5a60906d767227/jinja-cli-1.1.2.tar.gz" } ], "1.1.3": [ { "comment_text": "", "digests": { "md5": "969b86f3d7bbabe0b4069e18ab335516", "sha256": "31765094a2d807ad80766c6b361801ae5466cab4eb886942a6a059f6d14ca232" }, "downloads": -1, "filename": "jinja-cli-1.1.3.tar.gz", "has_sig": false, "md5_digest": "969b86f3d7bbabe0b4069e18ab335516", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18533, "upload_time": "2018-12-02T05:54:33", "url": "https://files.pythonhosted.org/packages/d2/8b/fcc997f4deb5696d8ea35148bb6f614765d11582021e8b3a40b628ff5aec/jinja-cli-1.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "969b86f3d7bbabe0b4069e18ab335516", "sha256": "31765094a2d807ad80766c6b361801ae5466cab4eb886942a6a059f6d14ca232" }, "downloads": -1, "filename": "jinja-cli-1.1.3.tar.gz", "has_sig": false, "md5_digest": "969b86f3d7bbabe0b4069e18ab335516", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18533, "upload_time": "2018-12-02T05:54:33", "url": "https://files.pythonhosted.org/packages/d2/8b/fcc997f4deb5696d8ea35148bb6f614765d11582021e8b3a40b628ff5aec/jinja-cli-1.1.3.tar.gz" } ] }