{ "info": { "author": "Helgi \u00deorbj\u00f6rnsson", "author_email": "helgi@php.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Topic :: Utilities" ], "description": "SimpleConfigParser\n==================\n\n.. image:: https://travis-ci.org/helgi/python-simpleconfigparser.png\n :target: https://travis-ci.org/helgi/python-simpleconfigparser\n\nBuilds on top of the builtin SafeConfigParser but adds various\nconvenience functionalities.\n\n- Access to all the usual ConfigParser functionality\n- Access sections and items via convience objects and dicts instead of\n ``get()``\n- Makes accessing items and section via dicts possible on Python 2.7+,\n ConfigParser has that from Python 3.2 onwards as a default\n- Ability to set values via the objects\n ``config.section.item = 'demmmmm'`` and dicts\n ``config['section']['item']`` all while ``write()`` still work as\n normal\n- Make a few functions work directly from the section object\n ``config.section.items()``, ``config.section.getboolean('item')``\n- Strips any quotes on the edgeds of items used in the INI file instead\n of returning it as part of the values\n- Improve the defaults handling on the object to be more sensible\n\n.. code:: python\n\n defaults = {\n 'section': {\n 'item1': 'boo',\n 'item2': 'bar'\n }\n }\n\n config = simpleconfigparser(defaults=defaults)\n\nExamples\n========\n\ncontents of read.ini:\n::\n\n [app]\n debug = yes\n\ntest.py:\n\n.. code:: python\n\n from simpleconfigparser import simpleconfigparser\n\n config = simpleconfigparser()\n config.read('read.ini')\n\n print(config.app.debug)\n print(config.app.getboolean('debug'))\n print(config['app']['debug'])\n print(config['app'].getboolean('debug'))\n config.app.debug = no\n with open('new.ini', 'wb') as handle:\n config.write(handle)\n\nLicense\n=======\nMIT - See LICENSE file", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/helgi/python-simpleconfigparser", "keywords": "ConfiParser,ini", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "SimpleConfigParser", "package_url": "https://pypi.org/project/SimpleConfigParser/", "platform": "any", "project_url": "https://pypi.org/project/SimpleConfigParser/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/helgi/python-simpleconfigparser" }, "release_url": "https://pypi.org/project/SimpleConfigParser/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Simplifies and enchances functionalities in Python's ConfigParser", "version": "0.1.0" }, "last_serial": 785658, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "470c4915ea80ce2752f548c9e2901abd", "sha256": "d9954518cfb4b980c6854b7d90b231e9822e0909008dbad7320e1e48f9b7face" }, "downloads": -1, "filename": "SimpleConfigParser-0.1.0.tar.gz", "has_sig": false, "md5_digest": "470c4915ea80ce2752f548c9e2901abd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4496, "upload_time": "2013-04-04T17:51:24", "url": "https://files.pythonhosted.org/packages/59/c9/13d37446679227e682778b101a7071d5870f2d0207e3ff4344f3cb30956b/SimpleConfigParser-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "470c4915ea80ce2752f548c9e2901abd", "sha256": "d9954518cfb4b980c6854b7d90b231e9822e0909008dbad7320e1e48f9b7face" }, "downloads": -1, "filename": "SimpleConfigParser-0.1.0.tar.gz", "has_sig": false, "md5_digest": "470c4915ea80ce2752f548c9e2901abd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4496, "upload_time": "2013-04-04T17:51:24", "url": "https://files.pythonhosted.org/packages/59/c9/13d37446679227e682778b101a7071d5870f2d0207e3ff4344f3cb30956b/SimpleConfigParser-0.1.0.tar.gz" } ] }