{ "info": { "author": "ytyng", "author_email": "ytyng@live.jp", "bugtrack_url": null, "classifiers": [], "description": "verticaltable\n~~~~~~~~~~~~~\n\nThis is an structured text parser.\n\n\nformat\n------\n\nexample 1:\n\nsource:\n::\n\n [Q] This is a question.\n [A] This is an answer.\n [Q] This is a question2.\n # This is comment\n [A] This is an answer2.\n\nparsed:\n\n::\n\n [\n {\n 'Q': 'This is a question.',\n 'A': 'This is an answer.',\n },\n {\n 'Q': 'This is a question2.',\n 'A': 'This is an answer2.',\n },\n ]\n\n* If the same key appeared, Next record.\n* Actuary, output is OrderedDict list. Not Dict list.\n\nsource:\n::\n\n [Key1]\n Value1\n [Key2]\n Value2\n ----\n [Key3]\n Value3\n next line\n next line\n [Key4]\n\n Value4 4!\n\n [Key5]\n Value5\n\nparsed:\n\n::\n\n [\n {\n 'Key1': 'Value1',\n 'Key2': 'Value2',\n },\n {\n 'Key3': 'Value3\\nnext line\\nnext line',\n 'Key4': 'Value4 4!',\n 'Key5': 'Value5',\n }\n\n* Whitespace trimmed.\n* \"----\" (Hyphens >= 4) is list separator.\n\n\nusage\n-----\n\n::\n\n import verticaltable\n\n fp = open('sample.txt')\n\n parsed_list = verticaltable.loads(fp.read())\n\n parsed_list2 = verticaltable.load(open('sample2.txt'))\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/ytyng/verticaltable.git", "keywords": "Python,Data structure", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "verticaltable", "package_url": "https://pypi.org/project/verticaltable/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/verticaltable/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/ytyng/verticaltable.git" }, "release_url": "https://pypi.org/project/verticaltable/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "VERTICALTABLE structured text parser", "version": "0.1.0" }, "last_serial": 2119502, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "343f3275fd98f78054bea1a76bbd889f", "sha256": "11b317ba265be7fa10c37383291d52bfdad06c7f447dcfc1547b9672e9904821" }, "downloads": -1, "filename": "verticaltable-0.1.0.tar.gz", "has_sig": false, "md5_digest": "343f3275fd98f78054bea1a76bbd889f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1738, "upload_time": "2016-05-17T09:41:34", "url": "https://files.pythonhosted.org/packages/b0/38/a95766ced9a8cdc41adf0ef547395e67c27a0fd8595a9a84d562166c5018/verticaltable-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "343f3275fd98f78054bea1a76bbd889f", "sha256": "11b317ba265be7fa10c37383291d52bfdad06c7f447dcfc1547b9672e9904821" }, "downloads": -1, "filename": "verticaltable-0.1.0.tar.gz", "has_sig": false, "md5_digest": "343f3275fd98f78054bea1a76bbd889f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1738, "upload_time": "2016-05-17T09:41:34", "url": "https://files.pythonhosted.org/packages/b0/38/a95766ced9a8cdc41adf0ef547395e67c27a0fd8595a9a84d562166c5018/verticaltable-0.1.0.tar.gz" } ] }