{ "info": { "author": "David Gang", "author_email": "michaelgang@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "template-file-parser\n====================\n\n.. image:: https://api.codacy.com/project/badge/Grade/f3fb8c7e10fa444581604d43faf90b1d\n :alt: Codacy Badge\n :target: https://app.codacy.com/app/michaelgang/template-file-parser?utm_source=github.com&utm_medium=referral&utm_content=david-gang/template-file-parser&utm_campaign=badger\n\n\n.. image:: https://api.codacy.com/project/badge/Coverage/bbffba1a08b842d2a3c94a4218efb8ce\n :alt: Codacy Coverage\n :target: https://www.codacy.com/app/michaelgang/template-file-parser?utm_source=github.com&utm_medium=referral&utm_content=david-gang/template-file-parser&utm_campaign=Badge_Coverage\n\n|Build Status|\n\n.. |Build Status| image:: https://travis-ci.org/david-gang/template-file-parser.svg?branch=master\n :target: https://travis-ci.org/david-gang/template-file-parser\n\n**template-file-parser** is an convenient module for parsing files with the python `template syntax `_.\n\nThis module was inspired by the following Stack overview `post `_.\n\nThe need of this module was for me to have an easy templating system manipulating configuration files, without learning a more complete but complicated templating system.\nThis is especially with configuration files of solr of kubernetes where just a small list of variables needs to be interpolated and written into a file.\n\n\nInstallation\n------------\n\npip install template-file-parser\n\nUsage\n-----\n\n::\n\n from template_file_parser import parse_file\n parse_file(in_file, out_file, variables, safe=False)\n\nThese are the parameters:\n\n- in_file: The input file\n- out_file: The output file\n- variables : a dictionary where the keys are the variables in the template and the values are the values needed to substitute\n- safe: if True then then not all variables in the template file needs to be declared. If False, all parameters needs to be declared. For more information read `here `_\n\nDisclaimer\n----------\nThis library is only supported for python >= 3.4 as it fits my needs, and i don't want to mees up with the encoding differences between python 2 and 3.\nThis software is beta and breaking changes can occur between versions\n\n\n\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/david-gang/template-file-parser", "keywords": "", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "template-file-parser", "package_url": "https://pypi.org/project/template-file-parser/", "platform": "", "project_url": "https://pypi.org/project/template-file-parser/", "project_urls": { "Homepage": "https://github.com/david-gang/template-file-parser" }, "release_url": "https://pypi.org/project/template-file-parser/0.14/", "requires_dist": null, "requires_python": ">=3.4", "summary": "Tiny wrapper over string templates which works with files", "version": "0.14" }, "last_serial": 3687333, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "9be2fead205bb925bc5b3b2c4ed4b3f2", "sha256": "0ccdfefd742061aab54ffef8a4d114bcfd09749e9535a1be05d303c7d501fe40" }, "downloads": -1, "filename": "template_file_parser-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9be2fead205bb925bc5b3b2c4ed4b3f2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 2702, "upload_time": "2018-03-19T19:42:22", "url": "https://files.pythonhosted.org/packages/66/9a/990eb091cf729daee1d9c5295c7456d407a8675bc68b1edceb666a43ba67/template_file_parser-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7b56059892bf676e739fc8f7825f752c", "sha256": "32ea0b499c57ca5d25afd1389a5af15c9190e1ad20c54d9f681a89a798831bf2" }, "downloads": -1, "filename": "template-file-parser-0.1.tar.gz", "has_sig": false, "md5_digest": "7b56059892bf676e739fc8f7825f752c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 1271, "upload_time": "2018-03-19T19:42:23", "url": "https://files.pythonhosted.org/packages/ef/9b/d1a9a0e389bdba0e8f9066d9a2914e0ab26c0aae3ab72415ad33548657ff/template-file-parser-0.1.tar.gz" } ], "0.14": [ { "comment_text": "", "digests": { "md5": "0835681112f02f418c986ed4821883b7", "sha256": "43a7aa3d00b9cc098bb87d856bcac5dfaa7f3faf483183f42cf106cc5b731ef3" }, "downloads": -1, "filename": "template_file_parser-0.14-py3-none-any.whl", "has_sig": false, "md5_digest": "0835681112f02f418c986ed4821883b7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 4528, "upload_time": "2018-03-20T11:04:45", "url": "https://files.pythonhosted.org/packages/b2/7b/5759531bb7c22f282562b0835c7da8631e658cef27663166432d88543cc7/template_file_parser-0.14-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2b497d2bea18b796ee4bbaa376bcfa9e", "sha256": "0ccf9c48506ebcb1c764edff12030bb849476c2b500a478dd528fd82db7e6624" }, "downloads": -1, "filename": "template-file-parser-0.14.tar.gz", "has_sig": false, "md5_digest": "2b497d2bea18b796ee4bbaa376bcfa9e", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 2350, "upload_time": "2018-03-20T11:04:47", "url": "https://files.pythonhosted.org/packages/72/27/8e643cbea0b1250d4d9cb8e95bd466f1b029e9ad58282a97346e29bf6759/template-file-parser-0.14.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0835681112f02f418c986ed4821883b7", "sha256": "43a7aa3d00b9cc098bb87d856bcac5dfaa7f3faf483183f42cf106cc5b731ef3" }, "downloads": -1, "filename": "template_file_parser-0.14-py3-none-any.whl", "has_sig": false, "md5_digest": "0835681112f02f418c986ed4821883b7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 4528, "upload_time": "2018-03-20T11:04:45", "url": "https://files.pythonhosted.org/packages/b2/7b/5759531bb7c22f282562b0835c7da8631e658cef27663166432d88543cc7/template_file_parser-0.14-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2b497d2bea18b796ee4bbaa376bcfa9e", "sha256": "0ccf9c48506ebcb1c764edff12030bb849476c2b500a478dd528fd82db7e6624" }, "downloads": -1, "filename": "template-file-parser-0.14.tar.gz", "has_sig": false, "md5_digest": "2b497d2bea18b796ee4bbaa376bcfa9e", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 2350, "upload_time": "2018-03-20T11:04:47", "url": "https://files.pythonhosted.org/packages/72/27/8e643cbea0b1250d4d9cb8e95bd466f1b029e9ad58282a97346e29bf6759/template-file-parser-0.14.tar.gz" } ] }