{ "info": { "author": "ffeast", "author_email": "ffeast@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "CLI templater (CLT)\n===================\n\nA simple command-line tool for convenient templates processing. For example, you have a config file for some web service and just want to put there a different host:port binding\ndepending on the target server role. Using the tool, you can simply pass the missing variables using syntax like:\n```bash\nclt --tpl your_file.conf --out test.out --binding 127.0.0.1:9999\n```\n\nExamples\n--------\n\nReads infile.tpl template and rewrites its contents to infile.out,\nsubstituting \"$$$test\":\n\n```bash\nclt --tpl infile.tpl --out file.out --delim '$$$' --test 30\n```\n\n\nReads infile.tpl template and rewrites its contents to outdir/infile.tpl,\nsubstituting \"%var1\" and \"%var2\":\n\n```bash\nclt --tpl infile.tpl --out outdir --delim '%' --var1 20 --var2 hello\n```\n\n\nReads all files from indir and rewrites them to outdir,\nsubstituting \"$$$var1\" and \"$$$var2\" (\"$$$\" is the default delimiter):\n\n```bash\nclt --tpl indir --out outdir --var1 10 --var2 50\n```\n\n\nReads all files matching \"*.tpl\" and rewrites them to\noutdir, substituting \"$$$var1\" and \"$$$var2\":\n\n```bash\nclt --tpl indir/\\*.tpl --out outdir --var1 10 --var 20\n```\n\nInstallation\n------------\n```bash\npip install clt\n```\n\nPython versions supported\n------------\nTested with 2.6.x and 2.7.x", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ffeast/clt", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "clt", "package_url": "https://pypi.org/project/clt/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/clt/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/ffeast/clt" }, "release_url": "https://pypi.org/project/clt/1.1/", "requires_dist": null, "requires_python": null, "summary": "CLI template processor", "version": "1.1" }, "last_serial": 966508, "releases": { "1.1": [ { "comment_text": "", "digests": { "md5": "c3a21d08cb71fe8c8e05b3fa261952c0", "sha256": "296db0741a85f102c6e99ab0d09de842d8bc12d3a622f6cdd8a702cb29baee30" }, "downloads": -1, "filename": "clt-1.1.tar.gz", "has_sig": false, "md5_digest": "c3a21d08cb71fe8c8e05b3fa261952c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2970, "upload_time": "2014-01-12T11:12:51", "url": "https://files.pythonhosted.org/packages/76/9b/84a5231e09baf0c87311a1f3010fcda8aac7a1e7ed967ccee42ae5b156eb/clt-1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c3a21d08cb71fe8c8e05b3fa261952c0", "sha256": "296db0741a85f102c6e99ab0d09de842d8bc12d3a622f6cdd8a702cb29baee30" }, "downloads": -1, "filename": "clt-1.1.tar.gz", "has_sig": false, "md5_digest": "c3a21d08cb71fe8c8e05b3fa261952c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2970, "upload_time": "2014-01-12T11:12:51", "url": "https://files.pythonhosted.org/packages/76/9b/84a5231e09baf0c87311a1f3010fcda8aac7a1e7ed967ccee42ae5b156eb/clt-1.1.tar.gz" } ] }