{ "info": { "author": "oskarnyqvist", "author_email": "oskarnyqvist@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "defaultsettings - Handle settings with default for python. Serialized to JSON\n=============================================================================\n\nHandle settings files in python. Serialize to JSON.\n\nUsage\n-----\n\n.. code:: python\n\n import defaultsettings\n\n # Create new settings template\n settings = defaultsettings.Settings()\n\n # Set default values\n Settings.default(\"key\", \"one\")\n settings.default(\"key2\", range(5))\n\n # Save settings to file\n settings.save(\"pathname.json\")\n\n # Load settings\n settings.load(\"pathname.json\")\n\n # Current settings, default and loaded config\n print settings.data\n\n # Change data\n settings.data[\"key\"] = \"two\"\n\n # Save config file with new data\n settings.save(\"pathname.json\")", "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/oskarnyqvists/defaultsettings", "keywords": null, "license": "The MIT License (MIT)\n\nCopyright (c) 2015 Oskar Nyqvist\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.", "maintainer": null, "maintainer_email": null, "name": "defaultsettings", "package_url": "https://pypi.org/project/defaultsettings/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/defaultsettings/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/oskarnyqvists/defaultsettings" }, "release_url": "https://pypi.org/project/defaultsettings/0.0.3/", "requires_dist": null, "requires_python": null, "summary": "Handle settings with default in python", "version": "0.0.3" }, "last_serial": 1482853, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "4582902c89eecc90eea9497d397ae5e2", "sha256": "273ec6047ba32ed4eff10619a2998adf5dbde6a6eefb3a43f0bc0d32e2c1e9d0" }, "downloads": -1, "filename": "defaultsettings-0.0.1.tar.gz", "has_sig": false, "md5_digest": "4582902c89eecc90eea9497d397ae5e2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2326, "upload_time": "2015-03-29T19:13:32", "url": "https://files.pythonhosted.org/packages/73/16/1e36dfb53b61059439365ea16b1725879563acfad469d9c0149c63a54756/defaultsettings-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "5566274873f43282ef3a65a191e6a4c1", "sha256": "77347199b1c6b76f3fb0933b022911b8e1f6e4c050209627b405165974ca4b1f" }, "downloads": -1, "filename": "defaultsettings-0.0.2.tar.gz", "has_sig": false, "md5_digest": "5566274873f43282ef3a65a191e6a4c1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2457, "upload_time": "2015-03-30T05:40:15", "url": "https://files.pythonhosted.org/packages/3e/04/41ab6aab1ebfe455993c54ae60da08eccfeef57b31910ecc8a5476a5c1c1/defaultsettings-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "8027fd71e622c6b3939ea21e654b920c", "sha256": "0c76ff48f402ea381d53c574ff387814575e32d1a8429692f13ab1324ebd51aa" }, "downloads": -1, "filename": "defaultsettings-0.0.3.tar.gz", "has_sig": false, "md5_digest": "8027fd71e622c6b3939ea21e654b920c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2587, "upload_time": "2015-03-30T05:42:45", "url": "https://files.pythonhosted.org/packages/8c/0e/25de84f404f0576a965a8352891d906ea48344f60b40d80bc257f1100531/defaultsettings-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8027fd71e622c6b3939ea21e654b920c", "sha256": "0c76ff48f402ea381d53c574ff387814575e32d1a8429692f13ab1324ebd51aa" }, "downloads": -1, "filename": "defaultsettings-0.0.3.tar.gz", "has_sig": false, "md5_digest": "8027fd71e622c6b3939ea21e654b920c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2587, "upload_time": "2015-03-30T05:42:45", "url": "https://files.pythonhosted.org/packages/8c/0e/25de84f404f0576a965a8352891d906ea48344f60b40d80bc257f1100531/defaultsettings-0.0.3.tar.gz" } ] }