{ "info": { "author": "Kyle Isom", "author_email": "coder@kyleisom.net", "bugtrack_url": null, "classifiers": [], "description": "simpleconfig\n============\n\n.. image:: https://travis-ci.org/kisom/pysimpleconfig.svg?branch=master\n :target: https://travis-ci.org/kisom/pysimpleconfig\n\nwhat?\n-----\n\nsimpleconfig is a Python module that reads INI files into a dictionary. It\nis both Python 2 and Python 3 compatible.\n\nwhy?\n----\nI've written this code several times for a couple projects; I got sick of\ncopying the file over to new project directories.\n\nhow?\n----\n\nBoth a ``parse`` and ``parse_string`` function are provided. The former parses\nconfig files, and the latter parses a config file serialised into a string.\n\nreturn value and example\n------------------------\nBoth ``parse()`` and ``parse_string`` return a dictionary (see below) where each\nsection is a key at the top level,\nand is a dictionary of key=value pairs itself. For example, given the config\nfile::\n\n\t>>> config = \"\"\"\n\t# random version information\n\tversion = 1.0.5\n\n\t; last modified 1 April 2001 by John Doe\n\t; example taken from wikipedia\n\t[owner]\n\tname=John Doe\n\torganization=Acme Widgets Inc.\n\n\t[database]\n\t# use IP address in case network name resolution is not working\n\tserver=192.0.2.62\n\tport=143\n\tfile=\"payroll.dat\"\n\t\"\"\"\n\nParsing this with ``simpleconfig`` yields::\n\n\t>>> import simpleconfig as sc\n\t>>> cfg = sc.parse_string(config)\n\t>>> cfg['owner']['name']\n\t'John Doe'\n\t>>> cfg.owner.name\n\t'John Doe'\n\nNote that the dictionary type returned by the parse functions is actually a\n`kutils.dicts.AttrDictDict `_,\nwhich is derived from the ``dict`` type and can be used wherever a ``dict`` can.\n\nlicense\n-------\nsimpleconfig is released under an ISC license.\n\nauthor\n------\n`simpleconfig` was written by Kyle Isom .\n\nadditional\n----------\n\nThe module is only tested for compatibility against Python 2.7 and\nPython 3.3+. There are no guarantees (or attempts) at compatibility\nwith previous version of Python.\n\nThe docs are on `RTD `_.\n\nThe source for `simpleconfig` is online:\n\n* `Github `_\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://kisom.github.com/pysimpleconfig", "keywords": "", "license": "Copyright (c) 2017 Kyle Isom ", "maintainer": "", "maintainer_email": "", "name": "simpleconfig", "package_url": "https://pypi.org/project/simpleconfig/", "platform": null, "project_url": "https://pypi.org/project/simpleconfig/", "project_urls": { "Homepage": "http://kisom.github.com/pysimpleconfig" }, "release_url": "https://pypi.org/project/simpleconfig/2.0/", "requires_dist": null, "requires_python": "", "summary": "Dead simple configuration file parser.", "version": "2.0" }, "last_serial": 2969434, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "3495309bc03a8a319ebdca7185ef5035", "sha256": "08d6f9d43a92f292bdb79a89b8a5cffa819bf76e6a2273af21ae8e2e29d2a885" }, "downloads": -1, "filename": "simpleconfig-1.0.tar.gz", "has_sig": false, "md5_digest": "3495309bc03a8a319ebdca7185ef5035", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1105, "upload_time": "2012-11-15T20:56:45", "url": "https://files.pythonhosted.org/packages/fe/d5/ab2503b10a291d0be1d67b2452e0d044fcb45a88c90fb30ae93dd13eec55/simpleconfig-1.0.tar.gz" } ], "2.0": [ { "comment_text": "", "digests": { "md5": "e1e1f0860e579b875cf89d7cf50e2653", "sha256": "29301670b95e3b47d78d123c4f0d89cd0f44b5d46e5ff8d95ba051c9d5d6d404" }, "downloads": -1, "filename": "simpleconfig-2.0-py2-none-any.whl", "has_sig": false, "md5_digest": "e1e1f0860e579b875cf89d7cf50e2653", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4877, "upload_time": "2017-06-22T18:46:41", "url": "https://files.pythonhosted.org/packages/56/a0/b9d7200088a421f25007ef15811b4bb26f2339e3d6a6d0e6ff4587a12059/simpleconfig-2.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d1b50bc62d3df9bd82506ffefed3e1a5", "sha256": "39ef3997931572c8365fb65fdc31686f1f91554d5ffb1025563a1df695b66f81" }, "downloads": -1, "filename": "simpleconfig-2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "d1b50bc62d3df9bd82506ffefed3e1a5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4878, "upload_time": "2017-06-22T18:46:43", "url": "https://files.pythonhosted.org/packages/6f/e2/1ff596a21a89ffa73c66f01db8a82a200944bbeec4ea4ae1970d0ddddaa7/simpleconfig-2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5e9e776bd6844d51055455b58443b8b2", "sha256": "c237d528a71218a20d9c3f85d4b37e03d628ee9effe501e180a378f903c649e8" }, "downloads": -1, "filename": "simpleconfig-2.0.tar.gz", "has_sig": false, "md5_digest": "5e9e776bd6844d51055455b58443b8b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2558, "upload_time": "2017-06-22T18:46:29", "url": "https://files.pythonhosted.org/packages/16/49/e7df279b3cae25790f32d495e519a568102cada5a4f0c409219b683e0ee7/simpleconfig-2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e1e1f0860e579b875cf89d7cf50e2653", "sha256": "29301670b95e3b47d78d123c4f0d89cd0f44b5d46e5ff8d95ba051c9d5d6d404" }, "downloads": -1, "filename": "simpleconfig-2.0-py2-none-any.whl", "has_sig": false, "md5_digest": "e1e1f0860e579b875cf89d7cf50e2653", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4877, "upload_time": "2017-06-22T18:46:41", "url": "https://files.pythonhosted.org/packages/56/a0/b9d7200088a421f25007ef15811b4bb26f2339e3d6a6d0e6ff4587a12059/simpleconfig-2.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d1b50bc62d3df9bd82506ffefed3e1a5", "sha256": "39ef3997931572c8365fb65fdc31686f1f91554d5ffb1025563a1df695b66f81" }, "downloads": -1, "filename": "simpleconfig-2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "d1b50bc62d3df9bd82506ffefed3e1a5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4878, "upload_time": "2017-06-22T18:46:43", "url": "https://files.pythonhosted.org/packages/6f/e2/1ff596a21a89ffa73c66f01db8a82a200944bbeec4ea4ae1970d0ddddaa7/simpleconfig-2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5e9e776bd6844d51055455b58443b8b2", "sha256": "c237d528a71218a20d9c3f85d4b37e03d628ee9effe501e180a378f903c649e8" }, "downloads": -1, "filename": "simpleconfig-2.0.tar.gz", "has_sig": false, "md5_digest": "5e9e776bd6844d51055455b58443b8b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2558, "upload_time": "2017-06-22T18:46:29", "url": "https://files.pythonhosted.org/packages/16/49/e7df279b3cae25790f32d495e519a568102cada5a4f0c409219b683e0ee7/simpleconfig-2.0.tar.gz" } ] }