{ "info": { "author": "M Fakhir Khan", "author_email": "thefakhir@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "### ConfigParser\nA custom wrapper, written for python's own configparser, for reading and writing ini files, using simple dictionaries.\n\nCan be installed using the setup.py file and by using the pip module\n\n pip install dict-config-parser\n\n##### Input arguments:\n\n\n* config_file\n\nAs the name suggest, you can input the file name of the file, including the ini extension. \nYou can also pass the path of the config file in this parameter.\n \n* get_new_config \n\nThis is a boolean flag, when True, the code would ask for a new config and overwrite the previous one.\n \n* default_keys\n \nA dictionary needs to be passed to this input parameter. The keys of the dictionary would become the section names of the config file, while the array of values, against those keys, would become the section keys in that particular section. (See the test case for understanding)\n \nA sample default keys might look this.\n\nkeys = {'DATASET_PATH' : ['VOC' , 'COCO'],\n 'MODEL_PATH' : ['WEIGHTS', 'JSON']}'\n\n \n##### Usage:\n\nYou only have to pass through the input parameters and it would create a new file, if it doesn't already exist. \nThis would create the required prompts on the command line and you can enter the values as needed.\n\n config = ConfigParser(config_file='config.ini', get_new_config=True, default_keys=keys)\n\n\nAfter creating the file, you would need to run the run_config method, from the current object of the class, to read the values \nfrom the created config file and return the values in a two-tiered dictionary.\n\n config_dictionary = config.read_config()\n\nThe dictionary would have sections names, as its first tier keys and section key, as its second tier keys.\n \nFor example, if you passed the example default keys, you could get the value against 'JSON' key in the 'MODEL_PATH' section,\nby the command \n \n required_value = config_dictionary['MODEL_PATH']['JSON']", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/thefakhir/dict_config_parser.git", "keywords": "config parser configparser", "license": "", "maintainer": "", "maintainer_email": "", "name": "dict-config-parser", "package_url": "https://pypi.org/project/dict-config-parser/", "platform": "", "project_url": "https://pypi.org/project/dict-config-parser/", "project_urls": { "Homepage": "https://github.com/thefakhir/dict_config_parser.git" }, "release_url": "https://pypi.org/project/dict-config-parser/1.0/", "requires_dist": null, "requires_python": ">=3.5, <3.8", "summary": "A custom wrapper, written in python, for reading and writing ini files, using simple dictionaries.", "version": "1.0" }, "last_serial": 5814714, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "5a2f6b7f72a0b7622822ffb051ccaa62", "sha256": "b8db3376d6a75c2c14612a67138c64454b93e47b1df470658b217e686fe8ae15" }, "downloads": -1, "filename": "dict_config_parser-1.0.tar.gz", "has_sig": false, "md5_digest": "5a2f6b7f72a0b7622822ffb051ccaa62", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5, <3.8", "size": 3310, "upload_time": "2019-09-11T12:39:58", "url": "https://files.pythonhosted.org/packages/b5/d3/f39c79c9d31102efd96deb69c7a9e4a75b10beb4adc5ae77e8d134e2f519/dict_config_parser-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5a2f6b7f72a0b7622822ffb051ccaa62", "sha256": "b8db3376d6a75c2c14612a67138c64454b93e47b1df470658b217e686fe8ae15" }, "downloads": -1, "filename": "dict_config_parser-1.0.tar.gz", "has_sig": false, "md5_digest": "5a2f6b7f72a0b7622822ffb051ccaa62", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5, <3.8", "size": 3310, "upload_time": "2019-09-11T12:39:58", "url": "https://files.pythonhosted.org/packages/b5/d3/f39c79c9d31102efd96deb69c7a9e4a75b10beb4adc5ae77e8d134e2f519/dict_config_parser-1.0.tar.gz" } ] }