{ "info": { "author": "Benjamin Weiner", "author_email": "bmweiner@users.noreply.github.com", "bugtrack_url": null, "classifiers": [ "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# jetpack\n\n[![Build Status](https://travis-ci.org/bmweiner/jetpack.svg?branch=master)](https://travis-ci.org/bmweiner/jetpack)\n\nJetpack is a package\n[templating](https://en.wikipedia.org/wiki/Template_processor)\nsystem based on the [mustache](http://mustache.github.io/) template syntax.\n\nA jetpack template (pack) is just a directory containing subdirectories and\ntemplate files. A pack might be a\n[python package](https://docs.python.org/2/tutorial/modules.html#packages),\n[R package](https://cran.r-project.org/manuals.html#R-exts),\n[Ruby gem](http://guides.rubygems.org/make-your-own-gem/),\nanything...\n\nPacks are stored in a [hanger](https://github.com/bmweiner/hanger) and\nrendered by the jetpack utility.\n\n## the Hanger\n\nA simple hanger might look like this:\n\n hanger/\n pack1/\n profile.md\n pack.json\n pack2/\n bio.txt\n pack.cfg\n pack.json\n\nEach pack has it's own directory in the hanger and contains all the\nsubdirectories and template files for that pack. Additionally `pack.cfg` and\n`pack.json` files may exist at the hanger and/or pack level.\n\n### Template Files\n\nTemplates use the [mustache](http://mustache.github.io/) template syntax\n(implemented with [pystache](https://github.com/defunkt/pystache)).\n\nPartials are relative to the hanger directory.\n\nhanger/pack1/profile.md\n\n # {{team}}\n {{first}} {{last}}\n {{role}}\n ## Bio\n {{> pack2/bio.txt}}\n Created: {{today}}\n\nhanger/pack2/bio.txt\n\n Belichick has extensive authority over the Patriots'...\n\n### Context Files\n\nContext is stored in **pack.json** files.\n\nhanger/pack.json\n\n {\n \"team\": \"New England Patriots\"\n }\n\nhanger/pack1/pack.json\n\n {\n \"first\": \"Bill\",\n \"last\": \"Belichik\",\n \"role\": \"coach\"\n }\n\n#### Built-in Context\n\nThe default context includes the following tags, which can be overwritten in a\ncontext file, if desired.\n\n**datetime**\n\n * today: %c\n * year: %Y\n * month: %m\n * day: %d\n * hour: %H\n * minute: %M\n * second: %S\n\n### Configuration Files\n\nConfiguration is stored in **pack.cfg** files. The following options are\navailable:\n\nA pack object can inherit the templates, contexts, and configurations of other\npacks. Base classes are separated by a comma.\n\n [class]\n base: python,generic\n\n#### Inheritance\n\nWhen base classes are specified, templates, contexts, and configurations are\ninherited in the following order:\n\n * pack\n * pack bases (recursive)\n * hanger\n\nCircular imports are not permitted.\n\nSet the format of built-in context tags by using the datetime\n[directives](https://docs.python.org/2/library/time.html#time.strftime).\n\n [datetime]\n today: %c\n year: %Y\n month: %m\n day: %d\n hour: %H\n minute: %M\n second: %S\n\n## Installation\n\n $ git clone https://github.com/bmweiner/jetpack.git\n $ python setup.py install\n\nor\n\n $ pip install jetpack\n\n## Usage\n\njetpack provides a terminal command `jetpack`:\n\n $ jetpack python -s /path/to/hanger\n name: my_package\n description: The best package!\n\ntry `jetpack --help` for additional details on usage.\n\nand a python module for interaction:\n\n import jetpack\n jetpack.launch(hanger='/path/to/hanger', pack='python', name='my_package',\n description='The best package!')\n\n## Example\n\nFork my [hanger](https://github.com/bmweiner/hanger) to get started. This\nexample demonstrates using...\n\n * partials to create .gitignore and LICENSE\n * subclasses to render python-flask pack from python pack\n * built-in datetime context", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bmweiner/jetpack", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "jetpack", "package_url": "https://pypi.org/project/jetpack/", "platform": "py27,py35", "project_url": "https://pypi.org/project/jetpack/", "project_urls": { "Homepage": "https://github.com/bmweiner/jetpack" }, "release_url": "https://pypi.org/project/jetpack/1.1/", "requires_dist": null, "requires_python": "", "summary": "A package templating system.", "version": "1.1" }, "last_serial": 2519098, "releases": { "0.1": [], "0.2": [], "0.3": [ { "comment_text": "", "digests": { "md5": "f83ede00fa750ffdfb5fa89be5f5d84a", "sha256": "9dab53abc6a4eb40df80cbdfa541973bd43c5c097861039c14b3d425caaeed20" }, "downloads": -1, "filename": "jetpack-0.3.tar.gz", "has_sig": false, "md5_digest": "f83ede00fa750ffdfb5fa89be5f5d84a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5613, "upload_time": "2016-11-14T23:20:54", "url": "https://files.pythonhosted.org/packages/2b/74/81c92f98adfa55a4c9e60e0288e98916031c38c3792d65885bf8eac075eb/jetpack-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "a6e82187cc0e19d00a8707cee3fff216", "sha256": "7f877e2e52c252402c806971f217c2bf56b817e31165c2998c023cf62090c956" }, "downloads": -1, "filename": "jetpack-0.4.tar.gz", "has_sig": false, "md5_digest": "a6e82187cc0e19d00a8707cee3fff216", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5615, "upload_time": "2016-12-13T22:49:24", "url": "https://files.pythonhosted.org/packages/9e/8c/23f9cf97eee2a341e777f3b721c542bf95522f07e207d2269422369eddd2/jetpack-0.4.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "152ab603d517191d8fff9c51a739a7d6", "sha256": "2ca9dc0dd69c1c6563226ad15d560caef76ed0f3a73d0417bcdda47349a8f64d" }, "downloads": -1, "filename": "jetpack-0.6.tar.gz", "has_sig": false, "md5_digest": "152ab603d517191d8fff9c51a739a7d6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5541, "upload_time": "2016-12-13T23:35:48", "url": "https://files.pythonhosted.org/packages/c5/54/d8e137ee7d63e0a7905a088a09cc8c95d35ed840d760702fefc4ce206b48/jetpack-0.6.tar.gz" } ], "0.7": [ { "comment_text": "", "digests": { "md5": "d0cba62bd36ff93f281f7f0df9020e25", "sha256": "135860c76dc70d8a9aa6b1542e78a35a5dc2e2115c9a773d527a497528b9d0c9" }, "downloads": -1, "filename": "jetpack-0.7.tar.gz", "has_sig": false, "md5_digest": "d0cba62bd36ff93f281f7f0df9020e25", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5541, "upload_time": "2016-12-13T23:54:53", "url": "https://files.pythonhosted.org/packages/f7/4a/8709a8b9990d463af6b3275f076718cd275144541b7782e3cc03ca3a0bf4/jetpack-0.7.tar.gz" } ], "0.8": [ { "comment_text": "", "digests": { "md5": "3c6bae345fb24cff3b7fc3951195868b", "sha256": "1c7e44d41ae0cb990d91154eb0d280f81a83a9789f34f72e2e8c7b0384dd7313" }, "downloads": -1, "filename": "jetpack-0.8.tar.gz", "has_sig": false, "md5_digest": "3c6bae345fb24cff3b7fc3951195868b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5542, "upload_time": "2016-12-14T00:09:48", "url": "https://files.pythonhosted.org/packages/7a/64/d3472476f0c7e54d05d9ce061fcf9c28ef870afe68a623edf05a42ce31aa/jetpack-0.8.tar.gz" } ], "0.8.2": [ { "comment_text": "", "digests": { "md5": "9be3cad58013c0d2bd49dea15643bdd9", "sha256": "5e9878b162401d428f5ec43e15410094debef11b1b0b4e85fba24149ef6c271b" }, "downloads": -1, "filename": "jetpack-0.8.2.tar.gz", "has_sig": false, "md5_digest": "9be3cad58013c0d2bd49dea15643bdd9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5548, "upload_time": "2016-12-14T00:40:45", "url": "https://files.pythonhosted.org/packages/20/84/2365ac0acc799cc91720a147a59300e49319a935cd891fe36722294526f7/jetpack-0.8.2.tar.gz" } ], "0.8.3": [ { "comment_text": "", "digests": { "md5": "2f15d09c596e69104452a626d167f661", "sha256": "2d5d9d0721b243367b775ebb09892736039f036b2f36af7ed8b3b04a4ea45249" }, "downloads": -1, "filename": "jetpack-0.8.3.tar.gz", "has_sig": false, "md5_digest": "2f15d09c596e69104452a626d167f661", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5558, "upload_time": "2016-12-14T00:56:11", "url": "https://files.pythonhosted.org/packages/56/7d/92c9349a18afb077467d689abc934da464156e37dbb4246c434a1cd1b845/jetpack-0.8.3.tar.gz" } ], "0.9": [ { "comment_text": "", "digests": { "md5": "dec652bf8457b96970921476b1f2225d", "sha256": "01663cd1593e153b8b8264eeaf86f6319ceefe3efa816e73d281ee301fabf09d" }, "downloads": -1, "filename": "jetpack-0.9.tar.gz", "has_sig": false, "md5_digest": "dec652bf8457b96970921476b1f2225d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5558, "upload_time": "2016-12-14T13:37:08", "url": "https://files.pythonhosted.org/packages/d2/75/67c85e89a76e4852b540efc02f39d8f0efba38011d2240cfaa806f39fdb8/jetpack-0.9.tar.gz" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "3405bba917dc38cc4efa60c5693de840", "sha256": "6cec7bc2e5611a43cff8e92307514b798ab2c170f0e715d8f3a56f9fa086e6e1" }, "downloads": -1, "filename": "jetpack-1.0.tar.gz", "has_sig": false, "md5_digest": "3405bba917dc38cc4efa60c5693de840", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5556, "upload_time": "2016-12-14T14:01:29", "url": "https://files.pythonhosted.org/packages/cf/b9/d0da977a4f9c1a55d9c0f8d2eb321b3db1f5c0d137d0fa4f63ede8c95b53/jetpack-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "86c17fec015871413bb9bdebe6b740d8", "sha256": "d274a6a0077f6b51ca94cf6229da503d6c5f28169baee0704542f809c761b76e" }, "downloads": -1, "filename": "jetpack-1.1.tar.gz", "has_sig": false, "md5_digest": "86c17fec015871413bb9bdebe6b740d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5543, "upload_time": "2016-12-14T15:58:56", "url": "https://files.pythonhosted.org/packages/58/a4/c42d0a3a80a1cbc55e907f43d4ea201fd4bbd827243a37b2cb46334c7c7f/jetpack-1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "86c17fec015871413bb9bdebe6b740d8", "sha256": "d274a6a0077f6b51ca94cf6229da503d6c5f28169baee0704542f809c761b76e" }, "downloads": -1, "filename": "jetpack-1.1.tar.gz", "has_sig": false, "md5_digest": "86c17fec015871413bb9bdebe6b740d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5543, "upload_time": "2016-12-14T15:58:56", "url": "https://files.pythonhosted.org/packages/58/a4/c42d0a3a80a1cbc55e907f43d4ea201fd4bbd827243a37b2cb46334c7c7f/jetpack-1.1.tar.gz" } ] }