{ "info": { "author": "Joel Klabo", "author_email": "joelklabo@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries" ], "description": "-- ConfigToDictionary\nConvert a python config file of to a python dictionary\n\n-- Example\nReturn the information in `info.cfg` as a `JSON` response from a `Flask` server:\n\ninfo.cfg\n----------\n[info]\nname = risk\nversion = 1\ndescription = A simple game of chance. Risk 1000 Satoshis, win 2000, or lose them all.\nproject = https://github.com/joelklabo/risk\n\n[risk]\nprice = 1000\ndescription = 49/100 chance you will double your satoshis\n```\n\nserver.py\n----------\nfrom flask import Flask\nfrom flask.ext.responses import json_response\nfrom cfgtodict import ConfigToDictionary\n\napp = Flask(__name__)\n\n@app.route('/info')\ndef info():\n about = ConfigToDictionary('info.cfg').dict() \n return json_response(about)\n```\n\nJSON response\n----------\n{\n \"info\": {\n \"description\": \"A simple game of chance. Risk 1000 Satoshis, win 2000, or lose them all.\",\n \"name\": \"risk\",\n \"project\": \"https://github.com/joelklabo/risk\",\n \"version\": \"1\"\n },\n \"risk\": {\n \"description\": \"49/100 chance you will double your satoshis\",\n \"price\": \"1000\"\n }\n}\n```\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/joelklabo/cfgtodict", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "cfgtodict", "package_url": "https://pypi.org/project/cfgtodict/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/cfgtodict/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/joelklabo/cfgtodict" }, "release_url": "https://pypi.org/project/cfgtodict/0.1.3/", "requires_dist": null, "requires_python": null, "summary": "A simple class for converting a *.cfg file to a Python Dictionary", "version": "0.1.3" }, "last_serial": 1859344, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "81fd292e23ddcf744c7881ad2ad2e028", "sha256": "b507ab5c956a252db09aa7c46ca2ac301b85fce683313b3e61a96d9fe9017dcd" }, "downloads": -1, "filename": "cfgtodict-0.1.1.tar.gz", "has_sig": false, "md5_digest": "81fd292e23ddcf744c7881ad2ad2e028", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1871, "upload_time": "2015-12-11T18:04:21", "url": "https://files.pythonhosted.org/packages/2e/d6/06efee50bab73170aaa1c44148340aead662684b2e47631bbb8ba48e45e1/cfgtodict-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "93e937f9824286019188523f22db3efd", "sha256": "dfc0a42b77f8cf89861c83db44383f744ac586d4fdf7389f27065b6f2175b19e" }, "downloads": -1, "filename": "cfgtodict-0.1.2.tar.gz", "has_sig": false, "md5_digest": "93e937f9824286019188523f22db3efd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1142, "upload_time": "2015-12-12T21:02:18", "url": "https://files.pythonhosted.org/packages/2e/91/7fe4fdfbe85b3118b2a15b48508fb6eded67632f2e4b2639269d8104aab7/cfgtodict-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "a53e53ae6c7aa85b1b59adcc714dfc60", "sha256": "67b4cf0a7b7124e0b279d8f5801218c2382937a11e65e530ef6d0b4c682f9040" }, "downloads": -1, "filename": "cfgtodict-0.1.3.tar.gz", "has_sig": false, "md5_digest": "a53e53ae6c7aa85b1b59adcc714dfc60", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1169, "upload_time": "2015-12-12T21:07:19", "url": "https://files.pythonhosted.org/packages/79/46/1e0a1a64c9e70aaf9f5d7275f8456b884ec4b7f6c71868d1de5eab255088/cfgtodict-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a53e53ae6c7aa85b1b59adcc714dfc60", "sha256": "67b4cf0a7b7124e0b279d8f5801218c2382937a11e65e530ef6d0b4c682f9040" }, "downloads": -1, "filename": "cfgtodict-0.1.3.tar.gz", "has_sig": false, "md5_digest": "a53e53ae6c7aa85b1b59adcc714dfc60", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1169, "upload_time": "2015-12-12T21:07:19", "url": "https://files.pythonhosted.org/packages/79/46/1e0a1a64c9e70aaf9f5d7275f8456b884ec4b7f6c71868d1de5eab255088/cfgtodict-0.1.3.tar.gz" } ] }