{ "info": { "author": "Ben Mather", "author_email": "bwhmather@bwhmather.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "License :: OSI Approved :: Python Software Foundation License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Json Config Parser\n==================\n\n|build-status| |coverage|\n\nA straightforward and unambiguous config file parser.\n\nThis package was originally based on the configparser module that comes in the standard python distribution but has been almost entirely rewritten.\n\nThe main branch won't support python 2 as it is missing keyword only arguments and ``ChainMap`` is not in the standard library.\nIf you need legacy support then there are a couple of forks which look like they do the job.\n\n\nInstallation\n------------\n\nAvailable on pypi as `json-config-parser `_\n\nTo install run\n\n.. code:: sh\n\n pip install json-config-parser\n\n\nAlternatively grab the code from `github `_ and run:\n\n.. code:: sh\n\n python setup.py install\n\n\nSyntax\n------\n\nFiles are structured using square bracket sections, ``#`` comments and ``$key = $value`` options. Option values are written in json and can lists and dictionaries be spread over any number of lines.\nTo keep parsing simple and files neat, comments, section headers and keys can not be indented and no whitespace is allowed on empty lines.\n\nComments start at the beginning of a line with a ``#`` symbol and extend to the line's end.\n\n\nUsage\n-----\n\n.. code:: python\n\n cfg = JSONConfigParser()\n\n cfg.read_string(\"\"\"\n [section]\n number = 3.141592654\n dictionary = {\"key\": \"value\"}\n list = [1,\n 2,\n 3]\n nested = {\"list\": [1,2,3]}\n true = true\n none = null\n \n [DEFAULT]\n # settings in the default section are inherited\n # by all other sections.\n default-setting = \"default\"\n \"\"\")\n\n # read a setting\n cfg.get(\"section\", \"number\")\n\n # read a setting using index notation\n cfg[\"section\"][\"true\"]\n\n # settings inherited from DEFAULT\n cfg.get(\"section\", \"default-setting\")\n\n\nBugs\n----\n\nPlease report any problems on the `bugtracker`_ and I will do my best to fix them.\nPull requests are also welcome.\n\n\n.. |build-status| image:: https://travis-ci.org/bwhmather/json-config-parser.png?branch=develop\n :target: http://travis-ci.org/bwhmather/json-config-parser\n :alt: Build Status\n.. |coverage| image:: https://coveralls.io/repos/bwhmather/json-config-parser/badge.png?branch=develop\n :target: https://coveralls.io/r/bwhmather/json-config-parser?branch=develop\n :alt: Coverage\n.. _pypi: https://pypi.python.org/pypi/json-config-parser/\n.. _project_page: https://github.com/bwhmather/json-config-parser\n.. _bugtracker: https://github.com/bwhmather/json-config-parser/issues\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bwhmather/json-config-parser/", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "json-config-parser", "package_url": "https://pypi.org/project/json-config-parser/", "platform": "any", "project_url": "https://pypi.org/project/json-config-parser/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/bwhmather/json-config-parser/" }, "release_url": "https://pypi.org/project/json-config-parser/0.1.2/", "requires_dist": null, "requires_python": null, "summary": "A straightforward and unambiguous config file parser.", "version": "0.1.2" }, "last_serial": 1389300, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "109cd664e5e7a64fa287637143ae2731", "sha256": "0de644afd0516184bc71d75ec7431bc381f3bdc72d1428fc9b353b692fd00301" }, "downloads": -1, "filename": "json-config-parser-0.0.1.tar.gz", "has_sig": false, "md5_digest": "109cd664e5e7a64fa287637143ae2731", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5758, "upload_time": "2014-04-11T17:44:43", "url": "https://files.pythonhosted.org/packages/9c/df/75d8a350cfe4fa960f257909a84645808e86505052c640686f2264434c9a/json-config-parser-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "1bed2ae209a56cf4cc5f5e51ab509d27", "sha256": "2485b76fd76462f037ec41fa1e528d80dd2be38d6b64c861bd579f2b99b22131" }, "downloads": -1, "filename": "json-config-parser-0.0.2.tar.gz", "has_sig": false, "md5_digest": "1bed2ae209a56cf4cc5f5e51ab509d27", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6977, "upload_time": "2014-04-13T21:25:56", "url": "https://files.pythonhosted.org/packages/94/e3/00f2fb60d0eacbdc4b90f98e9894cf437e06df56b3556dcf188512f0af14/json-config-parser-0.0.2.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "1eb7f8ed8aaa379e36a5b2ab938b3b44", "sha256": "5e25cdbd3a7abaf7f8aabc4aefa091d45a5db07944db1bca036939250942243b" }, "downloads": -1, "filename": "json-config-parser-0.1.0.tar.gz", "has_sig": false, "md5_digest": "1eb7f8ed8aaa379e36a5b2ab938b3b44", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6976, "upload_time": "2014-04-13T21:35:00", "url": "https://files.pythonhosted.org/packages/d9/9e/a6a939b5da4c246023edd34ccd8a19c453011b826c68717fbf7615262f72/json-config-parser-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "41b9e0b0b810fb9dd4a1f7cd9093769c", "sha256": "4fee4154cd4173ec5e0dbe32dfe9b70dcaac35f932ee2932bf9e817e57129dd0" }, "downloads": -1, "filename": "json-config-parser-0.1.1.tar.gz", "has_sig": false, "md5_digest": "41b9e0b0b810fb9dd4a1f7cd9093769c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2121, "upload_time": "2014-12-09T12:16:17", "url": "https://files.pythonhosted.org/packages/fa/85/70b8ecd6682ba0286c883a2651b210189b082dda54022c7722ed23a06f70/json-config-parser-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "dcf1a30b7041ffe800b3e983b6824fd1", "sha256": "8afa0a2926d8fbfe051192847ee84c06f9d511a3016a2f5ec31139205c495eb4" }, "downloads": -1, "filename": "json-config-parser-0.1.2.tar.gz", "has_sig": false, "md5_digest": "dcf1a30b7041ffe800b3e983b6824fd1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2126, "upload_time": "2015-01-20T15:22:44", "url": "https://files.pythonhosted.org/packages/62/88/61546c8453d39b15b8063d3049663ed4118f12c8c39aea74bb23dc58b16e/json-config-parser-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "dcf1a30b7041ffe800b3e983b6824fd1", "sha256": "8afa0a2926d8fbfe051192847ee84c06f9d511a3016a2f5ec31139205c495eb4" }, "downloads": -1, "filename": "json-config-parser-0.1.2.tar.gz", "has_sig": false, "md5_digest": "dcf1a30b7041ffe800b3e983b6824fd1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2126, "upload_time": "2015-01-20T15:22:44", "url": "https://files.pythonhosted.org/packages/62/88/61546c8453d39b15b8063d3049663ed4118f12c8c39aea74bb23dc58b16e/json-config-parser-0.1.2.tar.gz" } ] }