{ "info": { "author": "Yordan Miladinov", "author_email": "yordan@4web.bg", "bugtrack_url": null, "classifiers": [], "description": "This module provides a `spy` object that resolves an attribute by\nsearching sequentially in following places:\n\n0. manually set settings\n1. settings catalog\n2. user-provided settings module\n3. manually set fallbacks\n\n\nExamples:\n\n0. Manally set settings:\n\nfrom settingspy import spy\nspy['this_is_int'] = 123\nspy['this_is_str'] = 'string'\nprint(spy.this_is_int, spy.this_is_str)\n\n\n1. Settings catalog\n\nInside the directory specified by the SETTINGSPY_CATALOG environment\nvariable, a file named `something` may exist with the desired value.\nFile contents are restricted to booleans, integers, floats, strings.\nThey are parsed as if eval()ed, so strings should be wrapped in\nparentheses.\n\n$ echo 123 > \"$SETTINGSPY_CATALOG/this_is_int\"\n$ echo \"'string'\" > \"$SETTINGSPY_CATALOG/this_is_str\"\n\n\n2. User provided settings module\n\nin file mysettings.py:\nthis_is_int = 123\nthis_is_str = 'string'\n\nimport os; os.environ['SETTINGSPY_MODULE'] = 'mysettings'\nfrom settingspy import spy; print(spy.this_is_int, spy.this_is_str)\n\n\n3. Manually set fallbacks\n\nIn case a setting attribute isn't defined anywhere else.\n\nfrom settingspy import spy\nspy.setfallback('this_is_int', 123)\nspy.setfallback('this_is_str', 'string')\n\nFor more details see the source code at\nhttps://github.com/ydm/settingspy", "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/ydm/settingspy", "keywords": null, "license": "LGPLv3", "maintainer": null, "maintainer_email": null, "name": "settingspy", "package_url": "https://pypi.org/project/settingspy/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/settingspy/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/ydm/settingspy" }, "release_url": "https://pypi.org/project/settingspy/1.1.2/", "requires_dist": null, "requires_python": null, "summary": "Easy settings for Python projects", "version": "1.1.2" }, "last_serial": 1280457, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "fea56b9a490bd17ea464af407ad497c5", "sha256": "6360eb99bc75c6b192f862f01c4272b635801b8c7bf15d98df6786beb71434d2" }, "downloads": -1, "filename": "settingspy-1.0.tar.gz", "has_sig": false, "md5_digest": "fea56b9a490bd17ea464af407ad497c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2349, "upload_time": "2014-10-15T12:21:27", "url": "https://files.pythonhosted.org/packages/10/05/e226d79e3a9371627ca293613d98a0fae83baf9f06f5d9307a395824a49f/settingspy-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "960a15109784ff48b267b527a4799d15", "sha256": "c800a66b649be0d91cf0a7694d088603dfae010ebd135a3a40e12701941ad173" }, "downloads": -1, "filename": "settingspy-1.1.tar.gz", "has_sig": false, "md5_digest": "960a15109784ff48b267b527a4799d15", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2288, "upload_time": "2014-10-15T12:37:58", "url": "https://files.pythonhosted.org/packages/68/8c/562ff62e947550dbf1c0db894958f02bac825279b269d3d5916b32cb2a21/settingspy-1.1.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "07fbd9d0c083521d234e883075993231", "sha256": "8476b8a145dda89d16124acdc8bc6001d9314eb3f7e3c112a2c89a6edebd9780" }, "downloads": -1, "filename": "settingspy-1.1.1.tar.gz", "has_sig": false, "md5_digest": "07fbd9d0c083521d234e883075993231", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2318, "upload_time": "2014-10-16T09:30:34", "url": "https://files.pythonhosted.org/packages/22/56/ec8509a27b79cbf8b2cec7fc930071a5fe8c76e9c956cb883fb4d52a6f3e/settingspy-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "3c12a0f4e60a744990574f5158761a93", "sha256": "cb21642469a5982cc068bc4194e8b9afb26df72df1bbe457ccac8f4b966a4ced" }, "downloads": -1, "filename": "settingspy-1.1.2.tar.gz", "has_sig": false, "md5_digest": "3c12a0f4e60a744990574f5158761a93", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2674, "upload_time": "2014-10-23T19:12:33", "url": "https://files.pythonhosted.org/packages/a1/c5/82c5b89ae4090861804b9352200e3346f788fc4e24c3331a1bc87ff8b033/settingspy-1.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3c12a0f4e60a744990574f5158761a93", "sha256": "cb21642469a5982cc068bc4194e8b9afb26df72df1bbe457ccac8f4b966a4ced" }, "downloads": -1, "filename": "settingspy-1.1.2.tar.gz", "has_sig": false, "md5_digest": "3c12a0f4e60a744990574f5158761a93", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2674, "upload_time": "2014-10-23T19:12:33", "url": "https://files.pythonhosted.org/packages/a1/c5/82c5b89ae4090861804b9352200e3346f788fc4e24c3331a1bc87ff8b033/settingspy-1.1.2.tar.gz" } ] }