{ "info": { "author": "Takahiro Yano", "author_email": "speg03@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Pre-processors" ], "description": "# jiren\n\njiren is an application that generates text from a template. The format of the template is based on jinja2.\n\n[![PyPI](https://img.shields.io/pypi/v/jiren.svg)](https://pypi.org/project/jiren/)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/jiren.svg)](https://pypi.org/project/jiren/)\n[![Build Status](https://travis-ci.com/speg03/jiren.svg?branch=master)](https://travis-ci.com/speg03/jiren)\n[![codecov](https://codecov.io/gh/speg03/jiren/branch/master/graph/badge.svg)](https://codecov.io/gh/speg03/jiren)\n\nRead this in Japanese: [\u65e5\u672c\u8a9e](https://github.com/speg03/jiren/blob/master/README.ja.md)\n\n## Installation\n\n```sh\npip install jiren\n```\n\n## Usage\n\n### Generate text\n\nGenerate text from a template using the `jiren` command. This command can read a template from stdin or files.\n\nAn example of reading a template from stdin:\n\nCommand:\n```sh\necho \"hello, {{ name }}\" | jiren --var.name=world\n```\nOutputs:\n```\nhello, world\n```\n\nAn example of reading a template from a file:\n\nCommand:\n```sh\ncat <template.j2\nhello, {{ name }}\nEOF\n\njiren template.j2 --var.name=world\n```\nOutputs:\n```\nhello, world\n```\n\nIn this example, the template contains a variable called `name`. You can set values for variables in a template using program arguments passed to the `jiren` command. Note that the program arguments must be prefixed with `--var.`.\n\nIf you want to know more about template format, please refer to jinja2 document ( http://jinja.pocoo.org/ ).\n\n\n### Variables in a template\n\nYou can use the help to check the variables defined in a template.\n\nCommand:\n```sh\necho \"{{ greeting }}, {{ name }}\" | jiren --help\n```\nOutputs:\n```\n... (omitted)\n\nvariables:\n --var.name VAR.NAME\n --var.greeting VAR.GREETING\n```\n\n\n### Default values\n\nYou can set default values for variables for which no values was specified. This is based on the jinja2 specification.\n\nCommand:\n```sh\necho \"{{ greeting }}, {{ name | default('world') }}\" | jiren --var.greeting=hello\n```\nOutputs:\n```\nhello, world\n```\n\n\n### Strict option\n\nWhen using the `--strict` option, you must specify values for all variables.\n\nCommand:\n```sh\necho \"{{ greeting }}, {{ name }}\" | jiren --strict --var.greeting=hello\n```\nOutputs:\n```\n... (omitted)\n\njiren: error: the following arguments are required: --var.name\n```\n", "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/speg03/jiren", "keywords": "jinja2,template,render,text,preprocessing", "license": "MIT", "maintainer": "Takahiro Yano", "maintainer_email": "speg03@gmail.com", "name": "jiren", "package_url": "https://pypi.org/project/jiren/", "platform": "", "project_url": "https://pypi.org/project/jiren/", "project_urls": { "Homepage": "https://github.com/speg03/jiren", "Repository": "https://github.com/speg03/jiren" }, "release_url": "https://pypi.org/project/jiren/0.2.2/", "requires_dist": [ "jinja2 (>=2.10,<3.0)", "nestargs (>=0.4.0,<0.5.0)" ], "requires_python": ">=3.5,<4.0", "summary": "jinja2 template renderer", "version": "0.2.2" }, "last_serial": 5852905, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "63eb9203fa248f69313ea05bd8943d3e", "sha256": "f97b9193ff4fd44fae088041b3f78a05e127bbccaf91c47f04bbff08a982d818" }, "downloads": -1, "filename": "jiren-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "63eb9203fa248f69313ea05bd8943d3e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5,<4.0", "size": 3750, "upload_time": "2019-07-01T14:46:41", "url": "https://files.pythonhosted.org/packages/d2/61/2f9a2f44eb203e1074cf4b1d172b9c06140f5548c22109f3c054c648c709/jiren-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "df1514d812fc80cb3fe802dd52f493a0", "sha256": "b5a173e3e5e4a4b645b4a2affcb662ce3210324d5bae4c1626600b45204a9db8" }, "downloads": -1, "filename": "jiren-0.1.0.tar.gz", "has_sig": false, "md5_digest": "df1514d812fc80cb3fe802dd52f493a0", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5,<4.0", "size": 3232, "upload_time": "2019-07-01T14:46:42", "url": "https://files.pythonhosted.org/packages/48/ca/551550d9126ddddc3af54ba91bcc4f097b860cf89bdb30a132cf28f379e1/jiren-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "0c7a763f65277af9e92701d05ae3fa6d", "sha256": "603f5676aed27257d44d52de55dd580ae526d99e71fd48ebeb1f9993a861a4ab" }, "downloads": -1, "filename": "jiren-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "0c7a763f65277af9e92701d05ae3fa6d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5,<4.0", "size": 3694, "upload_time": "2019-07-04T15:07:24", "url": "https://files.pythonhosted.org/packages/71/3a/40468c6d459ddfaefdab72e1e647ae7ee3e3d2eaaddaf371c75ab1fcdae9/jiren-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b07a30d3d05f426048acf7d3c5f4857d", "sha256": "d4c13bf54086eeb8a920b0d3288b150960146cdc1d52ed03801bcf0b5c4e843e" }, "downloads": -1, "filename": "jiren-0.1.1.tar.gz", "has_sig": false, "md5_digest": "b07a30d3d05f426048acf7d3c5f4857d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5,<4.0", "size": 3194, "upload_time": "2019-07-04T15:07:25", "url": "https://files.pythonhosted.org/packages/0e/09/83a1c10cebcabd35b4cce10e567826c11fa6bdab447bc8acde10748aa513/jiren-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "57764666a4ef11d13cb7a9efe4cc3ba5", "sha256": "8edf214844195d3768084949098841f86eaac0fce7d3beb8ec1d307f0edb8bc4" }, "downloads": -1, "filename": "jiren-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "57764666a4ef11d13cb7a9efe4cc3ba5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5,<4.0", "size": 4061, "upload_time": "2019-07-20T16:16:58", "url": "https://files.pythonhosted.org/packages/db/d8/964a57b04575c27e49f157ec595d634fa9f347f338a69738945052879920/jiren-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "71230ee38b37cde77609ad0eee3e461b", "sha256": "ab84b67bcec5153dd3749d12daaf8657c28c890c7de4f4b03a6ed9720d3fc251" }, "downloads": -1, "filename": "jiren-0.2.0.tar.gz", "has_sig": false, "md5_digest": "71230ee38b37cde77609ad0eee3e461b", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5,<4.0", "size": 3614, "upload_time": "2019-07-20T16:16:59", "url": "https://files.pythonhosted.org/packages/1d/c6/4e7f35f66b2ff8f362eed18edcb624fb2b52b4308775b5d4ffa66a170079/jiren-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "bb7ff9bc81620da06a9307ba65613824", "sha256": "391d3a4098b9a7a2ecb6e6c9a63ac22b4e4f4036b15e4fff1d774e511a5c7dd3" }, "downloads": -1, "filename": "jiren-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "bb7ff9bc81620da06a9307ba65613824", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5,<4.0", "size": 4232, "upload_time": "2019-09-15T08:13:54", "url": "https://files.pythonhosted.org/packages/6d/df/481844a455d3732b98306d376c5b68fe05668b43a09fa95511e461d32fca/jiren-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2047f60c90ac83c7d91e41f89400817c", "sha256": "e70a45048c154881cf85d77ff0d44a7e47f3c4d1cad9d344905477b99a92ec61" }, "downloads": -1, "filename": "jiren-0.2.1.tar.gz", "has_sig": false, "md5_digest": "2047f60c90ac83c7d91e41f89400817c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5,<4.0", "size": 3817, "upload_time": "2019-09-15T08:13:55", "url": "https://files.pythonhosted.org/packages/fd/59/f6b102db7b47e0b6565d0ed227f9d50da58137879cbe62dbc8f4e320e12d/jiren-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "b7f51eca0caab0e7d7cdfd73b459dc08", "sha256": "cfa371673449c60570bafd884291916c51291a8c1511aeea32bc0f9b72ab4ac5" }, "downloads": -1, "filename": "jiren-0.2.2-py3-none-any.whl", "has_sig": false, "md5_digest": "b7f51eca0caab0e7d7cdfd73b459dc08", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5,<4.0", "size": 4230, "upload_time": "2019-09-18T22:40:57", "url": "https://files.pythonhosted.org/packages/1f/43/4abaea0ab2622eb7f32b5b5ea1b46a39cec45b9071d67723e5dc3e01ca00/jiren-0.2.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f499a2ff6e94f87f9e25c28419b814a4", "sha256": "6f58698b76f83bc7346b167d80298f6982ac684adf789f0733922e4aa5ac2ebe" }, "downloads": -1, "filename": "jiren-0.2.2.tar.gz", "has_sig": false, "md5_digest": "f499a2ff6e94f87f9e25c28419b814a4", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5,<4.0", "size": 3837, "upload_time": "2019-09-18T22:40:58", "url": "https://files.pythonhosted.org/packages/06/b9/02baa9610f6438ed17f5cf9a3168827f850438c570ed0018208bf95ce27f/jiren-0.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b7f51eca0caab0e7d7cdfd73b459dc08", "sha256": "cfa371673449c60570bafd884291916c51291a8c1511aeea32bc0f9b72ab4ac5" }, "downloads": -1, "filename": "jiren-0.2.2-py3-none-any.whl", "has_sig": false, "md5_digest": "b7f51eca0caab0e7d7cdfd73b459dc08", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5,<4.0", "size": 4230, "upload_time": "2019-09-18T22:40:57", "url": "https://files.pythonhosted.org/packages/1f/43/4abaea0ab2622eb7f32b5b5ea1b46a39cec45b9071d67723e5dc3e01ca00/jiren-0.2.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f499a2ff6e94f87f9e25c28419b814a4", "sha256": "6f58698b76f83bc7346b167d80298f6982ac684adf789f0733922e4aa5ac2ebe" }, "downloads": -1, "filename": "jiren-0.2.2.tar.gz", "has_sig": false, "md5_digest": "f499a2ff6e94f87f9e25c28419b814a4", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5,<4.0", "size": 3837, "upload_time": "2019-09-18T22:40:58", "url": "https://files.pythonhosted.org/packages/06/b9/02baa9610f6438ed17f5cf9a3168827f850438c570ed0018208bf95ce27f/jiren-0.2.2.tar.gz" } ] }