{ "info": { "author": "Krister Hedfors", "author_email": "krister@hedfors.se", "bugtrack_url": null, "classifiers": [], "description": "Allows attributes of classes and/or instances to be set directly through config\r\nfiles. Config file example followed by code:\r\n\r\n[sect1]\r\nfoo=bar\r\n\r\n[Klass]\r\nprop1=qwe\r\nprop2=456\r\nprop3=false\r\n\r\n[SubKlass]\r\nhihi = HEHE\r\n------------------------\r\n class Klass(Configurable):\r\n class SubKlass(Configurable):\r\n config = Config(hihi = \"hoho\")\r\n config = Config(\r\n prop1=\"asd\",\r\n prop2=123,\r\n prop3=True\r\n )\r\n assert Klass.config.prop1 == \"asd\"\r\n assert Klass.config.prop2 == 123\r\n assert Klass.config.prop3 == True\r\n assert Klass.SubKlass.config.hihi == \"hoho\"\r\n c = ConfigFile(path, globals())\r\n assert Klass.config.prop1 == \"qwe\"\r\n assert Klass.config.prop2 == 456\r\n assert Klass.config.prop3 == False\r\n assert c.Klass.prop1 == \"qwe\"\r\n assert c.Klass.prop2 == \"456\"\r\n assert c.Klass.prop3 == \"false\"", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": "ConfigParser configurable configuration Configfile config conffile", "license": "UNKNOWN", "maintainer": "", "maintainer_email": "", "name": "configurable", "package_url": "https://pypi.org/project/configurable/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/configurable/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/configurable/0.1dev/", "requires_dist": null, "requires_python": null, "summary": "configurable - Class integration with config files", "version": "0.1dev" }, "last_serial": 788372, "releases": { "0.1dev": [ { "comment_text": "", "digests": { "md5": "b8bb287f2288c0fdead7cdc4c8dc731b", "sha256": "8be92d3dd082b71e222c90589e18053082e07ec56f65a924191244481f8cbd57" }, "downloads": -1, "filename": "configurable-0.1dev.tar.gz", "has_sig": false, "md5_digest": "b8bb287f2288c0fdead7cdc4c8dc731b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4251, "upload_time": "2009-07-29T13:21:00", "url": "https://files.pythonhosted.org/packages/5c/6b/f3e709515b94c41860850646e0f1efcf0afc993f7abae2b74f5a54ee84f6/configurable-0.1dev.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b8bb287f2288c0fdead7cdc4c8dc731b", "sha256": "8be92d3dd082b71e222c90589e18053082e07ec56f65a924191244481f8cbd57" }, "downloads": -1, "filename": "configurable-0.1dev.tar.gz", "has_sig": false, "md5_digest": "b8bb287f2288c0fdead7cdc4c8dc731b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4251, "upload_time": "2009-07-29T13:21:00", "url": "https://files.pythonhosted.org/packages/5c/6b/f3e709515b94c41860850646e0f1efcf0afc993f7abae2b74f5a54ee84f6/configurable-0.1dev.tar.gz" } ] }