{ "info": { "author": "metagriffin", "author_email": "mg.pypi@metagriffin.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Utilities" ], "description": "======\niniget\n======\n\nA command-line tool to extract, normalize, and JSONify values from an\n`iniherit `_ -enabled \"INI\"\nfile.\n\n\nInstallation\n============\n\n.. code-block:: bash\n\n $ pip install iniget\n\n\nUsage\n=====\n\nGiven the following two files, ``base.ini``:\n\n.. code-block:: ini\n\n [sect1]\n foo = bar\n\nand ``config.ini``:\n\n.. code-block:: ini\n\n [DEFAULT]\n %inherit = base.ini\n\nThe following will extract the inherited ``foo`` value:\n\n.. code-block:: bash\n\n $ iniget config.ini sect1 foo\n bar\n\nMuch more is possible, including:\n\n* listing sections\n* listing options\n* JSON-encoding the configuration\n* JSON-interpreting option values\n* Control case-sensitivity, interpolation, and default values\n\n\nOptions\n=======\n\n* ``-s SECTION, --section SECTION``\n\n Specify additional sections to extract from; can be specified\n multiple times to add multiple sections.\n\n* ``-C, --no-case``\n\n Handle option names case insensitively.\n\n* ``-I, --no-inherit``\n\n Disable processing of \"%inherit\" directives.\n\n* ``-E, --no-expansion``\n\n Disable ConfigParser option expansion (\"interpolation\").\n\n* ``-F, --no-fallback``\n\n Disables falling back to the raw option value when an option value\n cannot be interpolated (this generally happens when it is\n incorrectly formatted or it references undefined substitutions),\n and causes an exception to be thrown.\n\n* ``-K, --list-options``\n\n List the option names only, not the values.\n\n* ``-S, --list-sections``\n\n List the section names only.\n\n* ``-J, --json-parse``\n\n If option values are JSON-parseable, parse as such; additionally,\n the following are interpreted as boolean values: 'yes', 'true',\n 'on', 'off', 'no', 'false'.\n\n* ``-j, --json-output``\n\n Render the output using JSON syntax.\n\n* ``-d JSON, --defaults JSON``\n\n Set the ConfigParser default values from this JSON-parsed\n dictionary.\n\n* ``-r, --raw``\n\n Don't do anything fancy: show exactly what ConfigParser interprets\n (requires exactly one section and one option); note that options\n \"--no-case\", \"--no-inherit\", \"--no-expansion\" and \"--defaults\" are\n still honored, but \"--json-parse\" is not.\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/metagriffin/iniget", "keywords": "ini configuration value extract inherit", "license": "GPLv3+", "maintainer": "", "maintainer_email": "", "name": "iniget", "package_url": "https://pypi.org/project/iniget/", "platform": "any", "project_url": "https://pypi.org/project/iniget/", "project_urls": { "Homepage": "http://github.com/metagriffin/iniget" }, "release_url": "https://pypi.org/project/iniget/0.4.3/", "requires_dist": null, "requires_python": "", "summary": "A command-line tool to extract, normalize, and JSONify values from an iniherit-enabled \"INI\" file.", "version": "0.4.3" }, "last_serial": 5438937, "releases": { "0.1.0": [], "0.2.0": [ { "comment_text": "", "digests": { "md5": "e9981bfa0574552cbaaaba37e34d8d94", "sha256": "b935c80f34092e43e0d776f262f7b349c373db876264df5c37e524ce26657c8d" }, "downloads": -1, "filename": "iniget-0.2.0.tar.gz", "has_sig": false, "md5_digest": "e9981bfa0574552cbaaaba37e34d8d94", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6489, "upload_time": "2013-09-04T18:55:58", "url": "https://files.pythonhosted.org/packages/33/d2/1aceacd7f241faf485fb44896a5402bf7e613c20dda7b46390bee51e8de4/iniget-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "5ea9c9affac2b33afe8d4027a3e498f7", "sha256": "eb5bc5d7f4d06f47014b557663c2c1ffe658fb18fa0cb61d62075794e5102a81" }, "downloads": -1, "filename": "iniget-0.3.0.tar.gz", "has_sig": false, "md5_digest": "5ea9c9affac2b33afe8d4027a3e498f7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7773, "upload_time": "2014-03-27T22:51:40", "url": "https://files.pythonhosted.org/packages/aa/50/f8aeeadfc75cdd6dfc1b9fa506c52f584234edf3d4d32bf4ff82cbc4c199/iniget-0.3.0.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "3da29b748273faa4c17df1a7ccdd3133", "sha256": "7b078423630d3499d59346b0e9e7f9301dcffad6a0179f7dc8ea1cafe657e4db" }, "downloads": -1, "filename": "iniget-0.4.0.tar.gz", "has_sig": false, "md5_digest": "3da29b748273faa4c17df1a7ccdd3133", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19983, "upload_time": "2014-07-07T18:45:25", "url": "https://files.pythonhosted.org/packages/77/66/c93264088eec78ce97de35651a9db551566b4836f11c4f9f37434daf305d/iniget-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "6bfc6358a623a7e4bbe59cc6cd71d0d9", "sha256": "ca83b83525f55159d04277ca149b360e9a49dd969d20da78ddbc6a0077d3051b" }, "downloads": -1, "filename": "iniget-0.4.1.tar.gz", "has_sig": false, "md5_digest": "6bfc6358a623a7e4bbe59cc6cd71d0d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19589, "upload_time": "2015-10-02T00:00:03", "url": "https://files.pythonhosted.org/packages/b0/bc/bcb08c0b8543e3f7fb6dadcae6b3605445dccdb8be876429ea7fa98ad04c/iniget-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "493718c65ea3e4eff87a215e66b0e317", "sha256": "6505afc40e25f3bdb3268b8d04efce00f99e457782f5c7ee9798f7bd9a9c8360" }, "downloads": -1, "filename": "iniget-0.4.2.tar.gz", "has_sig": false, "md5_digest": "493718c65ea3e4eff87a215e66b0e317", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20646, "upload_time": "2015-10-07T20:25:44", "url": "https://files.pythonhosted.org/packages/14/b4/ee27a2a1eee7db173d4fa5b77165d9e745727929cbb178700b498777dbf3/iniget-0.4.2.tar.gz" } ], "0.4.3": [ { "comment_text": "", "digests": { "md5": "0e5ca8127b8ec2daace438e8cc8bd5f0", "sha256": "00e725103fb72dc0f1734c990764c4bed6056db5897720e9241e5ee5f5ac83c2" }, "downloads": -1, "filename": "iniget-0.4.3.tar.gz", "has_sig": false, "md5_digest": "0e5ca8127b8ec2daace438e8cc8bd5f0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19963, "upload_time": "2019-06-24T04:47:45", "url": "https://files.pythonhosted.org/packages/dd/d9/616045c342f2afcad8115f98d0b0d89b7d85a22f69d70f2a318927ccff1e/iniget-0.4.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0e5ca8127b8ec2daace438e8cc8bd5f0", "sha256": "00e725103fb72dc0f1734c990764c4bed6056db5897720e9241e5ee5f5ac83c2" }, "downloads": -1, "filename": "iniget-0.4.3.tar.gz", "has_sig": false, "md5_digest": "0e5ca8127b8ec2daace438e8cc8bd5f0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19963, "upload_time": "2019-06-24T04:47:45", "url": "https://files.pythonhosted.org/packages/dd/d9/616045c342f2afcad8115f98d0b0d89b7d85a22f69d70f2a318927ccff1e/iniget-0.4.3.tar.gz" } ] }