{ "info": { "author": "S. Joshua Swamidass", "author_email": "swamidass@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: Free for non-commercial use", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python" ], "description": "============\nConfArgParse\n============\n\nThis module adds a config file parsing capability to argparse.\n\n\nUsage\n-----\n\nStart by importing the module and initializing the parser::\n\n import confargparse\n parser = confargparse.ConfArgParser()\n\nThe usage is identical to the argparse module::\n\n parser.add_argument(\"-n\", type=int)\n group = parser.add_argument_group(\"my group\")\n group.add_argument(\"-g\")\n\nNow, to use a configuration file (or list of sequentially read configuration\nfiles), just add the --conf-file option.\n\n python prog.py --conf-file conf.ini\n\nIt is easy to write out a configuration file by applying all the options you\nwant, and then adding the --export-conf-file option.\n\n python prog.py -n --export-conf-file > conf.ini\n\nAPI Changes\n-----------\n\nAll argparse code should be compatible by just drapping in the new object. This\npackage adds a few important options to the API to figure out how to map\nnamespace dests to configuration sections/names.\n\nThe key concepts to note:\n\n1. Parameters in configuration files map to specific section/name pairs.\n2. Configuration file sections and names ignore case.\n\nSpecifiying the Name\n====================\n\nBy default all configuration names are the lowercase dest from argparse. Care\nmust be taken to make sure that there are no name clashes from dests with\ndifferent capitalizations.\n\nThe default name can be changed by using the \"name\" keyword to add_argument::\n\n parser.add_argument(\"-n\", type=int, name=\"my_n\")\n\nThis targets the argument to \"my_n\" instead of \"n\" in the configuration file.\n\nSpecifying the Section\n======================\n\nBy default, all configurations go to the [defaults] section. Argument\ngroups and subparsers inherit from the parser that initialized them.\n\nThe add_argument_group, add_argument, add_subparsers, and ConfArgParser\ninitialization all include the \"section\" optional keyword argument. Specifying\nthis section sets the section in the configuration the option will be targeted\nto. If the value is None, the object will inherit up as expected::\n\n parser = ConfArgParser(section = \"main\")\n parser.add_argument(\"-n\", type=int)\n group = parser.add_argument_group(\"my group\", section=\"group\")\n group.add_argument(\"-g\")\n group.add_argument(\"-t\", section=\"section2\")\n\nIn this example, the first argument targets to \"n\" name in the [main] section.\nThe second argument targets to the \"g\" name in the [group] section. The third\nargument targets to the \"t\" name in the [section2] section.\n\nExcluding Arguments\n===================\n\nCurrently, positional arguments cannot be sent to the configuration file.\n\nIf you would like to exclude additional arguments, just use the exclude keyword\nargument to add_arguments::\n\n parser.add_argument(\"-n\", type=int, exclude=True)\n\n\n\n\nSuggestions or BugFixes?\n========================\n\nFeel free to contact me. I am findable online with a google search:\nS. Joshua Swamidass.\n\nPlease send bug fixes as pull requests to the bitbucket repository\n(`https://bitbucket.org/swamidass/confargparse\n`_). Please keep pull\nrequests clean, so I can easily figure out if it should be\nmerged into the main line.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/swamidass/confargparse/", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "ConfArgParse", "package_url": "https://pypi.org/project/ConfArgParse/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/ConfArgParse/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://bitbucket.org/swamidass/confargparse/" }, "release_url": "https://pypi.org/project/ConfArgParse/1.1.20/", "requires_dist": null, "requires_python": null, "summary": "An integrated argument/configuration file parser that follows the syntax of argparser", "version": "1.1.20" }, "last_serial": 1471013, "releases": { "1.0.10": [ { "comment_text": "", "digests": { "md5": "dfd06a0017bc270dc39a53ea9fc9025b", "sha256": "64cec4ceb3bf3d072e6e12c69e349a7a507036e9bf4720e49744b91726d763c2" }, "downloads": -1, "filename": "ConfArgParse-1.0.10.tar.gz", "has_sig": false, "md5_digest": "dfd06a0017bc270dc39a53ea9fc9025b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4611, "upload_time": "2012-10-13T08:53:42", "url": "https://files.pythonhosted.org/packages/d0/be/4b233b18b0afd20a3d61c3bbecaeb8c029191a7e158f6d0b2e7c55d450a2/ConfArgParse-1.0.10.tar.gz" } ], "1.0.11": [ { "comment_text": "", "digests": { "md5": "92c8b10204f76119ad9b670c557fde36", "sha256": "e6ab35e43d4d9117fc775203b99530421f256468762ff8812cf78ba2bc15f4ff" }, "downloads": -1, "filename": "ConfArgParse-1.0.11.tar.gz", "has_sig": false, "md5_digest": "92c8b10204f76119ad9b670c557fde36", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4598, "upload_time": "2012-10-13T08:54:43", "url": "https://files.pythonhosted.org/packages/af/c5/39a1d51a8bfec2c9fca12c99c7c66bef6ac44b731ef07bb085fc6c4c7352/ConfArgParse-1.0.11.tar.gz" } ], "1.0.12": [ { "comment_text": "", "digests": { "md5": "1b0b0b72885026599d12f0dff5280ec5", "sha256": "8b4ce984fc5947784a57cebafb75beb5e60cd07720e84e06c1039035ec95d2f8" }, "downloads": -1, "filename": "ConfArgParse-1.0.12.tar.gz", "has_sig": false, "md5_digest": "1b0b0b72885026599d12f0dff5280ec5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4642, "upload_time": "2012-10-13T09:28:22", "url": "https://files.pythonhosted.org/packages/bf/13/e7e52d5c2301d5043c3decadd7e8a69a2c63e87713dc9a284f99e19c09b5/ConfArgParse-1.0.12.tar.gz" } ], "1.0.14": [ { "comment_text": "", "digests": { "md5": "9bdec605cc131424319dd3112bbb2014", "sha256": "4b68361c103c8e81b3d51f16e82b69338bcae26b7d908c15f25f49057dd4a843" }, "downloads": -1, "filename": "ConfArgParse-1.0.14.tar.gz", "has_sig": false, "md5_digest": "9bdec605cc131424319dd3112bbb2014", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4740, "upload_time": "2012-11-21T23:33:32", "url": "https://files.pythonhosted.org/packages/53/c9/d18ffd73ebfd186d668e594b4d46e3d33cb9a7cc080d1f6cdff7f93f0d85/ConfArgParse-1.0.14.tar.gz" } ], "1.0.15": [ { "comment_text": "", "digests": { "md5": "80e43ab0bf392dd49c6398706372480e", "sha256": "3f9b73bd03c216275e49a706fcc0af60cc7c23f5d55f17d6a1ba1beff314afa2" }, "downloads": -1, "filename": "ConfArgParse-1.0.15.tar.gz", "has_sig": false, "md5_digest": "80e43ab0bf392dd49c6398706372480e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4670, "upload_time": "2012-11-21T23:40:30", "url": "https://files.pythonhosted.org/packages/4c/96/0d8587462b29412635f63882a089e829cc8f80dc7d5c32deaa9c9950ff78/ConfArgParse-1.0.15.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "5063a3f52ab24a51150930c8647a03aa", "sha256": "1f2a7b2dbd92164082ba6305f7146048900a75565897399d32bc67d8150c73e8" }, "downloads": -1, "filename": "ConfArgParse-1.0.3.tar.gz", "has_sig": false, "md5_digest": "5063a3f52ab24a51150930c8647a03aa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4380, "upload_time": "2012-10-13T03:01:41", "url": "https://files.pythonhosted.org/packages/e4/08/8a0426e25fd3b7593e1361c5ec2a320fbfd54741c53d0c5b7fd6cb8f1798/ConfArgParse-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "384c5203da08a773e48c9125ab5e3d09", "sha256": "ca15bdf99060896da881e508d68cff17ad44e3399e4bce89bd00f1819acd3a35" }, "downloads": -1, "filename": "ConfArgParse-1.0.4.tar.gz", "has_sig": false, "md5_digest": "384c5203da08a773e48c9125ab5e3d09", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4377, "upload_time": "2012-10-13T03:09:45", "url": "https://files.pythonhosted.org/packages/f4/cc/f6a1308746221ca49813fcb44190ee2d465098bd523063d92ae3e15b293a/ConfArgParse-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "697ae8664212ccbe2cd1fb204f1424b8", "sha256": "5fe06ed50556180d3a680620bccdbcf72a1a7aa4ef03d21da09b71e18199c241" }, "downloads": -1, "filename": "ConfArgParse-1.0.5.tar.gz", "has_sig": false, "md5_digest": "697ae8664212ccbe2cd1fb204f1424b8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4409, "upload_time": "2012-10-13T03:13:16", "url": "https://files.pythonhosted.org/packages/a1/68/ddf65f4748484ed08b1d67c0fb6358d51bb74cedb3f144c3e6bb8be28ef9/ConfArgParse-1.0.5.tar.gz" } ], "1.0.6": [ { "comment_text": "", "digests": { "md5": "d69e73c9d1d3b48acca8cb99fce01c35", "sha256": "f845684a8e804298f29f051f12dc2f578430b20fa3aeb2af3ec7299409df517a" }, "downloads": -1, "filename": "ConfArgParse-1.0.6.tar.gz", "has_sig": false, "md5_digest": "d69e73c9d1d3b48acca8cb99fce01c35", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4420, "upload_time": "2012-10-13T03:57:29", "url": "https://files.pythonhosted.org/packages/5c/ac/e9b0cc5e7e21860429a6ed32427030884cd264a20ba85bdf213cf1272cac/ConfArgParse-1.0.6.tar.gz" } ], "1.0.7": [ { "comment_text": "", "digests": { "md5": "d4dd8ceb460432527233c75c9fad0d6c", "sha256": "5333ecb3c173ea6c59a2b51704afc3912fd5f32fa9fad2a3c43267700554cb7b" }, "downloads": -1, "filename": "ConfArgParse-1.0.7.tar.gz", "has_sig": false, "md5_digest": "d4dd8ceb460432527233c75c9fad0d6c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4419, "upload_time": "2012-10-13T06:47:41", "url": "https://files.pythonhosted.org/packages/ab/b5/4714fcce15cb89161ae9ad52c31418ed4eb63b65a12c8173139f20bdf1ec/ConfArgParse-1.0.7.tar.gz" } ], "1.0.9": [ { "comment_text": "", "digests": { "md5": "e66da900d8b2525bbbec8dd9410c35fd", "sha256": "9f4efee5866b4c4eb622f9935809ab1dabf906d7ef147a4d53c4e399f1f568c0" }, "downloads": -1, "filename": "ConfArgParse-1.0.9.tar.gz", "has_sig": false, "md5_digest": "e66da900d8b2525bbbec8dd9410c35fd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4441, "upload_time": "2012-10-13T08:48:41", "url": "https://files.pythonhosted.org/packages/04/88/9592ed3440f55f1760e47f004457ba46a4abeadddd7a9ab017c91f934590/ConfArgParse-1.0.9.tar.gz" } ], "1.1.20": [ { "comment_text": "", "digests": { "md5": "fe50f860d048949933c1cd771cfba90f", "sha256": "6777b259ffb51daffe4675a41d8c27a3774ab58e8c6f10818d3febf1fae4ed52" }, "downloads": -1, "filename": "ConfArgParse-1.1.20.tar.gz", "has_sig": false, "md5_digest": "fe50f860d048949933c1cd771cfba90f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5403, "upload_time": "2015-03-21T06:06:36", "url": "https://files.pythonhosted.org/packages/fa/98/8cc38ab449f7a2415bc6c2929fe8abc5b2161da07541b7b7a2d7957ab67f/ConfArgParse-1.1.20.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fe50f860d048949933c1cd771cfba90f", "sha256": "6777b259ffb51daffe4675a41d8c27a3774ab58e8c6f10818d3febf1fae4ed52" }, "downloads": -1, "filename": "ConfArgParse-1.1.20.tar.gz", "has_sig": false, "md5_digest": "fe50f860d048949933c1cd771cfba90f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5403, "upload_time": "2015-03-21T06:06:36", "url": "https://files.pythonhosted.org/packages/fa/98/8cc38ab449f7a2415bc6c2929fe8abc5b2161da07541b7b7a2d7957ab67f/ConfArgParse-1.1.20.tar.gz" } ] }