{ "info": { "author": "Jacob Tolar", "author_email": "development@sheckel.net", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Programming Language :: Python :: 2.7" ], "description": "interpolatr\n===========\n\nInterpolatr is a command line tool and library for interpolating\nconfiguration settings into templatized files. It uses the\n`jinja2 `_ library for templating.\n\nUsage\n-----\n\nThe ``interpolatr`` command-line tool currently supports two\nconfiguration sources (command line and YAML; see below) and a single\ntemplate sink ( file-based jinja2 templates). However, it is easy to\nsupply your own configuration sources or template sinks if necessary.\n\nUsage:\n\n::\n\n interpolatr [OPTIONS] [ ]... [ ]...\n\nFor example, using builtin config and template suppliers:\n\n::\n\n interpolatr -D override_setting=value YamlConfigSource --path conf.yaml ExtensionFileSinkSupplier --target_dir root\n\nConfiguration Sources\n~~~~~~~~~~~~~~~~~~~~~\n\nThere are currently two built-in configuration sources for\n``interpolatr``:\n\n1. *Command line*: You can specify configuration values when calling\n ``interpolatr`` using the ``-D`` flag: ``interpolator -D foo=bar``.\n\n2. *YAML*: You can specify configuration values in a hierarchical\n ``yaml`` format.\n\n The format looks like this: \\`\\`\\`yaml settings: setting\\_name:\n setting\\_value setting\\_two: other\\_value\n\n Optional files to inherit settings from\n =======================================\n\n base: - file/to/inherit-from.yml\n\n ::\n\n # Functionally, this is no different than flattening the list out\n - [ some/more.yaml, and-even-more.yml ]\n\n - final-base-file.yml\n\n \\`\\`\\`\n\n These settings are populated into a ``ChainedMap``, so any settings\n missing in your top-level configuration will be pulled from its\n parent(s).\n\nIt is simple to define your own configuration sources: see\n``config.py``. If using the command line, you can use a custom config\nsource by specifying the fully qualified class path on the command line.\n\nConfiguration Sinks\n~~~~~~~~~~~~~~~~~~~\n\nConfiguration values can currently be written into templatized\nconfiguration files. The templating is powered by ``jinja2``, so you may\nuse any valid ``jinja2`` expressions to define your configuration files.\n\nIt should be straightfoward to customize this process as well; see the\ncode in ``sink.py`` for reference.\n\nNotes\n-----\n\n- This was developed under Python 2.7, but at least gives the\n appearance of working under Python 3.\n- This is an early version of this tool, so the interfaces are subject\n to change.\n\nCopyright and License\n---------------------\n\nCopyright 2017, Yahoo Inc.\n\nLicensed under the terms of the Apache License, Version 2.0. See the\nLICENSE file associated with the project for terms.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/jacobtolar/interpolatr", "keywords": "", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "interpolatr", "package_url": "https://pypi.org/project/interpolatr/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/interpolatr/", "project_urls": { "Homepage": "http://github.com/jacobtolar/interpolatr" }, "release_url": "https://pypi.org/project/interpolatr/0.0.2/", "requires_dist": [ "Jinja2 (>=2.8)", "PyYAML (>=3.12)", "click (>=6.0)", "chainmap (>=1.0.2); python_version < '3.0'" ], "requires_python": "", "summary": "Interpolation tool", "version": "0.0.2" }, "last_serial": 2572684, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "de95f4920a529c8a6e506d9032936b32", "sha256": "4fd9f88043f3496a55e43984cc0f2d981bc3c330417411e2c1b513f37ce62c1c" }, "downloads": -1, "filename": "interpolatr-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "de95f4920a529c8a6e506d9032936b32", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 16860, "upload_time": "2017-01-09T20:33:36", "url": "https://files.pythonhosted.org/packages/50/81/ef995df325b6cecf3a79f13cf77ece568e7fd6446b5641ebeb02774738d9/interpolatr-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fe94ab0a2840363e085c35c00fe4bc3a", "sha256": "d15b34ede7969fad46e0c07cde957738daff7a38b8b4503f07fb970ea4bc469c" }, "downloads": -1, "filename": "interpolatr-0.0.1.tar.gz", "has_sig": false, "md5_digest": "fe94ab0a2840363e085c35c00fe4bc3a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13148, "upload_time": "2017-01-09T20:33:38", "url": "https://files.pythonhosted.org/packages/4b/0f/5b231038dea8363d1a21f438ff5027b080666e95885aeedceda20d3b4ab4/interpolatr-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "85c7174e4fb6c5651720a4be7004370c", "sha256": "8cfb80027f4484f4346046d26943d7ac1179f49a4299c04b96b7fefa024c98b7" }, "downloads": -1, "filename": "interpolatr-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "85c7174e4fb6c5651720a4be7004370c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 16857, "upload_time": "2017-01-13T19:23:19", "url": "https://files.pythonhosted.org/packages/67/6f/ea8ae3fbac8de5d69ba91c9e39c503ed4665150b83e4f95093fd280e06f5/interpolatr-0.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d1b1e2545521ea2c3eecdd93f0ee7c92", "sha256": "6c3375c05ac3c22b9e7b24da7942556b053d31415601b2a3e60ca3f5071a3b2d" }, "downloads": -1, "filename": "interpolatr-0.0.2.tar.gz", "has_sig": false, "md5_digest": "d1b1e2545521ea2c3eecdd93f0ee7c92", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13137, "upload_time": "2017-01-13T19:23:21", "url": "https://files.pythonhosted.org/packages/cf/32/81228b6756f0b4d94a2704b8957dd5c5499aed010f22134adb64afec2774/interpolatr-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "85c7174e4fb6c5651720a4be7004370c", "sha256": "8cfb80027f4484f4346046d26943d7ac1179f49a4299c04b96b7fefa024c98b7" }, "downloads": -1, "filename": "interpolatr-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "85c7174e4fb6c5651720a4be7004370c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 16857, "upload_time": "2017-01-13T19:23:19", "url": "https://files.pythonhosted.org/packages/67/6f/ea8ae3fbac8de5d69ba91c9e39c503ed4665150b83e4f95093fd280e06f5/interpolatr-0.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d1b1e2545521ea2c3eecdd93f0ee7c92", "sha256": "6c3375c05ac3c22b9e7b24da7942556b053d31415601b2a3e60ca3f5071a3b2d" }, "downloads": -1, "filename": "interpolatr-0.0.2.tar.gz", "has_sig": false, "md5_digest": "d1b1e2545521ea2c3eecdd93f0ee7c92", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13137, "upload_time": "2017-01-13T19:23:21", "url": "https://files.pythonhosted.org/packages/cf/32/81228b6756f0b4d94a2704b8957dd5c5499aed010f22134adb64afec2774/interpolatr-0.0.2.tar.gz" } ] }