{ "info": { "author": "Ethan Chan", "author_email": "metakirby5@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Utilities" ], "description": "whizkers\n========\n\nMustache + YAML based config templater.\n\n|Sample usage|\n\nInstallation\n============\n\n::\n\n pip install whizkers\n\nor just move ``whizkers.py`` to somewhere in your ``$PATH``.\n\nDependencies\n============\n\n- Python (2 or 3)\n\nThe below are Python libraries that should be installed via ``pip``.\nAlternatively, if you did ``pip install whizkers``,\nthese should have been automatically installed.\n\n- argcomplete\n- colorlog\n- pystache\n- PyYAML\n- termcolor\n- watchdog\n\nAutocomplete\n============\n\n::\n\n sudo activate-global-python-argcomplete\n\nIf you installed via pip, you may need to run the following before autocompletion works:\n\n::\n\n grep 'PYTHON_ARGCOMPLETE_OK' \"$(which whizkers)\" &>/dev/null || sudo sed -i \"1a # PYTHON_ARGCOMPLETE_OK\" \"$(which whizkers)\"\n\nUsage\n=====\n\n::\n\n usage: whizkers [-h] [-l] [-t TEMPLATE_DIR] [-d DEST_DIR] [-s VAR_SET_DIR]\n [-i IGNORES_FILE] [-e] [-w] [--watch-command WATCH_COMMAND]\n [--diff] [--dry]\n [variable_files [variable_files ...]]\n\n A pystache + YAML based config templater.\n\n Searches for an optional yaml file with a variable mapping in\n ~/.config/whizkers/variables.yaml,\n\n an optional yaml file with an ignore scalar of regexes in (by default)\n ~/.config/whizkers/ignores.yaml,\n\n and uses the mustache templates in (by default)\n ~/.config/whizkers/templates/\n\n to render into your home directory (by default).\n\n Additional variable files can be applied\n by supplying them as arguments, in order of application.\n\n They can either be paths or, if located in (by default)\n ~/.config/whizkers/variable_sets/,\n extension-less filenames.\n\n Environment variable support is available;\n simply put the name of the variable in mustache brackets.\n\n Order of precedence is:\n last YAML variable defined >\n first YAML variable defined >\n environment variables.\n\n Variables are shallowly resolved once, then anything in\n {`...`} is eval'd in Python.\n\n Autocomplete support available, but only for the default\n variable set directory.\n\n A file watcher is available via the -w flag.\n Whenever a variable file in use, the ignores file,\n or a template file changes, the templates are rendered\n if there are any differences.\n\n Diffs between the current destination files and\n template renderings are available via the --diff flag.\n\n positional arguments:\n variable_files additional variable files\n\n optional arguments:\n -h, --help show this help message and exit\n -l list variable sets.\n -t TEMPLATE_DIR template directory. Default:\n /home/echan/.config/whizkers/templates\n -d DEST_DIR destination directory. Default: /home/echan\n -s VAR_SET_DIR variable set directory. Default:\n /home/echan/.config/whizkers/variable_sets\n -i IGNORES_FILE ignores file. Default:\n /home/echan/.config/whizkers/ignores.yaml\n -e whether or not to use environment variables. Default:\n don't use environment variables\n -w start file watcher.\n --watch-command WATCH_COMMAND\n what to execute when a change occurs. Default: Nothing\n --diff show diff between template renderings and current\n destination files\n --dry do a dry run\n\nThanks to\n=========\n\n- https://gist.github.com/coleifer/33484bff21c34644dae1\n- https://github.com/defunkt/pystache\n- http://pyyaml.org/\n\n.. |Sample usage| image:: https://u.teknik.io/u8Au4P.gif\n :target: https://u.teknik.io/lCAD1H.webm", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/metakirby5/whizkers", "keywords": "whizkers config templater mustache yaml", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "whizkers", "package_url": "https://pypi.org/project/whizkers/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/whizkers/", "project_urls": { "Homepage": "https://github.com/metakirby5/whizkers" }, "release_url": "https://pypi.org/project/whizkers/1.1.0/", "requires_dist": [ "PyYAML", "argcomplete", "colorlog", "pystache", "termcolor", "watchdog" ], "requires_python": "", "summary": "Mustache + YAML based config templater.", "version": "1.1.0" }, "last_serial": 1930495, "releases": { "1.0.4": [ { "comment_text": "", "digests": { "md5": "1d7682bebfa7102710a28c81dc4d24db", "sha256": "d037b159f54e80ca0f527bf0850ad05879935a7bc6a4ce999754021f92db1236" }, "downloads": -1, "filename": "whizkers-1.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1d7682bebfa7102710a28c81dc4d24db", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10612, "upload_time": "2015-12-28T10:11:14", "url": "https://files.pythonhosted.org/packages/f0/98/3123bac04cbe5bb5003985a2fd8efba19aa687db7ddb88aaff0e1aba3996/whizkers-1.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e0d7cc6df37c31bfc375557111ac32d9", "sha256": "8d939c40f17194bca57cc19acffe7097399619eae211567bf9a0ca99eff5e1ed" }, "downloads": -1, "filename": "whizkers-1.0.4.tar.gz", "has_sig": false, "md5_digest": "e0d7cc6df37c31bfc375557111ac32d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8278, "upload_time": "2015-12-28T10:11:21", "url": "https://files.pythonhosted.org/packages/5c/31/8718472e842e743b4b7628e58c19d018206626d8d700c155dc3d7af12b6f/whizkers-1.0.4.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "0d47e02d302e17b38017a5f4d6d4dfdf", "sha256": "015e73888b10f2d7fc6b8bcad1b8469b87e44bf6866fb3c915464af12868ce11" }, "downloads": -1, "filename": "whizkers-1.1.0-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "0d47e02d302e17b38017a5f4d6d4dfdf", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10988, "upload_time": "2016-01-30T03:15:42", "url": "https://files.pythonhosted.org/packages/7a/aa/b51c7a6a21d03675a6f5a0e302338b069d509a9adf1157f138cf7d5ef1cf/whizkers-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b43cea0f5011cf515eb4bca45b8e53a6", "sha256": "8c145956aea3be146f36311e64efdca9485de93f0cd32129ab21387b16204d5e" }, "downloads": -1, "filename": "whizkers-1.1.0.tar.gz", "has_sig": true, "md5_digest": "b43cea0f5011cf515eb4bca45b8e53a6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8504, "upload_time": "2016-01-30T03:16:11", "url": "https://files.pythonhosted.org/packages/32/f7/f34731bc052a2b8ac3e6aac1815116f0dc0942121aa863aab24c8e544852/whizkers-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0d47e02d302e17b38017a5f4d6d4dfdf", "sha256": "015e73888b10f2d7fc6b8bcad1b8469b87e44bf6866fb3c915464af12868ce11" }, "downloads": -1, "filename": "whizkers-1.1.0-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "0d47e02d302e17b38017a5f4d6d4dfdf", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10988, "upload_time": "2016-01-30T03:15:42", "url": "https://files.pythonhosted.org/packages/7a/aa/b51c7a6a21d03675a6f5a0e302338b069d509a9adf1157f138cf7d5ef1cf/whizkers-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b43cea0f5011cf515eb4bca45b8e53a6", "sha256": "8c145956aea3be146f36311e64efdca9485de93f0cd32129ab21387b16204d5e" }, "downloads": -1, "filename": "whizkers-1.1.0.tar.gz", "has_sig": true, "md5_digest": "b43cea0f5011cf515eb4bca45b8e53a6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8504, "upload_time": "2016-01-30T03:16:11", "url": "https://files.pythonhosted.org/packages/32/f7/f34731bc052a2b8ac3e6aac1815116f0dc0942121aa863aab24c8e544852/whizkers-1.1.0.tar.gz" } ] }