{ "info": { "author": "Matt Good", "author_email": "matt@matt-good.net", "bugtrack_url": null, "classifiers": [], "description": "Quipu\n=======\n\nEvaluate simple Python mathmatical and logical expressions\n\nhttp://en.wikipedia.org/wiki/Quipu\n\nAn attempt to make a safe evaluator of a subset of Python expressions.\n\nThis is mostly a proof-of-concept for getting feedback, it has not been\nthoroughly checked for safety, use at your own risk :)\n\nIt uses the Python ast module to parse the expression, but all evaluation is\ndone by walking the ast, it is not directly executed by the Python runtime.\n\nNosetests are provided below including coverage of supported and unsupported\noperations.\n\nKnown security considerations:\n\nThe variables are expected to be simple primitive types. Providing functions\nwith unsafe effects, or variables where the operator implementations can have\nunsafe effects is obviously unsafe.\n\nSome operations may also take a lot of time or memory and DOS the process. \n\nUsage::\n\n import quipu\n result = quipu.evaluate('2 + 2')\n\n\nSee the list of \"supported_expressions\" in ``test_asteval.py`` for an example of\nwhat operations are implemented.\n", "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/mgood/quipu", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "quipu", "package_url": "https://pypi.org/project/quipu/", "platform": "any", "project_url": "https://pypi.org/project/quipu/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/mgood/quipu" }, "release_url": "https://pypi.org/project/quipu/0.1/", "requires_dist": null, "requires_python": null, "summary": "Quipu\n=======\n\nEvaluate simple Python mathmatical and logical expressions\n\nhttp://en.wikipedia.org/wiki/Quipu\n\nAn attempt to make a safe evaluator of a subset of Python expressions.\n\nThis is mostly a proof-of-concept for getting feedback, it has not been\nthoroughly checked for safety, use at your own risk :)\n\nIt uses the Python ast module to parse the expression, but all evaluation is\ndone by walking the ast, it is not directly executed by the Python runtime.\n\nNosetests are provided below including coverage of supported and unsupported\noperations.\n\nKnown security considerations:\n\nThe variables are expected to be simple primitive types. Providing functions\nwith unsafe effects, or variables where the operator implementations can have\nunsafe effects is obviously unsafe.\n\nSome operations may also take a lot of time or memory and DOS the process. \n\nUsage::\n\n import quipu\n result = quipu.evaluate('2 + 2')\n\n\nSee the list of \"supported_expressions\" in ``test_asteval.py`` for an example of\nwhat operations are implemented.", "version": "0.1" }, "last_serial": 798410, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "bf72ddb9aebde69ccb7567ea14407c97", "sha256": "90dadc84aa735ac42f3da497fb82c4a18f5801e04530722901ee462dbbade6ac" }, "downloads": -1, "filename": "quipu-0.1.tar.gz", "has_sig": false, "md5_digest": "bf72ddb9aebde69ccb7567ea14407c97", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2516, "upload_time": "2012-08-09T22:42:19", "url": "https://files.pythonhosted.org/packages/23/a3/a38967a0582f898f524f36f2f4d3574d26c8dbf3ac93a3bc814bf19d1da0/quipu-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bf72ddb9aebde69ccb7567ea14407c97", "sha256": "90dadc84aa735ac42f3da497fb82c4a18f5801e04530722901ee462dbbade6ac" }, "downloads": -1, "filename": "quipu-0.1.tar.gz", "has_sig": false, "md5_digest": "bf72ddb9aebde69ccb7567ea14407c97", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2516, "upload_time": "2012-08-09T22:42:19", "url": "https://files.pythonhosted.org/packages/23/a3/a38967a0582f898f524f36f2f4d3574d26c8dbf3ac93a3bc814bf19d1da0/quipu-0.1.tar.gz" } ] }