{ "info": { "author": "Dmitry Orlov ", "author_email": "me@mosquito.su", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "Programming Language :: Python" ], "description": "Arconfig\n========\n\nSave/Load your options to/into config\n\n.. code-block:: python\n\n\t>>> from arconfig import GenConfigAction, LoadConfigAction\n\t>>> parser = argparse.ArgumentParser()\n\t>>> parser.add_argument(\"--config\", action=LoadConfigAction) # add it before another options\n\t>>> parser.add_argument(\"--gen-config\", action=GenConfigAction)\n\t>>> parser.add_argument('-s', action='store', dest='simple_value', help='Store a simple value')\n\t>>> parser.add_argument('-c', action='store_const', dest='constant_value',\n\t... const='value-to-store', help='Store a constant value')\n\t>>> parser.add_argument('-t', action='store_true', default=False,\n\t... dest='boolean_switch', help='Set a switch to true')\n\t>>> parser.add_argument('-f', action='store_false', default=False,\n\t... dest='boolean_switch', help='Set a switch to false')\n\nGenerate simple config\n\n.. code-block:: json\n\n\t$ python script.py --gen-config\n\t{\n\t \"simple_value\": null,\n\t \"constant_value\": null,\n\t \"config\": null,\n\t \"boolean_switch\": false\n\t}\n\n\nAnd load it\n\n.. code-block:: json\n\n\t$ python argparse_config.py --gen-config > /tmp/test.json\n\t$ python argparse_config.py --config=/tmp/test.json\n\t{\n\t \"simple_value\": null,\n\t \"constant_value\": null,\n\t \"config\": null,\n\t \"gen_config\": false,\n\t \"boolean_switch\": false\n\t}\n\n\nAll another arguments overwrite the config values (but counter are added).\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/mosquito/arconfig", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "arconfig", "package_url": "https://pypi.org/project/arconfig/", "platform": "all", "project_url": "https://pypi.org/project/arconfig/", "project_urls": { "Homepage": "http://github.com/mosquito/arconfig" }, "release_url": "https://pypi.org/project/arconfig/0.1.3/", "requires_dist": null, "requires_python": "", "summary": "Load and gen configuration for argparse", "version": "0.1.3" }, "last_serial": 3749784, "releases": { "0.0.3": [ { "comment_text": "built for Darwin-14.0.0", "digests": { "md5": "c0823f67ed4e58254bc553ed068589b6", "sha256": "d211aa4c425178323e6844af936b4647baaf1cc041c68575f3e78775d0be1568" }, "downloads": -1, "filename": "arconfig-0.0.3.macosx-10.10-intel.tar.gz", "has_sig": false, "md5_digest": "c0823f67ed4e58254bc553ed068589b6", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 3709, "upload_time": "2014-11-26T10:44:37", "url": "https://files.pythonhosted.org/packages/b9/7d/276684582e5fd796cf42f117d06c48248da4bba347eb6fa756c43fb64931/arconfig-0.0.3.macosx-10.10-intel.tar.gz" }, { "comment_text": "", "digests": { "md5": "c9500abb4312431978fb3bac526706e3", "sha256": "478fb2eae86d5196db1cc06af6caba11d2e555350ab2472f804a0688e3d12cb2" }, "downloads": -1, "filename": "arconfig-0.0.3.tar.gz", "has_sig": false, "md5_digest": "c9500abb4312431978fb3bac526706e3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2425, "upload_time": "2014-11-26T10:44:34", "url": "https://files.pythonhosted.org/packages/3c/9a/c4b8fad9274af1d688f224909b8656635c2412c2c326f608c9b4b27182b6/arconfig-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "fb65018ee67143fafb05f4ec0003cb30", "sha256": "2b95492cdc07c3c7821b890aec03d16b28f3b3b5e9104ec703c87c5984d09bef" }, "downloads": -1, "filename": "arconfig-0.0.4.tar.gz", "has_sig": false, "md5_digest": "fb65018ee67143fafb05f4ec0003cb30", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2442, "upload_time": "2014-11-26T10:46:59", "url": "https://files.pythonhosted.org/packages/51/96/f40dfd031ff87269034107d7e83e5ba311dc78f8cf386806e5835100ee08/arconfig-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "23a00e6d392b45e25a1ec2be9016c258", "sha256": "8276b646c881fab8ae52aa6f421931063be2b6371bb9a889295d362db9a7e095" }, "downloads": -1, "filename": "arconfig-0.0.5.tar.gz", "has_sig": false, "md5_digest": "23a00e6d392b45e25a1ec2be9016c258", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2524, "upload_time": "2014-12-03T17:03:52", "url": "https://files.pythonhosted.org/packages/c0/cc/0262653664c84dd025464f49fa329a3916c71ff045467d2fd5c2252fc875/arconfig-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "2fd3467f545949b4c6858038a223e745", "sha256": "484958e0a891b19df43e3b91da7c7cabb1faef4aaac1c57ee9c3903fe020f627" }, "downloads": -1, "filename": "arconfig-0.0.6.tar.gz", "has_sig": false, "md5_digest": "2fd3467f545949b4c6858038a223e745", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2474, "upload_time": "2014-12-16T16:57:38", "url": "https://files.pythonhosted.org/packages/1e/38/dc8b33a422e9f2d1274d8f3deb88ee80e0a7bb999c30f36635a515c39146/arconfig-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "1e489808966a689b0955c02b2e1952c9", "sha256": "2c91f772810a8a346184facb8fd718fd8d83b3cb36ec6e43a0dbfc9844d820b3" }, "downloads": -1, "filename": "arconfig-0.0.7.tar.gz", "has_sig": false, "md5_digest": "1e489808966a689b0955c02b2e1952c9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2654, "upload_time": "2015-01-26T13:25:27", "url": "https://files.pythonhosted.org/packages/eb/14/0c681bf9aa932e8069c40f9f624b4f14ea5635b7dcdf062f2f28e96984cd/arconfig-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "708e1f0f14e2a025604075f775f9b6a6", "sha256": "53b93c1c2bee1eaf81f15afb9ca30f9a534567a7736047199ae96f9efa218285" }, "downloads": -1, "filename": "arconfig-0.0.8.tar.gz", "has_sig": false, "md5_digest": "708e1f0f14e2a025604075f775f9b6a6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2650, "upload_time": "2015-01-26T13:49:09", "url": "https://files.pythonhosted.org/packages/88/ad/da30fc9a905c678714b2b96657df452c677480f84eefc89411e1de3f81c0/arconfig-0.0.8.tar.gz" } ], "0.0.9": [ { "comment_text": "", "digests": { "md5": "2ba84fa80e207e9fe2cf923defd0f824", "sha256": "1b6195d3a9c088040c3e0376b5fe1b78383fb22d2b90004eea515877943f8a3c" }, "downloads": -1, "filename": "arconfig-0.0.9.tar.gz", "has_sig": false, "md5_digest": "2ba84fa80e207e9fe2cf923defd0f824", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2651, "upload_time": "2015-01-26T14:09:07", "url": "https://files.pythonhosted.org/packages/4d/b4/a197e6eab0426bb10482c844639d0638ed2122237a7bcf84c35d841c4e5b/arconfig-0.0.9.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "45992a1ebe8fc602d68449fd361ad435", "sha256": "8f25a799e617b1c368a7fea1703e5b2613369b3cae88fd2a1b7c935e03cf3534" }, "downloads": -1, "filename": "arconfig-0.1.0.tar.gz", "has_sig": false, "md5_digest": "45992a1ebe8fc602d68449fd361ad435", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2711, "upload_time": "2015-01-27T11:38:22", "url": "https://files.pythonhosted.org/packages/54/97/abb7b1e43310e51160d01f641f78117fa78dd4f4ee65bc723e269c423fc1/arconfig-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "262e45feea4977b66415ae8b992d89fe", "sha256": "22b2ed61465aac01d94734b6318d0a15041e88a0ec7c7805f22316434214e709" }, "downloads": -1, "filename": "arconfig-0.1.1.tar.gz", "has_sig": false, "md5_digest": "262e45feea4977b66415ae8b992d89fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2845, "upload_time": "2015-01-27T19:08:10", "url": "https://files.pythonhosted.org/packages/4c/00/fc8ebbe4a0bc81e25b76e21c7625848f5903082dc808845398dfda407143/arconfig-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "74485c61133e891d751f177fcef55c38", "sha256": "80dbd0081e56e6955f5cd9bc0f67df15a79a375a1deb3ca2f8131756014b0af4" }, "downloads": -1, "filename": "arconfig-0.1.2.tar.gz", "has_sig": false, "md5_digest": "74485c61133e891d751f177fcef55c38", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2871, "upload_time": "2015-01-28T15:22:00", "url": "https://files.pythonhosted.org/packages/b3/50/8374e1e88cf9decd359529d077586970c1fd64715dc4ac62da976a2aa4ef/arconfig-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "c0e46a5874184e9df7775544c73592ec", "sha256": "28d651472c6903ac17644701f6fbc232a6350a35949ddf75aa5a3257aab5ee4a" }, "downloads": -1, "filename": "arconfig-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "c0e46a5874184e9df7775544c73592ec", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3124, "upload_time": "2018-04-09T20:27:39", "url": "https://files.pythonhosted.org/packages/e8/37/3d22da8221fc5425ef8045d7e4a7e88e77b4fc8f96d9970cc9495496d6cb/arconfig-0.1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6f79a4b3ab71f31e803574b4adc6b207", "sha256": "63a818eb197df28e67873525daa268489fade99222ceaa7d97fa5f924665593a" }, "downloads": -1, "filename": "arconfig-0.1.3.tar.gz", "has_sig": false, "md5_digest": "6f79a4b3ab71f31e803574b4adc6b207", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2936, "upload_time": "2018-04-09T20:27:40", "url": "https://files.pythonhosted.org/packages/2c/74/89b197f50f84eded04cbb212ba52d5b4bc2aa72a63f482b14bb3ef9b5da4/arconfig-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c0e46a5874184e9df7775544c73592ec", "sha256": "28d651472c6903ac17644701f6fbc232a6350a35949ddf75aa5a3257aab5ee4a" }, "downloads": -1, "filename": "arconfig-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "c0e46a5874184e9df7775544c73592ec", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3124, "upload_time": "2018-04-09T20:27:39", "url": "https://files.pythonhosted.org/packages/e8/37/3d22da8221fc5425ef8045d7e4a7e88e77b4fc8f96d9970cc9495496d6cb/arconfig-0.1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6f79a4b3ab71f31e803574b4adc6b207", "sha256": "63a818eb197df28e67873525daa268489fade99222ceaa7d97fa5f924665593a" }, "downloads": -1, "filename": "arconfig-0.1.3.tar.gz", "has_sig": false, "md5_digest": "6f79a4b3ab71f31e803574b4adc6b207", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2936, "upload_time": "2018-04-09T20:27:40", "url": "https://files.pythonhosted.org/packages/2c/74/89b197f50f84eded04cbb212ba52d5b4bc2aa72a63f482b14bb3ef9b5da4/arconfig-0.1.3.tar.gz" } ] }