{ "info": { "author": null, "author_email": null, "bugtrack_url": null, "classifiers": [], "description": "pylookwhat\r\n==========\r\n\r\nSometimes when we need to reference other project's settings to do something, we can use execfile to parse file get variable inside. But a few things can make it difficult:\r\n\r\n1. Dependency package(s) are not installed\r\n2. Relative module(s) not in sys.path\r\n3. Local module name confused due to scoping. \r\n\r\nUse pylookwhat to solve these\r\n\r\n::\r\n\r\n import pylookwhat\r\n\r\n what = {}\r\n lookwhat = [ 'A', 'B' ]\r\n filename = 'what.py'\r\n pylookwhat.lookwhat( filename, what, lookwhat )\r\n\r\n print what\r\n \r\n \r\n \r\n\r\nwhat.py\r\n\r\n::\r\n\r\n\tA = { \"Hello\": \"World\" }\r\n\tB = [ 1, 2, 3 ]\r\n\t\r\n\r\nPatch\r\n-----\r\nModify variables in script. Backup file will be named with datetime.\r\n::\r\n\r\n python -m pylookwhat patch target.py source.py false\r\n\r\n\r\ntarget.py\r\n\r\n::\r\n\r\n A=\"Hello\"\r\n B=123\r\n\r\n\r\nsource.py\r\n\r\n::\r\n\r\n A = \"Hello World\"\r\n\r\nPatched target.py\r\n\r\n::\r\n\r\n A = \"Hello World\"\r\n B=123\r\n\r\n\r\n1.0.3\r\n\tFix missing text when patch with dict variables", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": null, "keywords": null, "license": null, "maintainer": null, "maintainer_email": null, "name": "pylookwhat", "package_url": "https://pypi.org/project/pylookwhat/", "platform": null, "project_url": "https://pypi.org/project/pylookwhat/", "project_urls": null, "release_url": "https://pypi.org/project/pylookwhat/0.0.3/", "requires_dist": null, "requires_python": null, "summary": null, "version": "0.0.3" }, "last_serial": 1686797, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "2bef3f4c9a6e97317c38b615678e51a4", "sha256": "3f540cee0e9cc5b082d5409aa636044f2375c8e8395347365b349b2f23558dad" }, "downloads": -1, "filename": "pylookwhat-0.0.1.zip", "has_sig": false, "md5_digest": "2bef3f4c9a6e97317c38b615678e51a4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4357, "upload_time": "2015-04-14T13:24:41", "url": "https://files.pythonhosted.org/packages/02/86/0012be438e6df6b0eba03503398e6402a6c7ac6d52168f21e0c31ac0889a/pylookwhat-0.0.1.zip" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "e86c789e00364e73730eabf17ebbc206", "sha256": "5849250635baab7ecfc2932bd5a979db0ba23dd0871d056e67544a3c0fe49acd" }, "downloads": -1, "filename": "pylookwhat-0.0.2.zip", "has_sig": false, "md5_digest": "e86c789e00364e73730eabf17ebbc206", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5888, "upload_time": "2015-08-10T03:47:03", "url": "https://files.pythonhosted.org/packages/0d/4b/ac5b83d58e2f27011ddac48485213f5fbe2df60f70ba9d90847ba4840912/pylookwhat-0.0.2.zip" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "912400e214aa99007716702f0fb1df5f", "sha256": "c7a36cd6d11f13471a2737db266e52dd42cc2072b1f08a296d93f203a02f284f" }, "downloads": -1, "filename": "pylookwhat-0.0.3.zip", "has_sig": false, "md5_digest": "912400e214aa99007716702f0fb1df5f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6110, "upload_time": "2015-08-21T03:23:05", "url": "https://files.pythonhosted.org/packages/39/ea/f8560ac2df64c92e46d8cc1651bb5b755b9482435c9d6646fb218f7a023e/pylookwhat-0.0.3.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "912400e214aa99007716702f0fb1df5f", "sha256": "c7a36cd6d11f13471a2737db266e52dd42cc2072b1f08a296d93f203a02f284f" }, "downloads": -1, "filename": "pylookwhat-0.0.3.zip", "has_sig": false, "md5_digest": "912400e214aa99007716702f0fb1df5f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6110, "upload_time": "2015-08-21T03:23:05", "url": "https://files.pythonhosted.org/packages/39/ea/f8560ac2df64c92e46d8cc1651bb5b755b9482435c9d6646fb218f7a023e/pylookwhat-0.0.3.zip" } ] }