{ "info": { "author": "Martijn Brekelmans", "author_email": "tijntje_7@msn.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "# Confy: A dictionary backed by a real .json file\n\nConfy is a dictionary with a `.save()` method. Acts exactly the same as a regular dictionary otherwise.\n\n## Install\n\n`pip install mb-confy`\n\n## Use\n\n```python\nfrom confy import Confy\n\nconfigPath = \"config.json\"\nconfig = Confy(configPath)\n\nif \"timesOpened\" in config:\n timesOpened = config[\"timesOpened\"]\nelse:\n timesOpened = 0\n\nprint(\"Opened {} times\".format(timesOpened))\nconfig[\"timesOpened\"] = timesOpened + 1\n```\n\n## Licensing\n\nMIT\n\n## Author\n\nMade by Martijn Brekelmans. This project is used in [SMG music display](https://martijnbrekelmans.com/SMG).", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Azeirah/confy", "keywords": "configuration config json ini", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "mb-confy", "package_url": "https://pypi.org/project/mb-confy/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/mb-confy/", "project_urls": { "Homepage": "https://github.com/Azeirah/confy" }, "release_url": "https://pypi.org/project/mb-confy/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "A dictionary backed by a real .json file", "version": "0.1.1" }, "last_serial": 2805604, "releases": { "0.1.0": [], "0.1.1": [ { "comment_text": "", "digests": { "md5": "0085ebc9c512440401cdd964704b68ac", "sha256": "3dd73026e73e6843edd77ebfbd974ae796c3d71d588a64cc18f70ba46a007e73" }, "downloads": -1, "filename": "mb_confy-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0085ebc9c512440401cdd964704b68ac", "packagetype": "bdist_wheel", "python_version": "any", "requires_python": null, "size": 5496, "upload_time": "2017-04-15T13:53:29", "url": "https://files.pythonhosted.org/packages/a6/ff/d29acb06a3da50be4b75b580ba9250aa78066b1acc115a79e97af17a5c5c/mb_confy-0.1.1-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0085ebc9c512440401cdd964704b68ac", "sha256": "3dd73026e73e6843edd77ebfbd974ae796c3d71d588a64cc18f70ba46a007e73" }, "downloads": -1, "filename": "mb_confy-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0085ebc9c512440401cdd964704b68ac", "packagetype": "bdist_wheel", "python_version": "any", "requires_python": null, "size": 5496, "upload_time": "2017-04-15T13:53:29", "url": "https://files.pythonhosted.org/packages/a6/ff/d29acb06a3da50be4b75b580ba9250aa78066b1acc115a79e97af17a5c5c/mb_confy-0.1.1-py2.py3-none-any.whl" } ] }