{ "info": { "author": "Thomas Leichtfuss", "author_email": "thomaslfuss@gmx.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License (GPL)", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2.7" ], "description": "smartparse\n==========\n\nMakes the ConfigParser smarter.\n\nA SmartParser provides methods to parse options as objects of the datetime-modules, as\nlist or as 'smartlist'.\nItems of a smartlist are automatically tried to converted into different\ntypes (such as: int, float, time, date, datetime).\n\nIt also provides additional get- and itme-methods (xget, xitem):\nxget tries to get the option as one of the following types (in this\norder): int, float, boolean, time, date, datetime, smartlist.\nIf every type fails the option is given as string.\n\n\nLatest Version\n--------------\nThe latest version of this project can be found at : http://github.com/thomst/smartparse.\n\n\nInstallation\n------------\n* Option 1 : Install via pip ::\n\n pip install smartparse\n\n* Option 2 : If you have downloaded the source ::\n\n python setup.py install\n\n\nDocumentation\n-------------\nHow to use? ::\n\n import io\n from smartparse import SmartParser\n\n CONFIG = \"\"\"\n [Section]\n bool = yes\n int = 3\n float = 3.3\n time = 23:55:00\n date = 2013.04.24\n datetime = 2013.04.24 23:55:00\n list = one two three four\n smartlist = 3 4.4 1:55 yes 2013.04.24 2013.04.24_01:55\n \"\"\"\n\n config = SmartParser(allow_no_value=True)\n config.readfp(io.BytesIO(CONFIG))\n section = dict(self.config.xitems('Section'))\n\n section['bool'] # True\n section['datetime'] # datetime.datetime(2013, 4, 24, 23, 55)\n section['list'] # ['one', 'two', 'three', 'four']\n section['smartlist'][2] # datetime.time(1, 55)\n section['smartlist'][4] # datetime.date(2013, 4, 24)\n\n\nChanges v0.5:\n-------------\n*Backwards incompatibility:*\n getsmartlist became getxlist.\n Removed the config-methods. Use the timeparser-module directly to change the\n configuration about parsing time-, date- and datetime-objects.\n\n\nReporting Bugs\n--------------\nPlease report bugs at github issue tracker:\nhttps://github.com/thomst/smartparse/issues\n\n\nAuthor\n------\nthomst \nThomas Leichtfu\u00df\n\n* http://github.com/thomst", "description_content_type": null, "docs_url": null, "download_url": "https://pypi.python.org/packages/source/s/smartparse/smartparse-0.4.0.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/thomst/smartparse", "keywords": "config configfile ConfigParser datetime", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "smartparse", "package_url": "https://pypi.org/project/smartparse/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/smartparse/", "project_urls": { "Download": "https://pypi.python.org/packages/source/s/smartparse/smartparse-0.4.0.tar.gz", "Homepage": "https://github.com/thomst/smartparse" }, "release_url": "https://pypi.org/project/smartparse/0.4.0/", "requires_dist": null, "requires_python": null, "summary": "Makes the ConfigParser smarter.", "version": "0.4.0" }, "last_serial": 1038700, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "cb0377d77b4bbf844fe8d834fa44f0c0", "sha256": "a21e9b9f5ab5cdd0cfe97ea69d0f3267d4e315bf30921cb00ab9e0515a0d2fe6" }, "downloads": -1, "filename": "smartparse-0.1.tar.gz", "has_sig": false, "md5_digest": "cb0377d77b4bbf844fe8d834fa44f0c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2616, "upload_time": "2013-04-25T17:48:20", "url": "https://files.pythonhosted.org/packages/b6/7e/138cf97a86d6989c13aba6a98c28622e856c1907254e8548ddc1c22487f3/smartparse-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "e70e84ccf26e275740b5ed9517a2beae", "sha256": "ddf4508387687553d076585a175a25482de427e893c6256e8f963e458f94c5b5" }, "downloads": -1, "filename": "smartparse-0.2.tar.gz", "has_sig": false, "md5_digest": "e70e84ccf26e275740b5ed9517a2beae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3187, "upload_time": "2013-05-04T11:42:08", "url": "https://files.pythonhosted.org/packages/c8/0d/b9050ba928f7018d7465628e97c75b2c5ee8a032f6d25c2e423cbe166464/smartparse-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "238a1593e0914da4939c31b5ce38014e", "sha256": "c828faf0a989c2ba373d2d9b3ae94e38b4a67a6f37aff22bba47d02a0384ffce" }, "downloads": -1, "filename": "smartparse-0.2.1.tar.gz", "has_sig": false, "md5_digest": "238a1593e0914da4939c31b5ce38014e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3135, "upload_time": "2013-05-06T11:09:45", "url": "https://files.pythonhosted.org/packages/c1/d8/79bb3b5e5a47da85fae9d75f8d0041da7dc84868eeca6e3b02949859e043/smartparse-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "183115c0e0720b829476d6fc7634ec96", "sha256": "d2ca5aafea86d4c0a98efb6067f9f3e69c9351c9ec05cfd4d18f9c94c6cf59b8" }, "downloads": -1, "filename": "smartparse-0.2.2.tar.gz", "has_sig": false, "md5_digest": "183115c0e0720b829476d6fc7634ec96", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3256, "upload_time": "2013-05-07T18:50:53", "url": "https://files.pythonhosted.org/packages/d1/89/ccdfa8bd44f1913d709a02442286f5ff96c8745210003c374d08fc4b3e9d/smartparse-0.2.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "e214634da8715322d949bcdd8b178b46", "sha256": "946ad7acd7dd95ff83e977d49110e2fb666e3339d2b8c9ff8b75fa8aa6180a13" }, "downloads": -1, "filename": "smartparse-0.3.tar.gz", "has_sig": false, "md5_digest": "e214634da8715322d949bcdd8b178b46", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3186, "upload_time": "2013-05-08T18:03:21", "url": "https://files.pythonhosted.org/packages/15/71/50294ccc1bc5f6c8bd774773a9bedda0dbccf3e2da3e10a49a761708a819/smartparse-0.3.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "8e2707f4b7fc19e6b136302bad8a922a", "sha256": "f62cbffc5e4696440fbc1272241bdbb4d70cb65f582bd49c8d840e7f895537c6" }, "downloads": -1, "filename": "smartparse-0.3.1.tar.gz", "has_sig": false, "md5_digest": "8e2707f4b7fc19e6b136302bad8a922a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3203, "upload_time": "2013-07-29T16:09:24", "url": "https://files.pythonhosted.org/packages/26/59/20db3c4cfe8226ccba4f91e786f778fcffdbb3c6f6506f14f0ee450de9ef/smartparse-0.3.1.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "ca4185acb5637d68b73261fd008f09c0", "sha256": "69ea7c989c085c45da0f3cb3655750aa1c5f6a9f0c593c5c925f850108aed08f" }, "downloads": -1, "filename": "smartparse-0.4.0.tar.gz", "has_sig": false, "md5_digest": "ca4185acb5637d68b73261fd008f09c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3358, "upload_time": "2014-03-23T19:57:31", "url": "https://files.pythonhosted.org/packages/d3/66/08cbc1b9d631849051ff5ca3aa683435fc1a3425acb1004f9a2a5bd61608/smartparse-0.4.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ca4185acb5637d68b73261fd008f09c0", "sha256": "69ea7c989c085c45da0f3cb3655750aa1c5f6a9f0c593c5c925f850108aed08f" }, "downloads": -1, "filename": "smartparse-0.4.0.tar.gz", "has_sig": false, "md5_digest": "ca4185acb5637d68b73261fd008f09c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3358, "upload_time": "2014-03-23T19:57:31", "url": "https://files.pythonhosted.org/packages/d3/66/08cbc1b9d631849051ff5ca3aa683435fc1a3425acb1004f9a2a5bd61608/smartparse-0.4.0.tar.gz" } ] }