{ "info": { "author": "Ingeniweb", "author_email": "support@ingeniweb.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "==========================\niw.recipe.template package\n==========================\n\n.. contents::\n\nWhat is iw.recipe.template ?\n============================\n\niw.recipe.template is a zc.buildout recipe to build template based\nfile/scripts\n\nIt also provide some recipe to build Zope2, Zope3 and Squid vhosts config\nfile for apache.\n\nHow to use iw.recipe.template ?\n===============================\n\nWe need a buildout config file::\n\n >>> server = start_server(test_dir)\n\n >>> write(sample_buildout, 'buildout.cfg',\n ... \"\"\"\n ... [buildout]\n ... parts = template.txt\n ...\n ... [template.txt]\n ... recipe = iw.recipe.template\n ... source = %s/template.txt_impl\n ... destination = %s/\n ... \"\"\" % (sample_buildout, sample_buildout))\n\nAnd a template::\n\n >>> template = join(sample_buildout, 'template.txt_impl')\n >>> open(template, 'w').write('''My template is named \"$name\"''')\n\n\nThen, the recipe should work::\n\n >>> print system(buildout)\n Installing template.txt.\n template.txt: Generated file 'template.txt'.\n\nHere is the result::\n\n >>> print open(join(sample_buildout, 'template.txt')).read()\n My template is named \"template.txt\"\n\n\nNow we can generate an executable:: \n\n >>> write(sample_buildout, 'buildout.cfg',\n ... \"\"\"\n ... [buildout]\n ... parts = script\n ...\n ... [script]\n ... recipe = iw.recipe.template:script\n ... source = %s/template.py_impl\n ... destination = %s/\n ... \"\"\" % (sample_buildout, sample_buildout))\n\n\nWe need a small template with a python script::\n\n >>> template = join(sample_buildout, 'template.py_impl')\n >>> open(template, 'w').write('''\n ... import sys\n ... print 'this is the script named \"$name\"'\n ... ''')\n\nRun buildout again::\n\n >>> print system(buildout)\n Uninstalling template.txt.\n Installing script.\n script: Generated script 'script'.\n\nHere is the result::\n\n >>> print open(join(sample_buildout, 'script')).read()\n #!/.../bin/python\n \n import sys\n print 'this is the script named \"script\"'\n \n\n >>> print system(join(sample_buildout, 'script'))\n this is the script named \"script\"", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": "", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "iw.recipe.template", "package_url": "https://pypi.org/project/iw.recipe.template/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/iw.recipe.template/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/iw.recipe.template/0.2/", "requires_dist": null, "requires_python": null, "summary": "ZC buildout recipe to build template based file", "version": "0.2" }, "last_serial": 755390, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "4df633cb15f5d81ff900bb46c49db9e5", "sha256": "3f829a753b0398cec7521d2d9626da760b597789e981af96168922d5bf9c718a" }, "downloads": -1, "filename": "iw.recipe.template-0.1-py2.4.egg", "has_sig": false, "md5_digest": "4df633cb15f5d81ff900bb46c49db9e5", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 12843, "upload_time": "2007-12-05T10:18:27", "url": "https://files.pythonhosted.org/packages/0c/21/2ed6428077d94dfc47ee931b31eb939331d9b839d8e12be4745085ab4e4c/iw.recipe.template-0.1-py2.4.egg" } ], "0.1dev-r6578": [ { "comment_text": "", "digests": { "md5": "6bda5adfd254c1e8f1772833c67d1553", "sha256": "009ccbc2aad0d1455ef4d75927a8aca0d472a18b99e9b7f95d88a8cc1101a0a2" }, "downloads": -1, "filename": "iw.recipe.template-0.1dev_r6578-py2.4.egg", "has_sig": false, "md5_digest": "6bda5adfd254c1e8f1772833c67d1553", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 8762, "upload_time": "2007-11-12T11:06:51", "url": "https://files.pythonhosted.org/packages/55/06/bf80022f8da254a189bf540cb7388029eda0c0043cc73c0d1ba437548c89/iw.recipe.template-0.1dev_r6578-py2.4.egg" } ], "0.1dev-r6596": [ { "comment_text": "", "digests": { "md5": "1ab4dca14913f43dedc9d58dcfac75fe", "sha256": "f1bac8376b7e99035efde4c68ed5b6b89fa0b27d3c538519964b90b961afb282" }, "downloads": -1, "filename": "iw.recipe.template-0.1dev_r6596-py2.4.egg", "has_sig": false, "md5_digest": "1ab4dca14913f43dedc9d58dcfac75fe", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 12817, "upload_time": "2007-11-27T09:36:54", "url": "https://files.pythonhosted.org/packages/2f/22/64f96e30c8b42cdb4f1459199f10698bae5b079d120e9b1c7f647c486520/iw.recipe.template-0.1dev_r6596-py2.4.egg" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "36ec09d717eabc943da9a2eb6652c21a", "sha256": "2df8652f4055e35fb7084701e8322ac0c0f62e797f439730ec3245fc45db4182" }, "downloads": -1, "filename": "iw.recipe.template-0.2-py2.4.egg", "has_sig": false, "md5_digest": "36ec09d717eabc943da9a2eb6652c21a", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 12842, "upload_time": "2007-12-14T10:18:23", "url": "https://files.pythonhosted.org/packages/9b/5b/219315dc7952bf9cb2f097b99399805b38d45c8495d4e160ebb738cd73e5/iw.recipe.template-0.2-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "b0a655c210ec4c28a7dbdc34bab3cbe9", "sha256": "ac8407061d4677234ee7a90de58d2e66b301ad316f52e27c61f74a387549234c" }, "downloads": -1, "filename": "iw.recipe.template-0.2.tar.gz", "has_sig": false, "md5_digest": "b0a655c210ec4c28a7dbdc34bab3cbe9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6176, "upload_time": "2008-01-20T15:55:59", "url": "https://files.pythonhosted.org/packages/3a/1c/96b9d4f2808b461fc37d0cda42e1240a248ba8a6f04bef0d670bc7f3b366/iw.recipe.template-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "36ec09d717eabc943da9a2eb6652c21a", "sha256": "2df8652f4055e35fb7084701e8322ac0c0f62e797f439730ec3245fc45db4182" }, "downloads": -1, "filename": "iw.recipe.template-0.2-py2.4.egg", "has_sig": false, "md5_digest": "36ec09d717eabc943da9a2eb6652c21a", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 12842, "upload_time": "2007-12-14T10:18:23", "url": "https://files.pythonhosted.org/packages/9b/5b/219315dc7952bf9cb2f097b99399805b38d45c8495d4e160ebb738cd73e5/iw.recipe.template-0.2-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "b0a655c210ec4c28a7dbdc34bab3cbe9", "sha256": "ac8407061d4677234ee7a90de58d2e66b301ad316f52e27c61f74a387549234c" }, "downloads": -1, "filename": "iw.recipe.template-0.2.tar.gz", "has_sig": false, "md5_digest": "b0a655c210ec4c28a7dbdc34bab3cbe9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6176, "upload_time": "2008-01-20T15:55:59", "url": "https://files.pythonhosted.org/packages/3a/1c/96b9d4f2808b461fc37d0cda42e1240a248ba8a6f04bef0d670bc7f3b366/iw.recipe.template-0.2.tar.gz" } ] }